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


Reply via email to