strace coredump on FreeBSD

Jeroen Ruigrok/asmodai asmodai at wxs.nl
Tue Dec 10 23:31:04 UTC 2002


Was stracing phoenix to see why it didn't start up.  This is all on
FreeBSD-4.7-STABLE.

strace with -f and got a nice segfault;

Core was generated by `strace'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x804bef3 in trace_syscall (tcp=0x806d838) at syscall.c:1533
1533                                            tprintf("%s (%s)", errnoent[u_error],
(gdb) bt
#0  0x804bef3 in trace_syscall (tcp=0x806d838) at syscall.c:1533
#1  0x804ae25 in trace () at strace.c:1559
#2  0x8049edc in main (argc=3, argv=0xbfbffac8) at strace.c:541
#3  0x804944e in _start (arguments=0xbfbffbbc "strace") at /usr/src/lib/csu/i386-elf/crt1.c:119

Frame 0:

#0  0x804bef3 in trace_syscall (tcp=0x806d838) at syscall.c:1533
1533                                            tprintf("%s (%s)", errnoent[u_error],
(gdb) list
1531                                    tprintf("= -1 ");
1532                                    if (u_error < nerrnos && u_error < sys_nerr)
1533                                            tprintf("%s (%s)", errnoent[u_error],
1534                                                    sys_errlist[u_error]);
i5 = 0x805506f "ERRNO_0"
(gdb) print *errnoent         
$5 = 0x805506f "ERRNO_0"
(gdb) print u_error 
$6 = -134541
(gdb) print nerrnos
$7 = 87
(gdb) print sys_nerr 
$8 = 87
(gdb) print sys_res
$16 = 0

I am trying the CVS version now.  Ok, this one works.  Could you guys
PLEASE release a new strace?  4.4 is old and obviously has issues on
newer FreeBSD's.

Thanks!

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / Kita no Mono
Ninth Circle Enterprises | WTO + WIPO = DMCA? 
http://www.tendra.org/   | http://www.anti-dmca.org/
The last word in a chronicle is never set down...




More information about the Strace-devel mailing list