RE: OPENSMPPBOX Panic

2017-05-22 Thread Wan Md Arif Noor Bin. Wan Nizam
Hi Again,

I'm getting the PANIC more and more each day and I still can't find what 
causing it. I can just revert to the old version, however the old version has 
another issue with "Garbage PDU" which I like to avoid as it keeps 
disconnecting user, but PANIC issue is more troubling as it crashed and 
disconnecting all user instead of one.

Below are the latest 2 crashes log :

2017-05-22 23:03:34 [3366] [83] PANIC: gwlib/octstr.c:2569: seems_valid_real: 
Assertion `ostr->data[ostr->len] == '\0'' failed. (Called from 
gwlib/octstr.c:325:octstr_destroy.)
2017-05-22 23:03:34 [3366] [83] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(gw_backtrace+0xae) [0x45db6e]
2017-05-22 23:03:34 [3366] [83] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(gw_panic+0x159) [0x45dcd9]
2017-05-22 23:03:34 [3366] [83] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x45f95b]
2017-05-22 23:03:34 [3366] [83] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(octstr_destroy+0x1d) [0x461c8d]
2017-05-22 23:03:34 [3366] [83] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x40e7bd]
2017-05-22 23:03:34 [3366] [83] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x41105f]
2017-05-22 23:03:34 [3366] [83] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x4546a9]
2017-05-22 23:03:34 [3366] [83] PANIC: /lib64/libpthread.so.0(+0x7aa1) 
[0x7fa32a0eaaa1]
2017-05-22 23:03:34 [3366] [83] PANIC: /lib64/libc.so.6(clone+0x6d) 
[0x7fa3297e693d]

addr2line -e /usr/local/kannel2/sbin/opensmppbox 0x45db6e 0x45dcd9 0x45f95b 
0x461c8d 0x40e7bd 0x41105f 0x4546a9

/home/trunk/gwlib/log.c:572
/home/trunk/gwlib/log.c:608
/home/trunk/gwlib/octstr.c:2571
/home/trunk/gwlib/octstr.c:326
/home/opensmppbox/trunk/gw/opensmppbox.c:1788
/home/opensmppbox/trunk/gw/opensmppbox.c:2150
/home/trunk/gwlib/gwthread-pthread.c:391


2017-05-22 23:21:28 [31827] [79] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x46b3fc]
2017-05-22 23:21:28 [31827] [79] PANIC: /lib64/libpthread.so.0(+0xf7e0) 
[0x7fd664b747e0]
2017-05-22 23:21:28 [31827] [79] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x45f992]
2017-05-22 23:21:28 [31827] [79] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(octstr_destroy+0x1d) [0x461c8d]
2017-05-22 23:21:28 [31827] [79] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x40e787]
2017-05-22 23:21:28 [31827] [79] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x41105f]
2017-05-22 23:21:28 [31827] [79] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x4546a9]
2017-05-22 23:21:28 [31827] [79] PANIC: /lib64/libpthread.so.0(+0x7aa1) 
[0x7fd664b6caa1]
2017-05-22 23:21:28 [31827] [79] PANIC: /lib64/libc.so.6(clone+0x6d) 
[0x7fd66426893d]

addr2line -e /usr/local/kannel2/sbin/opensmppbox 0x46b3fc 0x45f992 0x461c8d 
0x40e787 0x41105f 0x4546a9

/home/trunk/gwlib/utils.c:168
/home/trunk/gwlib/octstr.c:2568
/home/trunk/gwlib/octstr.c:326
/home/opensmppbox/trunk/gw/opensmppbox.c:1779
/home/opensmppbox/trunk/gw/opensmppbox.c:2150
/home/trunk/gwlib/gwthread-pthread.c:391

Kindly need your assistance on this, do let me know if you need more 
information.

Thanks!
Arif Noor

From: users [mailto:users-boun...@kannel.org] On Behalf Of Wan Md Arif Noor 
Bin. Wan Nizam
Sent: Tuesday, May 16, 2017 10:42 AM
To: users@kannel.org
Subject: RE: OPENSMPPBOX Panic

Hi Users,

Anyone having this same issue?  Need assist urgently.


Thank you and Regards,
Arif Noor

From: users [mailto:users-boun...@kannel.org] On Behalf Of Wan Md Arif Noor 
Bin. Wan Nizam
Sent: Thursday, May 11, 2017 9:49 AM
To: users@kannel.org<mailto:users@kannel.org>
Subject: OPENSMPPBOX Panic


This sender failed our fraud detection checks and may not be who they appear to 
be. Learn about spoofing<http://aka.ms/LearnAboutSpoofing>

Feedback<http://aka.ms/SafetyTipsFeedback>

Hi Kannel Users,

I'm having issues with Opensmppbox which will go into PANIC with below error 
every day after upgrading to new SVN 'svn-r5186M'

09th May

2017-05-09 05:52:42 [29877] [97] PANIC: gwlib/octstr.c:2564: seems_valid_real: 
Assertion `ostr->data != NULL' failed. (Called from 
gwlib/octstr.c:325:octstr_destroy.)
2017-05-09 05:52:42 [29877] [97] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(gw_backtrace+0xae) [0x45db6e]
2017-05-09 05:52:42 [29877] [97] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(gw_panic+0x159) [0x45dcd9]
2017-05-09 05:52:42 [29877] [97] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x45fb60]
2017-05-09 05:52:42 [29877] [97] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(octstr_destroy+0x1d) [0x461c8d]
2017-05-09 05:52:42 [29877] [97] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x40e787]
2017-05-09 05:52:42 [29877] [97] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x41105f]
2017-05-09 05:52:42 [29877] [97] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x4546a9]
2017-05-09 05:52:42 [29877] [97] PANIC: /lib64/libpthread.so.0(+0x7aa1) 
[0x7fde85adeaa1]
2017-05-09 05:52:42 [29877] [97] PANIC: /lib64/libc.so.6(clone+0x6d) 
[0x7fde851da93d]

2017-05-09 12:53:12 [6023] [88] PANIC: /usr/local/kannel2/sbin

RE: OPENSMPPBOX Panic

2017-05-15 Thread Wan Md Arif Noor Bin. Wan Nizam
Hi Users,

Anyone having this same issue?  Need assist urgently.


Thank you and Regards,
Arif Noor

From: users [mailto:users-boun...@kannel.org] On Behalf Of Wan Md Arif Noor 
Bin. Wan Nizam
Sent: Thursday, May 11, 2017 9:49 AM
To: users@kannel.org
Subject: OPENSMPPBOX Panic


This sender failed our fraud detection checks and may not be who they appear to 
be. Learn about spoofing

Feedback

Hi Kannel Users,

I'm having issues with Opensmppbox which will go into PANIC with below error 
every day after upgrading to new SVN 'svn-r5186M'

09th May

2017-05-09 05:52:42 [29877] [97] PANIC: gwlib/octstr.c:2564: seems_valid_real: 
Assertion `ostr->data != NULL' failed. (Called from 
gwlib/octstr.c:325:octstr_destroy.)
2017-05-09 05:52:42 [29877] [97] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(gw_backtrace+0xae) [0x45db6e]
2017-05-09 05:52:42 [29877] [97] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(gw_panic+0x159) [0x45dcd9]
2017-05-09 05:52:42 [29877] [97] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x45fb60]
2017-05-09 05:52:42 [29877] [97] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(octstr_destroy+0x1d) [0x461c8d]
2017-05-09 05:52:42 [29877] [97] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x40e787]
2017-05-09 05:52:42 [29877] [97] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x41105f]
2017-05-09 05:52:42 [29877] [97] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x4546a9]
2017-05-09 05:52:42 [29877] [97] PANIC: /lib64/libpthread.so.0(+0x7aa1) 
[0x7fde85adeaa1]
2017-05-09 05:52:42 [29877] [97] PANIC: /lib64/libc.so.6(clone+0x6d) 
[0x7fde851da93d]

2017-05-09 12:53:12 [6023] [88] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x46b3fc]
2017-05-09 12:53:12 [6023] [88] PANIC: /lib64/libpthread.so.0(+0xf7e0) 
[0x7f27f82977e0]
2017-05-09 12:53:12 [6023] [88] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x45f8fb]
2017-05-09 12:53:12 [6023] [88] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(octstr_get_cstr_real+0x13) [0x45fb83]
2017-05-09 12:53:12 [6023] [88] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x41051a]
2017-05-09 12:53:12 [6023] [88] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x4546a9]
2017-05-09 12:53:12 [6023] [88] PANIC: /lib64/libpthread.so.0(+0x7aa1) 
[0x7f27f828faa1]
2017-05-09 12:53:12 [6023] [88] PANIC: /lib64/libc.so.6(clone+0x6d) 
[0x7f27f798b93d]

10th May

2017-05-10 16:00:40 [27593] [72] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x46b3fc]
2017-05-10 16:00:40 [27593] [72] PANIC: /lib64/libpthread.so.0(+0xf7e0) 
[0x7f1b36cd17e0]
2017-05-10 16:00:40 [27593] [72] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x45f8fb]
2017-05-10 16:00:40 [27593] [72] PANIC: 
/usr/local/kannel2/sbin/opensmppbox(octstr_get_cstr_real+0x13) [0x45fb83]
2017-05-10 16:00:40 [27593] [72] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x41051a]
2017-05-10 16:00:40 [27593] [72] PANIC: /usr/local/kannel2/sbin/opensmppbox() 
[0x4546a9]
2017-05-10 16:00:40 [27593] [72] PANIC: /lib64/libpthread.so.0(+0x7aa1) 
[0x7f1b36cc9aa1]
2017-05-10 16:00:40 [27593] [72] PANIC: /lib64/libc.so.6(clone+0x6d) 
[0x7f1b363c593d]

Opensmppbox Configuration

group = core
dlr-storage = mysql

group = opensmppbox
opensmppbox-id = FSMPP
opensmppbox-port = 3476
bearerbox-host = localhost
bearerbox-port = 14002
log-level = 0
log-file = "/var/log/kannel/smppbox/debug.log"
our-system-id = fSystem
use-systemid-as-smsboxid = 1
smpp-logins = "/opt/kannel/smpplogins.txt"

group = mysql-connection
id = mydlr
host = localhost
username = *
password = *
database = kannel
max-connections = 6

group = dlr-db
id = mydlr
table = dlr_smpp
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxcid

Kindly assist

Regards and thanks,
Arif Noor



Re: OpenSMPPBox Panic

2017-01-27 Thread Davor Spasoski
I second this. The panic happens on receiving the second part. I used kannel as 
a client and the concatenation mechanism used is udh based.

> On Jan 27, 2017, at 2:13 PM, Garry Macasieb  wrote:
>
> Hi Rene / Users,
>
> Greetings!
>
> Wish to consult you about the PANIC i'm getting from Opensmppbox module 
> whenever sending concatenated message:
>
> PANIC: gwlib/octstr.c:2562: seems_valid_real: Assertion `ostr->len + 1 <= 
> ostr->size' failed. (Called from gwlib/octstr.c:325:octstr_destroy.)
>
> Do you have a work around for this or a working patch?
>
> Thanks and looking forward to your response.
>
> --
> Garry
>
> ==
>
>



