Hi,

valgrind is your friend :)

Good luck!

On Tuesday 09 March 2004 13:32, Mindaugas Riauba wrote:
>   Hello,
>
>   I have few problems with wapbox.
>
>   First one was with cookies. In file wap/cookies.c
> function set_cookies first sm->cookies is checked
> against NULL and only after that sm is checked.
>
>   And second - wapbox is leaking memory and crashes
> with signal 11 later. gdb backtrace is below. That is
> if compiled with native malloc.
>   If compiled with check malloc wapbox after some
> requests panics with such message:
>   PANIC: Too many concurrent allocations.
>
>   How to trace those leaks?
>
> #0  0x08096db8 in lock (list=0x0) at gwlib/list.c:487
> #1  0x08096709 in list_append (list=0x0, item=0x8943c48) at
> gwlib/list.c:175 #2  0x0807c4d0 in wtp_initiator_dispatch_event
> (event=0x8943c48)
>     at wtp_init.c:206
> #3  0x080699a9 in wap_dispatch_datagram (dgram=0x89c37a0) at wap.c:100
> #4  0x0804bf58 in main (argc=144455584, argv=0xbfffe2a4) at gw/wapbox.c:768
> #5  0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
>
>   Mindaugas

-- 
Best regards / Mit besten Grüßen aus Düsseldorf

Dipl.-Ing.
Alexander Malysh
___________________________________________

Centrium GmbH
Vogelsanger Weg 80
40470 Düsseldorf

Fon: +49 (0211) 74 84 51 80
Fax: +49 (0211) 277 49 109

email: [EMAIL PROTECTED]
web: www.centrium.de
msn: [EMAIL PROTECTED]
icq: 98063111
___________________________________________

Please avoid sending me Word, Excel or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

Reply via email to