smsbox closed connection (at2)
Something very very bad happens sometimes with smsbox. This isn't the first time it happens Don't really know why, but it closes connection. Maybe it's because it receives an empty sms, but I have omit-empty = true in sms-service group. I give you here all the details, and I really hope I can solve this bug that keeps craching smsbox. (this is cvs (about one month ago) with at2 (on win2000). Andreas please help :-) Thanks in advance Andrea --begin bearebox .log 2002-02-12 23:53:40 [10] DEBUG: boxc_receiver: got ack 2002-02-12 23:53:40 [10] INFO: Connection closed by the box <127.0.0.1> 2002-02-12 23:53:40 [6] DEBUG: AT2[/dev/com9]: <-- OK 2002-02-13 05:45:10 [6] DEBUG: AT2[/dev/com9]: <-- +CMT: ,23 2002-02-13 05:45:10 [6] DEBUG: AT2[/dev/com9]: <-- 0791934329004080040C9193437810237020203160641104046176790D 2002-02-13 05:45:10 [6] DEBUG: AT2[/dev/com9]: --> AT+CNMA^M 2002-02-13 05:45:10 [11] DEBUG: Thread 11 (gw/bb_boxc.c:boxc_sender) terminates. 2002-02-13 05:45:10 [10] DEBUG: Thread 10 (gw/bb_boxc.c:function) terminates. begin .access 2002-02-12 23:51:13 Receive SMS [SMSC:A] [SVC:] [from:393393297830] [to:1234] [flags:0:1:0:0] [msg:6:MATRIX] [udh:0:] 2002-02-12 23:51:24 SMS HTTP-request sender:393393297830 request: 'Vampir.it>LaComunitàDellaNotte-SABATO 26 RickyLeRoy,MickyV,Zicky e spettacolo live techno Eva Vugaris.IMPERDIBILE,info e liste 3474116027 NON MANCARE!!!' url: 'http://www.futureland.it/sms/insert_received.asp?testo=MATRIX&sender=393393 297830&receiver=A' reply: 200 '<< successful >>' 2002-02-13 00:53:40 Receive SMS [SMSC:B] [SVC:] [from:393487013207] [to:1234] [flags:0:1:0:0] [msg:0:] [udh:0:] ---begin smsbox.log 2002-02-12 21:22:28 [4] INFO: Starting to service from <+393408341452> to <2234> 2002-02-12 21:22:28 [8] DEBUG: HTTP: Sending request: 2002-02-12 21:22:28 [8] DEBUG: Octet string at 0x1003bfc8: 2002-02-12 21:22:28 [8] DEBUG: len: 135 2002-02-12 21:22:28 [8] DEBUG: size: 136 2002-02-12 21:22:28 [8] DEBUG: immutable: 0 2002-02-12 21:22:28 [8] DEBUG: data: 47 45 54 20 2f 73 6d 73 GET /sms 2002-02-12 21:22:28 [8] DEBUG: data: 2f 69 6e 73 65 72 74 5f /insert_ 2002-02-12 21:22:28 [8] DEBUG: data: 72 65 63 65 69 76 65 64 received 2002-02-12 21:22:28 [8] DEBUG: data: 2e 61 73 70 3f 74 65 73 .asp?tes 2002-02-12 21:22:28 [8] DEBUG: data: 74 6f 3d 52 49 4e 47 26 to=RING& 2002-02-12 21:22:28 [8] DEBUG: data: 73 65 6e 64 65 72 3d 25 sender=% 2002-02-12 21:22:28 [8] DEBUG: data: 32 42 33 39 33 34 30 38 2B393408 2002-02-12 21:22:28 [8] DEBUG: data: 33 34 31 34 35 32 26 72 341452&r 2002-02-12 21:22:28 [8] DEBUG: data: 65 63 65 69 76 65 72 3d eceiver= 2002-02-12 21:22:28 [8] DEBUG: data: 41 20 48 54 54 50 2f 31 A HTTP/1 2002-02-12 21:22:28 [8] DEBUG: data: 2e 31 0d 0a 48 6f 73 74 .1..Host 2002-02-12 21:22:28 [8] DEBUG: data: 3a 20 77 77 77 2e 66 75 : www.fu 2002-02-12 21:22:28 [8] DEBUG: data: 74 75 72 65 6c 61 6e 64 tureland 2002-02-12 21:22:28 [8] DEBUG: data: 2e 69 74 0d 0a 55 73 65 .it..Use 2002-02-12 21:22:28 [8] DEBUG: data: 72 2d 41 67 65 6e 74 3a r-Agent: 2002-02-12 21:22:28 [8] DEBUG: data: 20 4b 61 6e 6e 65 6c 20Kannel 2002-02-12 21:22:28 [8] DEBUG: data: 63 76 73 0d 0a 0d 0a cvs 2002-02-12 21:22:28 [8] DEBUG: Octet string dump ends. 2002-02-12 21:22:34 [7] DEBUG: HTTP: Status line: 2002-02-12 21:22:34 [5] INFO: No reply sent, denied. 2002-02-12 21:50:16 [4] INFO: Starting to service from <+393299070245> to <2234> 2002-02-12 21:50:16 [8] ERROR: Error reading from fd 25: 2002-02-12 21:50:16 [8] ERROR: System error 104: Connection reset by peer 2002-02-12 21:50:16 [8] DEBUG: HTTP: Opening connection to `www.futureland.it:80'. 2002-02-12 21:50:16 [8] DEBUG: HTTP: Sending request: 2002-02-12 21:50:16 [8] DEBUG: Octet string at 0x10044c88: 2002-02-12 21:50:16 [8] DEBUG: len: 135 2002-02-12 21:50:16 [8] DEBUG: size: 136 2002-02-12 21:50:16 [8] DEBUG: immutable: 0 2002-02-12 21:50:16 [8] DEBUG: data: 47 45 54 20 2f 73 6d 73 GET /sms 2002-02-12 21:50:16 [8] DEBUG: data: 2f 69 6e 73 65 72 74 5f /insert_ 2002-02-12 21:50:16 [8] DEBUG: data: 72 65 63 65 69 76 65 64 received 2002-02-12 21:50:16 [8] DEBUG: data: 2e 61 73 70 3f 74 65 73 .asp?tes 2002-02-12 21:50:16 [8] DEBUG: data: 74 6f 3d 52 49 4e 47 26 to=RING& 2002-02-12 21:50:16 [8] DEBUG: data: 73 65 6e 64 65 72 3d 25 sender=% 2002-02-12 21:50:16 [8] DEBUG: data: 32 42 33 39 33 32 39 39 2B393299 2002-02-12 21:50:16 [8] DEBUG: data: 30 37 30 32 34 35 26 72 070245&r 2002-02-12 21:50:16 [8] DEBUG: data: 65 63 65 69 76 65 72 3d eceiver= 2002-02-12 21:50:16 [8] DEBUG: data: 43 20 48 54 54 50 2f 31 C HTTP/1 2002-02-12 21:50:16 [8] DEBUG: data: 2e 31 0d 0a 48 6f 73 74 .1..Host 2002-02-12 21:50:16 [8] DEBUG: data: 3a 20 77 77 77 2e 66 75 : www.fu 2002-02-12 21:50:16 [8] DEBUG: data: 74 75 72 65 6c 61 6e 64 tureland 2002-02-12 21:50:16 [8] DEBUG: data: 2e 69 74 0d 0a 55 73 65 .it..Use 2002-02-12 21:
Re: smsbox closed connection (at2)
Andrea Viscovich wrote: > > Something very very bad happens sometimes with smsbox. > This isn't the first time it happens > Don't really know why, but it closes connection. > Maybe it's because it receives an empty sms, but > I have omit-empty = true in sms-service group. > I give you here all the details, and I really hope I can solve this bug > that keeps craching smsbox. > (this is cvs (about one month ago) with at2 (on win2000). > 2002-02-12 23:53:40 [7] DEBUG: HTTP: Status line: Server Error> > 2002-02-12 23:53:40 [5] ERROR: Start marker was damaged for area 0x10024cf8 > 2002-02-12 23:53:40 [5] ERROR: Could not find area information. > 2002-02-12 23:53:40 [5] PANIC: gwlib/octstr.c:2034: seems_valid_real: > Assertion `gw_check_is_allocated(ostr)' failed. (Called from > gw/smsbox.c:698:url_result_thread.) so we have a failing assertion checking which is panicing here in smsbox and causing it to stop. Unfortunatly our cvs checkout is not up to date so I don't see what is happening on *your* line 698 of smsbox.c. The current cvs is out of scope for url_result_thread() for this line number. Could you please copy a short passage around that number, or the url_result_thread() function, so we can see what operations causes the assertion problem. Usually you will do something nasty with a orctstr* when you get this. BTW, if this is happening from time to time and crashing your bearerbox you may either consider to run smsbox as NT service and define a restart with Win200 internal mechanisms for the service or use a shell wrapper script around calling smsbox which loops infinitly around calling smsbox. (But this should be considered a kludge, of course). Stipe [EMAIL PROTECTED] --- Wapme Systems AG Münsterstr. 248 40470 Düsseldorf Tel: +49-211-74845-0 Fax: +49-211-74845-299 E-Mail: [EMAIL PROTECTED] Internet: http://www.wapme-systems.de --- wapme.net - wherever you are
Re: smsbox closed connection (at2) (null msgdata)
> Unfortunatly our cvs checkout is not up to date so I don't see what is > happening on *your* line 698 of smsbox.c. The current cvs is out of > scope for url_result_thread() for this line number. > > Could you please copy a short passage around that number, or the > url_result_thread() function, so we can see what operations causes the > assertion problem. > Here it is :-) row 695alog("SMS HTTP-request sender:%s request: '%s' " "url: '%s' reply: %d '%s'", octstr_get_cstr(msg->sms.receiver), octstr_get_cstr(msg->sms.msgdata), octstr_get_cstr(final_url), status, (status == HTTP_OK) ? "<< successful >>" : octstr_get_cstr(reply_body)); So I'm right, it should be sms.msgdata null. Well, omit-empty = true does not work to avoid it. I may cut this alog, btw It may have others msgdata null, I remember there was a dicscussion about this, but Don't know if it was definitively fixed. Andrea