Disclaimer: one.Vip DOO Skopje
This e-mail (including any attachments) is confidential and may be protected by 
legal privilege. If you are not the intended recipient, you should not copy it, 
re-transmit it, use it or disclose its contents, but should return it to the 
sender immediately and delete your copy from your system. Any unauthorized use 
or dissemination of this message in whole or in part is strictly prohibited. 
Please note that e-mails are susceptible to change. one.Vip DOO Skopje shall 
not be liable for the improper or incomplete transmission of the information 
contained in this communication nor for any delay in its receipt or damage to 
your system.
Please, do not print this e-mail unless it is necessary! Think about saving the 
environment!

Напомена: оне.Вип ДОО Скопје
Оваа електронска порака (вклучувајќи ги и прилозите) е доверлива и може да биде 
заштитена со правни привилегии. Доколку не сте лицето на кое таа му е наменета 
пораката, не треба да ја копирате, дистрибуирате или да ја откривате нејзината 
содржина, туку веднаш да ја препратите до испраќачот и да ја избришете 
оригиналната порака и сите нејзини копии од Вашиот компјутерски систем. Секое 
неовластено користење на оваа порака во целост или делови од истата е строго 
забрането. Ве молиме да забележите дека електронските пораки се подложни на 
промени. оне.Вип ДОО Скопје не презема одговорност за несоодветно или нецелосно 
пренесување на информациите содржани во оваа комуникација, ниту пак за било 
какво задоцнување на приемот или оштетувања на вашиот систем.
Ве молиме не ја печатете оваа порака освен ако не е неопходно! Зачувајте ја 
природата!


Re: Opensmppbox Panic

2014-04-30 Thread Saurabh Pandey
Solved: Just pass a proper Octet string:

msgid = *octstr_duplicate*(gwlist_get(parts,gwlist_len(parts)-1));



