[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [hobbit] Hobbit crashes



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