Re: smsbox crashed (stable 1.2.0)

Alan McNatty <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <1027289000.30805.623.camel@euclid>
Hello Cipher,

Maybe you could provide a bit more information such as config (to show
sendsms-user setup - are you using 'white/black' lists etc). Are you
trying to send multiple messages, does it fail always/somtimes, etc ...
Also it is a good idea to supply logs with debug level 0. NB: adding a
few debug() calls of your own to narrow the problem down to a code line
or block is useful.

From a quick look at the code in smsbox.c the first pointer to a problem
is the Illegal character log which is printed in smsbox_req_handle. The
receiv number should be added to a 'denied' list and the message (later)
ignored (with logging). When I send a single message via kannel's http
interface with a a bogus 'to' field I receive the following which fits
the above description. Can you replicate this? If you provide a bit more
information I/we can try and replicate your problem.

[3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
[3] INFO: sendsms used by <xxx>
[3] INFO: Illegal characters in 'to' string ('123456a') vs '0123456789
+-'
[3] INFO: sendsms sender:<xxx> (127.0.0.1) to:<123456a> msg:<sdcvasdcv>
[3] DEBUG: Status: 400 Answer: <Number(s) has/have been denied by white-
and/or black-lists.>

Cheers,
Alan

ps. I have created a similar panic by switching ostr pointers (ie:
without a duplicate or create). If you have modified the code in any way
you might like to check this.

On Sat, 2002-07-20 at 20:46, Cipher Strength wrote:
> NO body yet replied to this.
> 
> 
> >
> >Hi ALL,
> >
> >kannel stable release 1.2.0
> >RedHat 7.3
> >EMI2
> >
> >smsbox crashed with the following last entries in smsbox log file
> >
> >2002-07-16 22:37:48 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> 
> >from <
> >10.156.11.7>
> >2002-07-16 22:37:48 [3] INFO: sendsms used by <smsuser>
> >2002-07-16 22:37:48 [3] INFO: Illegal characters in 'to' string ('721275j') 
> >vs '
> >0123456789 +-'
> >2002-07-16 22:37:48 [3] INFO: sendsms sender:<smsuser:1200> (10.156.11.7) 
> >to:< 721275j> msg:<*WEBSMS* hjkkjkhj>
> >2002-07-16 22:37:48 [3] PANIC: gwlib/octstr.c:2112: seems_valid_real: 
> >Assertion
> >`ostr->len + 1 <= ostr->size' failed. (Called from 
> >gw/smsbox.c:1813:smsbox_req_h
> >andle.)
> >
> >
> >CIPHER
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.