Re: Problems with wapbox

2004-03-11 Thread Stipe Tolj
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.

a fix to this has been applied to cvs by Alex.

Stipe

mailto:[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf, NRW, Germany

phone: +49.211.74845.0
fax: +49.211.74845.299

mailto:[EMAIL PROTECTED]
http://www.wapme-systems.de/
---

-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.2.2 (Cygwin)

mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS
OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2
nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT
dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv
bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID
AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl
OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ
K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H
g2HyLAEKQIp30Q==
=aYCI
-END PGP PUBLIC KEY BLOCK-



Problems with wapbox

2004-03-09 Thread Mindaugas Riauba

  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