Oscar Medina Duarte schrieb: > > Hi all ! > > I think a have a small bug here, when an smsc sends a DeliverSM pdu to > the gateway, with the fields, source_adde and destination_addr set to > NULL, the bearerbox crashes with the following logs: > > 2004-07-16 18:39:20 [15969] [6] PANIC: gwlib/octstr.c:2326: > seems_valid_real: Assertion `ostr != NULL' failed. (Called from > gwlib/octstr.c:807:octstr_check_range.) > 2004-07-16 18:39:20 [15969] [6] PANIC: ./bearerbox(gw_panic+0x175) > [0x80c8501] > 2004-07-16 18:39:20 [15969] [6] PANIC: ./bearerbox [0x80ce67f] > 2004-07-16 18:39:20 [15969] [6] PANIC: > ./bearerbox(octstr_check_range+0x26) [0x80caaa3] > 2004-07-16 18:39:20 [15969] [6] PANIC: ./bearerbox [0x807fecb] > 2004-07-16 18:39:20 [15969] [6] PANIC: ./bearerbox [0x8081e9f] > 2004-07-16 18:39:20 [15969] [6] PANIC: ./bearerbox [0x8082da9] > 2004-07-16 18:39:20 [15969] [6] PANIC: ./bearerbox [0x80be000] > 2004-07-16 18:39:20 [15969] [6] PANIC: /lib/tls/libpthread.so.0 > [0x86879c] > 2004-07-16 18:39:20 [15969] [6] PANIC: /lib/tls/libc.so.6(__clone+0x5a) > [0x6b527a]
ok, confirmed... by reviewing code. Just checked the specs, it indicates the following for deliver_sm PDU: source_addr may be NULL if unknown destination_addr doesn't state if if "may" be NULLed, hence it may be, right? In any case, you are right. Kannel shouldn't panic here. Adding this into mantis bug tracking. Stipe mailto:[EMAIL PROTECTED] ------------------------------------------------------------------- Wapme Systems AG Vogelsanger Weg 80 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-----