Henrik,
here's the output:
#0 0xc020d5b8 in _kill () from /usr/lib/libc.2 #0 0xc020d5b8 in _kill () from /usr/lib/libc.2 (gdb) fr 10 #10 0x8aac in do_message (msg=0x6e651a64, origin=0x0) at hobbitd.c:2222 2222 buf = (char *)realloc(buf, bufsz); (gdb) p used $1 = 1074320844 (gdb) p needed $2 = 1024 (gdb) p bufsz $3 = 30832 (gdb) p bufp $4 = (char *) 0x0 (gdb) p buf $5 = (char *) 0x8c70 "\b\034\002X\204`!0\013\205\n%4\023" (gdb)
Thanks, Chris.
-----Ursprüngliche Nachricht----- Von: Henrik Stoerner [mailto:henrik at hswn.dk] Gesendet: Mittwoch, 1. Februar 2006 19:29 An: hobbit at hswn.dk Betreff: Re: [hobbit] Hobbit crashes
On Wed, Feb 01, 2006 at 05:18:20PM +0100, Maxeiner, Christian wrote:
Output of gdb: (gdb) bt #5 <signal handler called> #6 0xc0199038 in _sigfillset () from /usr/lib/libc.2 #7 0xc0195bec in _sscanf () from /usr/lib/libc.2 #8 0xc019b510 in realloc () from /usr/lib/libc.2 #9 0x104a8 in xrealloc (ptr=0x4010dffc, size=0) at memory.c:149 #10 0x8aac in do_message (msg=0x3c610c68, origin=0x0) at hobbitd.c:2222 #11 0xc17c in main (argc=10485759, argv=0x40009cb8) at hobbitd.c:3512
Very odd. The interesting thing is that hobbitd here is doing a re-allocation of a buffer, but asking for 0 bytes - and apparently, HP-UX doesn't like that.
But I don't see how it can get to asking for 0 bytes in that part of the code...
Could you start gdb again, but instead of the "bt" command do this:
gdb> fr 10 gdb> p used gdb> p needed gdb> p bufsz gdb> p bufp gdb> p buf
and mail me the output?
Thanks, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Feb 01, 2006 at 07:34:35PM +0100, Maxeiner, Christian wrote:
Henrik,
here's the output:
#0 0xc020d5b8 in _kill () from /usr/lib/libc.2 #0 0xc020d5b8 in _kill () from /usr/lib/libc.2 (gdb) fr 10 #10 0x8aac in do_message (msg=0x6e651a64, origin=0x0) at hobbitd.c:2222 2222 buf = (char *)realloc(buf, bufsz); (gdb) p used $1 = 1074320844 (gdb) p needed $2 = 1024 (gdb) p bufsz $3 = 30832 (gdb) p bufp $4 = (char *) 0x0 (gdb) p buf $5 = (char *) 0x8c70 "\b\034\002X\204`!0\013\205\n%4\023"
Still very odd. The "used" number is insanely high, and bufp is 0. The first could be a result of the latter, but I cannot understand how that could happen (bufp starts out being the same as buf, and it only grows).
What happens if you shutdown Hobbit, rename the ~hobbit/data/tmp/hobbitd.chk file to something else, and startup Hobbit again ?
If that makes it work, I'd very much like to have a copy of that file. It will include a lot of internal information about your tests, so make sure you have permission to make it available to me. And send it to me directly - henrik at hswn.dk - instead of to the list.
Regards, Henrik
participants (2)
-
christian.maxeiner@usd.de
-
henrik@hswn.dk