From nobody@FreeBSD.org  Mon Feb  5 23:40:11 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 704A537B684
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  5 Feb 2001 23:38:48 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f167cmx71914;
	Mon, 5 Feb 2001 23:38:48 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102060738.f167cmx71914@freefall.freebsd.org>
Date: Mon, 5 Feb 2001 23:38:48 -0800 (PST)
From: davidx@viasoft.com.cn
To: freebsd-gnats-submit@FreeBSD.org
Subject: truss core dumped
X-Send-Pr-Version: www-1.0

>Number:         24892
>Category:       bin
>Synopsis:       truss core dumped
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 05 23:50:00 PST 2001
>Closed-Date:    Wed Feb 7 05:13:23 PST 2001
>Last-Modified:  Wed Feb 07 05:15:17 PST 2001
>Originator:     David Xu
>Release:        freebsd 4.2-stable
>Organization:
viasoft
>Environment:
FreeBSD davidbsd.viasoft.com.cn 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Fri Feb  2 0
9:44:44 CST 2001     root@davidbsd.viasoft.com.cn:/usr/src/sys/compile/GENERIC
i386
>Description:
truss will core dumped when traced program exit. i.e
truss -p 752, when process (752) exited, truss is also core dumped.


>How-To-Repeat:
davidbsd# truss -p 752
 ...

gettimeofday(0xbfbff55c,0xbfbff564)              = 0 (0x0)
select(0x6,0x8368144,0x8368154,0x8368164,0x8321b5c) = 0 (0x0)
gettimeofday(0xbfbff55c,0xbfbff564)              = 0 (0x0)
old.sigprocmask(0x1,0x2000000)                   = 0 (0x0)
old.sigprocmask(0x2,0x2000000)                   = 33554432 (0x2000000)
gettimeofday(0x83f0f48,0x83f0f50)                = 0 (0x0)
old.sigprocmask(0x1,0x2000000)                   = 0 (0x0)
old.sigprocmask(0x2,0x2000000)                   = 33554432 (0x2000000)
shutdown(0x4,0x1)                                = 0 (0x0)
fcntl(0x1,0x3,0x0)                               = 2 (0x2)
fcntl(0x1,0x4,0x6)                               = 0 (0x0)
write(1,0x836c00c,22)                            = 22 (0x16)
fcntl(0x1,0x4,0x2)                               = 0 (0x0)
setsockopt(0x4,0xffff,0x80,0xbfbff48c,0x8)       = 0 (0x0)
close(4)                                         = 0 (0x0)
exit(0x0)                                       process exit, rval = 0
Bus error (core dumped)

davidbsd# gdb truss
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(no debugging symbols found)...
(gdb) core truss.core
Core was generated by `truss'.
Program terminated with signal 10, Bus error.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)...
done.
#0  0x280a93bc in kill () from /usr/lib/libc.so.4
(gdb) bt
#0  0x280a93bc in kill () from /usr/lib/libc.so.4
#1  0x80490b4 in free ()
#2  0x8048c19 in free ()
(gdb)


>Fix:


>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@orbitel.bg>
To: davidx@viasoft.com.cn
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/24892: truss core dumped
Date: Tue, 6 Feb 2001 11:27:25 +0200

 On Mon, Feb 05, 2001 at 11:38:48PM -0800, davidx@viasoft.com.cn wrote:
 > 
 > >Number:         24892
 > >Category:       bin
 > >Synopsis:       truss core dumped
 > >Originator:     David Xu
 > >Release:        freebsd 4.2-stable
 > >Organization:
 > viasoft
 > >Environment:
 > FreeBSD davidbsd.viasoft.com.cn 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Fri Feb  2 0
 > 9:44:44 CST 2001     root@davidbsd.viasoft.com.cn:/usr/src/sys/compile/GENERIC
 > i386
 > >Description:
 > truss will core dumped when traced program exit. i.e
 > truss -p 752, when process (752) exited, truss is also core dumped.
 
 Can you try upgrading to 4.2-STABLE and see if the problem persists?
 
 G'luck,
 Peter
 
 -- 
 I am jealous of the first word in this sentence.
 
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Wed Feb 7 05:13:23 PST 2001 
State-Changed-Why:  
Originator reports problem solved after upgrade to 4.2-STABLE. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24892 
>Unformatted:
