Dear Users

Running latest trunk versions of Kannel and OpenSMPPBox in live environment. 
OpenSMPPBox crashes with panic error randomly. It seems to be during some multi 
part message.  Has any one else had a random crash similar to this / recommend 
a fix?

"PANIC: gwlib/octstr.c:2563: seems_valid_real: Assertion `ostr->len + 1 <= 
ostr->size' failed. (Called from gwlib/octstr.c:344:octstr_len.)"

2014-05-21 12:31:19 [27979] [3945] DEBUG: Optional parameter tag (0x0005)
2014-05-21 12:31:19 [27979] [3945] DEBUG: Optional parameter length read as 1
2014-05-21 12:31:19 [27979] [3945] DEBUG: SMPP[xxxxxxx]: Got PDU:
2014-05-21 12:31:19 [27979] [3945] DEBUG: SMPP PDU 0x7f23501f9890 dump:
2014-05-21 12:31:19 [27979] [3945] DEBUG:   type_name: submit_sm
2014-05-21 12:31:19 [27979] [3945] DEBUG:   command_id: 4 = 0x00000004
2014-05-21 12:31:19 [27979] [3945] DEBUG:   command_status: 0 = 0x00000000
2014-05-21 12:31:19 [27979] [3945] DEBUG:   sequence_number: 30185 = 0x000075e9
2014-05-21 12:31:19 [27979] [3945] DEBUG:   service_type: NULL
2014-05-21 12:31:19 [27979] [3945] DEBUG:   source_addr_ton: 3 = 0x00000003
2014-05-21 12:31:19 [27979] [3945] DEBUG:   source_addr_npi: 9 = 0x00000009
2014-05-21 12:31:19 [27979] [3945] DEBUG:   source_addr: "xxxxxxx"
2014-05-21 12:31:19 [27979] [3945] DEBUG:   dest_addr_ton: 1 = 0x00000001
2014-05-21 12:31:19 [27979] [3945] DEBUG:   dest_addr_npi: 1 = 0x00000001
2014-05-21 12:31:19 [27979] [3945] DEBUG:   destination_addr: "xxxxxxx"
2014-05-21 12:31:19 [27979] [3945] DEBUG:   esm_class: 64 = 0x00000040
2014-05-21 12:31:19 [27979] [3945] DEBUG:   protocol_id: 0 = 0x00000000
2014-05-21 12:31:19 [27979] [3945] DEBUG:   priority_flag: 0 = 0x00000000
2014-05-21 12:31:19 [27979] [3945] DEBUG:   schedule_delivery_time: NULL
2014-05-21 12:31:19 [27979] [3945] DEBUG:   validity_period: "000002000000000R"
2014-05-21 12:31:19 [27979] [3945] DEBUG:   registered_delivery: 0 = 0x00000000
2014-05-21 12:31:19 [27979] [3945] DEBUG:   replace_if_present_flag: 0 = 
0x00000000
2014-05-21 12:31:19 [27979] [3945] DEBUG:   data_coding: 0 = 0x00000000
2014-05-21 12:31:19 [27979] [3945] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2014-05-21 12:31:19 [27979] [3945] DEBUG:   sm_length: 136 = 0x00000088
2014-05-21 12:31:19 [27979] [3945] DEBUG:   short_message:
2014-05-21 12:31:19 [27979] [3945] DEBUG:    Octet string at 0x7f23501e1700:
2014-05-21 12:31:19 [27979] [3945] DEBUG:      len:  136
2014-05-21 12:31:19 [27979] [3945] DEBUG:      size: 137
2014-05-21 12:31:19 [27979] [3945] DEBUG:      immutable: 0
2014-05-21 12:31:19 [27979] [3945] DEBUG:      data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:      data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:      data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:      data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:      data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:      data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:      data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:      data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:      data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:    Octet string dump ends.
2014-05-21 12:31:19 [27979] [3945] DEBUG:   dest_addr_subunit: 2 = 0x00000002
2014-05-21 12:31:19 [27979] [3945] DEBUG: SMPP PDU dump ends.
2014-05-21 12:31:19 [27979] [3945] DEBUG: SMPP[xxxxxxx]: UDH length read as 6
2014-05-21 12:31:19 [27979] [3945] DEBUG: Requested UTC timestamp: 2014-05-23 
12:31:19
2014-05-21 12:31:19 [27979] [3945] DEBUG: requested timestamp in min. (2880)
2014-05-21 12:31:19 [27979] [3945] DEBUG: routed msg 'xxxxxxx' to smsc 'xxxxxxx'
2014-05-21 12:31:19 [27979] [3945] DEBUG: assemble multi-part message.
2014-05-21 12:31:19 [27979] [3945] DEBUG: received 1 of 2.
2014-05-21 12:31:19 [27979] [3945] DEBUG: Msg object at 0x7f23501e08a0:
2014-05-21 12:31:19 [27979] [3945] DEBUG:  type: sms
2014-05-21 12:31:19 [27979] [3945] DEBUG:  sms.sender:
2014-05-21 12:31:19 [27979] [3945] DEBUG:  Octet string at 0x7f235013b840:
2014-05-21 12:31:19 [27979] [3945] DEBUG:    len:  11
2014-05-21 12:31:19 [27979] [3945] DEBUG:    size: 12
2014-05-21 12:31:19 [27979] [3945] DEBUG:    immutable: 0
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:  Octet string dump ends.
2014-05-21 12:31:19 [27979] [3945] DEBUG:  sms.receiver:
2014-05-21 12:31:19 [27979] [3945] DEBUG:  Octet string at 0x7f23501eeec0:
2014-05-21 12:31:19 [27979] [3945] DEBUG:    len:  12
2014-05-21 12:31:19 [27979] [3945] DEBUG:    size: 1024
2014-05-21 12:31:19 [27979] [3945] DEBUG:    immutable: 0
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:  Octet string dump ends.
2014-05-21 12:31:19 [27979] [3945] DEBUG:  sms.udhdata:
2014-05-21 12:31:19 [27979] [3945] DEBUG:  Octet string at 0x7f23501ed2e0:
2014-05-21 12:31:19 [27979] [3945] DEBUG:    len:  6
2014-05-21 12:31:19 [27979] [3945] DEBUG:    size: 7
2014-05-21 12:31:19 [27979] [3945] DEBUG:    immutable: 0
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: 05 00 03 2e 02 02            
                     ......
