[Top][All Lists]

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

Re: [ipchat-devel] Priority queue

From: Maximiliano Pin
Subject: Re: [ipchat-devel] Priority queue
Date: Fri, 28 Jan 2005 21:45:41 +0100
User-agent: Mutt/1.5.6+20040907i

I found an extrange segfault bug. Easy to reproduce, but difficult to

Just rename ~/.ipchat to ~/.ipchat.old, so you are like a new user.

Run ipchat. Segfault in a malloc called by timer_pq_add.
The same effect is achieved by removing .ipchat/contacts, or removing all
contacts in that file. There is always a segfault in timer_pq_add:

Program received signal SIGSEGV, Segmentation fault.
0x4108b74e in mallopt () from /lib/tls/libc.so.6
(gdb) bt
#0  0x4108b74e in mallopt () from /lib/tls/libc.so.6
#1  0x4108a8c3 in malloc () from /lib/tls/libc.so.6
#2  0x08050178 in timer_pq_add (next_alarm=1091872864, time_incr=134614008, 
    time_shift=134614008, callback=0x8060bf8, data=0x8060bf8) at
#3  0x0804fde2 in dmx_add_periodic_alarm (seconds=60, shift=-1, 
    callback=0x8060bf8, data=0x8060bf8) at demux.c:290
#4  0x0804b066 in tr_init_checker () at transport.c:244
#5  0x080496c1 in main (argc=1, argv=0xbffffa74) at main.c:57

I run the same tests with old demux.c (list-based), and there was no
problems. So, everything points to a memory management error in pqueue.
But I didn't find it.

Can you reproduce the bug?
See you.

El jueves 27 de enero, Matías Aguirre dijo:

> demux si up and ready to test...

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]