I would check first is wap_appl.c answers routed properly
when no ppg is defined.

Aarno

On 12.3.2004, at 12:31, Mindaugas Riauba wrote:


Hello,


Follow up:

After I tried to run with following patch wapbox crashed with different
backtrace.
Both patch and gdb backtrace at the end of e-mail. No ideas why the crash
happened?


Mindaugas

#0 0x08080117 in wap_event_assert (event=0x0) at wap_events.c:222
No locals.
#1 0x08093a15 in wtp_unpack_wdp_datagram (datagram=0x8bda0b8) at wtp.c:131
events = (struct List *) 0x8bc9490
event = (struct WAPEvent *) 0x0
subdgram = (struct WAPEvent *) 0x8d4f3a8
data = (struct Octstr *) 0x8915728
pdu_len = 0
#2 0x08076b5b in wap_dispatch_datagram (dgram=0x8bda0b8) at wap.c:84
events = (struct List *) 0x8cebb60
#3 0x0804d2d0 in main (argc=4, argv=0xbfffec14) at gw/wapbox.c:768
dgram = (struct WAPEvent *) 0x8bda0b8
cf_index = 3
restart = 0
msg = (struct {...} *) 0x8d516d8
cfg = (struct Cfg *) 0x0
heartbeat_freq = 30
#4 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6


Index: gw/wapbox.c
===================================================================
RCS file: /home/cvs/gateway/gw/wapbox.c,v
retrieving revision 1.173
diff -a -u -r1.173 wapbox.c
--- gw/wapbox.c 22 Jan 2004 14:08:24 -0000      1.173
+++ gw/wapbox.c 12 Mar 2004 11:28:53 -0000
@@ -697,7 +697,7 @@
     wsp_push_client_init(&wsp_push_client_dispatch_event,
                          &wtp_resp_dispatch_event);

- if (cfg)
+// if (cfg)
wtp_initiator_init(&dispatch_datagram, &wsp_session_dispatch_event,
timer_freq);


@@ -791,7 +791,7 @@
     heartbeat_stop(ALL_HEARTBEATS);
     counter_destroy(sequence_counter);

-    if (cfg)
+//    if (cfg)
         wtp_initiator_shutdown();

wtp_resp_shutdown();






Reply via email to