Bug 24892

Summary: truss core dumped
Product: Base System Reporter: davidx <davidx>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description davidx 2001-02-06 07:50:00 UTC
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)
Comment 1 Peter Pentchev 2001-02-06 09:27:25 UTC
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.
Comment 2 Peter Pentchev freebsd_committer freebsd_triage 2001-02-07 13:13:23 UTC
State Changed
From-To: open->closed

Originator reports problem solved after upgrade to 4.2-STABLE.