Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 1999 22:58:55 -0700 (PDT)
From:      Cy Schubert <cy@cschuber.net.gov.bc.ca>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/12292: newfs segfault
Message-ID:  <199906190558.WAA01064@cwsys.cwsent.com>

next in thread | raw e-mail | index | archive | help


>Number:         12292
>Category:       bin
>Synopsis:       newfs segfaults in strtol.c(68), atoi.c(45), newfs.c(360)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 19 01:10:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Cy Schubert
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
ITSD Province of BC
>Environment:

	FreeBSD cwsys 3.2-RELEASE FreeBSD 3.2-RELEASE #0: Tue Jun  1 23:15:34 PDT 1999     root@cwsys:/opt2/cvs-320/src/sys/compile/CWSYS  i386

>Description:

	Core was generated by `newfs'.
	Program terminated with signal 11, Segmentation fault.
	#0  0x80528bc in strtol ()
	(gdb) bt
	#0  0x80528bc in strtol ()
	#1  0x80526b7 in atoi ()
	#2  0x804883f in main (argc=18, argv=0xbfbfdaf8) at newfs.c:360
	#3  0x80480e9 in _start ()

	Problem introduced in version 1.24 of newfs.c.

>How-To-Repeat:

	Invoke newfs with the -x flag.

>Fix:
	

--- src/sbin/newfs/newfs.c.orig	Sat Oct 17 01:03:52 1998
+++ src/sbin/newfs/newfs.c	Fri Jun 18 22:43:33 1999
@@ -247,7 +247,7 @@
 
 	opstring = mfs ?
 	    "NF:T:a:b:c:d:e:f:i:m:o:s:" :
-	    "NOS:T:a:b:c:d:e:f:i:k:l:m:n:o:p:r:s:t:u:vx";
+	    "NOS:T:a:b:c:d:e:f:i:k:l:m:n:o:p:r:s:t:u:vx:";
 	while ((ch = getopt(argc, argv, opstring)) != -1)
 		switch (ch) {
 		case 'N':

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906190558.WAA01064>