On Wed, Apr 30, 2014 at 6:37 AM, Saurabh Pandey
sam.it.develo...@gmail.comwrote:

 Hi, please anyone help me. I've tried everything, studied about Octet
 string, used all functions, this isn't getting fixed. According to the
 Logs,the problem seems to be: *ostr-data[ostr-len] == '\0'' failed*
 which I understood that last char of the octet string should be \0. I've
 tried everything but I'm not able to fix this. C experts, Kannel experts
 please help me here.

 Thanks in advance




 On Wed, Apr 30, 2014 at 2:53 AM, Saurabh Pandey 
 sam.it.develo...@gmail.com wrote:

 Hi,

 I have this setup:

 SMSC-Bearerbox - Sqlbox --Opensmppbox - SMPP
 client

 Everything runs fine untill Opensmppbox send deliver_sm to smpp client.
 It crashes with following error in the log:

 -
 2014-04-29 18:05:30 [10020] [1] PANIC: gwlib/octstr.c:2509:
 seems_valid_real: Assertion `ostr-data[ostr-len] == '\0'' failed. (Called
 from opensmppbox.c:828:msg_to_pdu.)
 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox(gw_panic+0x147)
 [0x441527]
 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x44255b]
 2014-04-29 18:05:30 [10020] [1] PANIC:
 ./opensmppbox(octstr_duplicate_real+0x2e) [0x4459fe]
 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x40c1fc]
 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x40f391]
 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x43918e]
 2014-04-29 18:05:30 [10020] [1] PANIC: /lib64/libpthread.so.0()
 [0x3b1ea079d1]
 2014-04-29 18:05:30 [10020] [1] PANIC: /lib64/libc.so.6(clone+0x6d)
 [0x3b1e6e8b6d]

 -
  I inspected the line number mentioned and found this line:

 pdu-u.deliver_sm.receipted_message_id = octstr_duplicate(msgid);

 Now I have played around with the field msgid. Originally it was:
 msgid = gwlist_extract_first(parts); /* extracting first item */
 and I changed it to:
 msgid = gwlist_get(parts,gwlist_len(parts)-1); /* extracting last item */

 Now I don't think return type of the functions are different to in both
 cases msgid must be of same type. I fail to understand why the error is
 thrown. I've seen this error in the mail-archives also but couldn't find
 the solution. I'd appreciate any help.

 Thanks in advance.
 -Sam





Re: Opensmppbox Panic

2014-04-29 Thread Saurabh Pandey
Hi, please anyone help me. I've tried everything, studied about Octet
string, used all functions, this isn't getting fixed. According to the
Logs,the problem seems to be: *ostr-data[ostr-len] == '\0'' failed*
which I understood that last char of the octet string should be \0. I've
tried everything but I'm not able to fix this. C experts, Kannel experts
please help me here.

Thanks in advance




On Wed, Apr 30, 2014 at 2:53 AM, Saurabh Pandey
sam.it.develo...@gmail.comwrote:

 Hi,

 I have this setup:

 SMSC-Bearerbox - Sqlbox --Opensmppbox - SMPP client

 Everything runs fine untill Opensmppbox send deliver_sm to smpp client. It
 crashes with following error in the log:

 -
 2014-04-29 18:05:30 [10020] [1] PANIC: gwlib/octstr.c:2509:
 seems_valid_real: Assertion `ostr-data[ostr-len] == '\0'' failed. (Called
 from opensmppbox.c:828:msg_to_pdu.)
 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox(gw_panic+0x147)
 [0x441527]
 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x44255b]
 2014-04-29 18:05:30 [10020] [1] PANIC:
 ./opensmppbox(octstr_duplicate_real+0x2e) [0x4459fe]
 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x40c1fc]
 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x40f391]
 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x43918e]
 2014-04-29 18:05:30 [10020] [1] PANIC: /lib64/libpthread.so.0()
 [0x3b1ea079d1]
 2014-04-29 18:05:30 [10020] [1] PANIC: /lib64/libc.so.6(clone+0x6d)
 [0x3b1e6e8b6d]

 -
  I inspected the line number mentioned and found this line:

 pdu-u.deliver_sm.receipted_message_id = octstr_duplicate(msgid);

 Now I have played around with the field msgid. Originally it was:
 msgid = gwlist_extract_first(parts); /* extracting first item */
 and I changed it to:
 msgid = gwlist_get(parts,gwlist_len(parts)-1); /* extracting last item */

 Now I don't think return type of the functions are different to in both
 cases msgid must be of same type. I fail to understand why the error is
 thrown. I've seen this error in the mail-archives also but couldn't find
 the solution. I'd appreciate any help.

 Thanks in advance.
 -Sam