Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 1998 13:03:54 -0700 (PDT)
From:      jhicks@glenatl.glenayre.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/7393: du throws SIGSEGV whenever '-c' option is used (at du.c:226)
Message-ID:  <199807242003.NAA19437@hub.freebsd.org>

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

>Number:         7393
>Category:       bin
>Synopsis:       du throws SIGSEGV whenever '-c' option is used (at du.c:226)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 24 13:10:01 PDT 1998
>Last-Modified:
>Originator:     Jerry Hicks
>Organization:
Glenayre Electronics
>Release:        2.2.7-STABLE
>Environment:
FreeBSD jhicks.glenatl.glenayre.com 2.2.7-STABLE FreeBSD
2.2.7-STABLE #0: Fri Jul 24 11:14:56 EDT 1998     
root@jhicks.glenatl.glenayre.com:/usr/src/sys/compile/JHICKS  i386

>Description:
du.c (1.6.2.5)

du throws SIGSEGV whenever '-c' option is used (at du.c:226)

du.c:224
	if (cflag) {
		p = savedp->fts_parent;
		(void) printf("%ld\ttotal\n", howmany(p->fts_number, blocksize));
	}


(gdb) display *savedp
3: *savedp = {
	fts_cycle = 0xd0d0d0d0,
	fts_parent = 0xd0d0d0d0,
	fts_link = 0xd0d0d0d0,
	fts_number = -791621424,
	fts_pointer = 0xd0d0d0d0,
	fts_accpath = 0xd0d0d0d0 <Error reading address 0xd0d0d0d0: Invalid argument>, 
        fts_path = 0xd0d0d0d0 <Error reading address 0xd0d0d0d0: Invalid argument>, 
        fts_errno = -791621424, 
        fts_symfd = -791621424,
        fts_pathlen = 53456,
        fts_namelen = 53456,
        fts_ino = 3503345872,
        fts_dev = 3503345872,
        fts_nlink = 53456,
        fts_level = -12080,
        fts_info = 53456,
        fts_flags = 53456,
        fts_instr = 53456,
        fts_statp = 0xd0d0d0d0,
        fts_name = "Ð"
}
(gdb) 


*/
>How-To-Repeat:
du -c .   (100% repeatable here)
>Fix:

>Audit-Trail:
>Unformatted:
X-Send-Pr-Version: www-1.0



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?199807242003.NAA19437>