2014-05-21 12:31:19 [27979] [3945] DEBUG:  Octet string dump ends.
2014-05-21 12:31:19 [27979] [3945] DEBUG:  sms.msgdata:
2014-05-21 12:31:19 [27979] [3945] DEBUG:    len:  130
2014-05-21 12:31:19 [27979] [3945] DEBUG:    size: 137
2014-05-21 12:31:19 [27979] [3945] DEBUG:    immutable: 0
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data         
                                   
2014-05-21 12:31:19 [27979] [3945] DEBUG:  Octet string dump ends.
2014-05-21 12:31:19 [27979] [3945] DEBUG:  sms.time: 1400675479
2014-05-21 12:31:19 [27979] [3945] DEBUG:  sms.smsc_id:
2014-05-21 12:31:19 [27979] [3945] DEBUG:  Octet string at 0x7f23501a7a80:
2014-05-21 12:31:19 [27979] [3945] DEBUG:    len:  13
2014-05-21 12:31:19 [27979] [3945] DEBUG:    size: 14
2014-05-21 12:31:19 [27979] [3945] DEBUG:    immutable: 0
2014-05-21 12:31:19 [27979] [3945] DEBUG:    data: // confidential data
2014-05-21 12:31:19 [27979] [3945] DEBUG:  Octet string dump ends.
2014-05-21 12:31:19 [27979] [3945] DEBUG:  sms.smsc_number:
2014-05-21 12:31:19 [27979] [3945] DEBUG:  sms.foreign_id:
2014-05-21 12:31:19 [27979] [3945] DEBUG:  sms.service:
2014-05-21 12:31:19 [27979] [3945] DEBUG:  Octet string at 0x7f23501f1b20:
2014-05-21 12:31:19 [27979] [3945] DEBUG:    len:  9
2014-05-21 12:31:19 [27979] [3945] DEBUG:    size: 10
2014-05-21 12:31:19 [27979] [3945] DEBUG:    immutable: 0
2014-05-21 12:31:19 [27979] [3945] PANIC: gwlib/octstr.c:2563: 
seems_valid_real: Assertion `ostr->len + 1 <= ostr->size' failed. (Called from 
gwlib/octstr.c:344:octstr_len.)
2014-05-21 12:31:19 [27979] [3945] PANIC: 
/usr/local/kannel/sbin/opensmppbox(gw_backtrace+0xae) [0x4557fe]
2014-05-21 12:31:19 [27979] [3945] PANIC: 
/usr/local/kannel/sbin/opensmppbox(gw_panic+0x159) [0x455969]
2014-05-21 12:31:19 [27979] [3945] PANIC: /usr/local/kannel/sbin/opensmppbox() 
[0x456ae2]
2014-05-21 12:31:19 [27979] [3945] PANIC: 
/usr/local/kannel/sbin/opensmppbox(octstr_len+0x1f) [0x456d3f]
2014-05-21 12:31:19 [27979] [3945] PANIC: /usr/local/kannel/sbin/opensmppbox() 
[0x457cf8]
2014-05-21 12:31:19 [27979] [3945] PANIC: 
/usr/local/kannel/sbin/opensmppbox(octstr_dump_real+0x67) [0x458367]
2014-05-21 12:31:19 [27979] [3945] PANIC: 
/usr/local/kannel/sbin/opensmppbox(msg_dump+0x363) [0x4175b3]
2014-05-21 12:31:19 [27979] [3945] PANIC: /usr/local/kannel/sbin/opensmppbox() 
[0x4112e6]
2014-05-21 12:31:19 [27979] [3945] PANIC: /usr/local/kannel/sbin/opensmppbox() 
[0x44c369]
2014-05-21 12:31:19 [27979] [3945] PANIC: /lib64/libpthread.so.0(+0x7851) 
[0x7f24601c4851]
2014-05-21 12:31:19 [27979] [3945] PANIC: /lib64/libc.so.6(clone+0x6d) 
[0x7f245f12f90d]

Thanks 

Lee

Reply via email to