On Wed, 11 Aug 2004, Rik van Riel wrote:
> stopped reaping zombies. Not sure how to debug things
> now, except maybe by adding an ugly hack to the kernel
> to allow me to debug init (might not be the best idea).
Of course, there are other executables showing problems.
An easy one is /sbin/initlog.
When run the way the initscripts run it, it segfaults,
gdb gives the following (infinite?) backtrace, consisting
of these:
#8696 0x00920546 in vsyslog () from /lib/tls/libc.so.6
#8697 0x0091fecf in syslog () from /lib/tls/libc.so.6
#8698 0x00920546 in vsyslog () from /lib/tls/libc.so.6
#8699 0x0091fecf in syslog () from /lib/tls/libc.so.6
#8700 0x00920546 in vsyslog () from /lib/tls/libc.so.6
Here are the last lines strace give me:
stat64("/dev/log", {st_mode=S_IFSOCK|0666, st_size=0, ...}) = 0
socket(PF_FILE, SOCK_DGRAM, 0) = 3
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0
close(3) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel
|