[OpenSIPS-Users] OpenSIPS crashing on 200 OK
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Feb 27 11:19:19 EST 2018
Thanks Benfor the support in investigating this. The bug was identified
and confirm, let me work on a fix right now. I will shortly ping you for
testing ;)
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Summit 2018
http://www.opensips.org/events/Summit-2018Amsterdam
On 02/27/2018 12:12 AM, Bogdan-Andrei Iancu wrote:
> OK, to be more precise, the crash is around an "If" statement where
> you have in the condition an REGEXP test (=~) with a left operand
> translated into "downstream" (maybe a $DLG_dir ??).
> Does it sound familiar to you :) ?
>
> Regards,
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
> OpenSIPS Summit 2018
> http://www.opensips.org/events/Summit-2018Amsterdam
> On 02/26/2018 11:32 PM, Ben Newlin wrote:
>>
>> Yes, that is from that exact file, line 435. It’s just a return
>> statement. I can send you the file off-list if you’d like.
>>
>> I do use the $DLG_dir in my script in a few places, but the only one
>> this crash would have hit is in some logging.
>>
>> Ben Newlin
>>
>> *From: *Bogdan-Andrei Iancu <bogdan at opensips.org>
>> *Date: *Monday, February 26, 2018 at 4:14 PM
>> *To: *Ben Newlin <Ben.Newlin at genesys.com>, OpenSIPS users mailling
>> list <users at lists.opensips.org>
>> *Subject: *Re: [OpenSIPS-Users] OpenSIPS crashing on 200 OK
>>
>> OK, but check the exact file you pass to Opensips - according to the
>> debug info is /opensips/control.cfg like 435.
>>
>> Also, do you use the $DLG_dir variable in your cfg ?
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>> OpenSIPS Summit 2018
>> http://www.opensips.org/events/Summit-2018Amsterdam
>>
>> On 02/26/2018 08:10 PM, Ben Newlin wrote:
>>
>> Hmm, no. Line 435 of my config is a return statement.
>>
>> return(-1);
>>
>> Ben Newlin
>>
>> *From: *Bogdan-Andrei Iancu <bogdan at opensips.org>
>> <mailto:bogdan at opensips.org>
>> *Date: *Monday, February 26, 2018 at 12:16 PM
>> *To: *Ben Newlin <Ben.Newlin at genesys.com>
>> <mailto:Ben.Newlin at genesys.com>, OpenSIPS users mailling list
>> <users at lists.opensips.org> <mailto:users at lists.opensips.org>
>> *Subject: *Re: [OpenSIPS-Users] OpenSIPS crashing on 200 OK
>>
>> Could you off-list past me the line 435 of your cfg - I guess you
>> use some $DLG_dir there ?
>>
>> Regards,
>>
>>
>> Bogdan-Andrei Iancu
>>
>>
>>
>> OpenSIPS Founder and Developer
>>
>> http://www.opensips-solutions.com
>>
>> OpenSIPS Summit 2018
>>
>> http://www.opensips.org/events/Summit-2018Amsterdam
>>
>> On 02/26/2018 07:04 PM, Ben Newlin wrote:
>>
>> Here you go: https://pastebin.com/rpUjaHBG
>> <https://pastebin.com/rpUjaHBG>
>>
>> Thanks,
>>
>> Ben Newlin
>>
>> *From: *Bogdan-Andrei Iancu <bogdan at opensips.org>
>> <mailto:bogdan at opensips.org>
>> *Date: *Monday, February 26, 2018 at 10:45 AM
>> *To: *Ben Newlin <Ben.Newlin at genesys.com>
>> <mailto:Ben.Newlin at genesys.com>, OpenSIPS users mailling list
>> <users at lists.opensips.org> <mailto:users at lists.opensips.org>
>> *Subject: *Re: [OpenSIPS-Users] OpenSIPS crashing on 200 OK
>>
>> OK, once you started GDB like "gdb /path/to/opensips
>> /path/to/core", run step by step:
>>
>> f 0
>> p *s1
>> f 5
>> p *a
>>
>> Regards,
>>
>>
>>
>> Bogdan-Andrei Iancu
>>
>>
>>
>> OpenSIPS Founder and Developer
>>
>> http://www.opensips-solutions.com
>>
>> OpenSIPS Summit 2018
>>
>> http://www.opensips.org/events/Summit-2018Amsterdam
>>
>> On 02/26/2018 05:43 PM, Ben Newlin wrote:
>>
>> Bogdan,
>>
>> Unfortunately I am not at all familiar with gdb. How do I
>> change frames?
>>
>> Ben Newlin
>>
>> *From: *Bogdan-Andrei Iancu <bogdan at opensips.org>
>> <mailto:bogdan at opensips.org>
>> *Date: *Monday, February 26, 2018 at 10:40 AM
>> *To: *Ben Newlin <Ben.Newlin at genesys.com>
>> <mailto:Ben.Newlin at genesys.com>, OpenSIPS users mailling
>> list <users at lists.opensips.org>
>> <mailto:users at lists.opensips.org>
>> *Subject: *Re: [OpenSIPS-Users] OpenSIPS crashing on 200 OK
>>
>> Hi Ben,
>>
>> The backtrace points to the script interpreter
>> :D....Please do the followings (assuming you are a bit
>> faimilar with GDB :) ) :
>>
>> in frame 0, please do "print *s1"
>> and in frame 5 do "print *a"
>>
>> Regards,
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180227/544986af/attachment.html>
More information about the Users
mailing list