[OpenSIPS-Users] OpenSIPS crashing on 200 OK

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Feb 28 06:27:32 EST 2018


Hi Ben,

This new crash was also fixed - see 
https://github.com/OpenSIPS/opensips/commit/34f81b223fb466ecddf648f72f615ab24d4a86dc 
.

Do you have any more crashes on the pipe to report :D ? I'm getting warm :)

Thanks and 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/28/2018 06:19 AM, Ben Newlin wrote:
>
> I was able to reproduce and capture a core dump of the crash. 
> Backtrace is available here: https://pastebin.com/WtBB6cKm
>
> Thanks,
>
> Ben Newlin
>
> *From: *Ben Newlin <Ben.Newlin at genesys.com>
> *Date: *Tuesday, February 27, 2018 at 10:47 PM
> *To: *Bogdan-Andrei Iancu <bogdan at opensips.org>, OpenSIPS users 
> mailling list <users at lists.opensips.org>
> *Subject: *Re: [OpenSIPS-Users] OpenSIPS crashing on 200 OK
>
> Unfortunately, I have had another crash during testing. I was not able 
> to capture the core, but I did get this log:
>
> Feb 28 03:35:22 [359] CRITICAL:core:qm_debug_frag:  qm_*: prev. fragm. 
> tail overwritten(c0c0c0c0c0c0c020, 
> abcdefedabcdefed)[0x7fa6cd6c46b8:0x7fa6cd6c46f0] (del_uri_param, 
> checks.c:242)!
>
> Feb 28 03:35:23 [353] INFO:core:handle_sigs: child process 359 exited 
> by a signal 6
>
> I am making adjustments to be able to collect the core if the crash 
> occurs again.
>
> Thanks,
>
> Ben Newlin
>
> *From: *Ben Newlin <Ben.Newlin at genesys.com>
> *Date: *Tuesday, February 27, 2018 at 2:47 PM
> *To: *Bogdan-Andrei Iancu <bogdan at opensips.org>, OpenSIPS users 
> mailling list <users at lists.opensips.org>
> *Subject: *Re: [OpenSIPS-Users] OpenSIPS crashing on 200 OK
>
> Bogdan,
>
> I found this previous thread that has this error: 
> http://lists.opensips.org/pipermail/users/2016-October/035635.html
>
> The fix suggested there worked. When I removed the quotes around the 
> regexp used in re.subst the crash did not occur.
>
> Ben Newlin
>
> *From: *Ben Newlin <Ben.Newlin at genesys.com>
> *Date: *Tuesday, February 27, 2018 at 2:20 PM
> *To: *Bogdan-Andrei Iancu <bogdan at opensips.org>, OpenSIPS users 
> mailling list <users at lists.opensips.org>
> *Subject: *Re: [OpenSIPS-Users] OpenSIPS crashing on 200 OK
>
> Bogdan,
>
> I just tested it and that crash is no longer occurring. However I am 
> now seeing a different crash, but it seems to still be related to regexp.
>
> Feb 27 19:07:17 [369] ERROR:core:subst_parser: string too short
>
> Feb 27 19:07:17 [369] ERROR:core:tr_eval_re: Can't compile regexp
>
> Feb 27 19:07:17 [369] WARNING:core:do_assign: no value in right 
> expression at /opensips/control.cfg:1952
>
> Feb 27 19:07:17 [361] INFO:core:handle_sigs: child process 369 exited 
> by a signal 11
>
> Feb 27 19:07:17 [361] INFO:core:handle_sigs: core was generated
>
> Feb 27 19:07:17 [361] INFO:core:handle_sigs: terminating due to SIGCHLD
>
> The do_assign error makes it seem like there may be something wrong in 
> my script, but I can’t see what it is. And I’m not sure what the 
> “string too short” error is either or why the regexp could not be 
> compiled. It looks valid to me.
>
> Backtrace: https://pastebin.com/Fk2BRnsg
>
> Ben Newlin
>
> *From: *Bogdan-Andrei Iancu <bogdan at opensips.org>
> *Date: *Tuesday, February 27, 2018 at 12:55 PM
> *To: *OpenSIPS users mailling list <users at lists.opensips.org>, Ben 
> Newlin <Ben.Newlin at genesys.com>
> *Subject: *Re: [OpenSIPS-Users] OpenSIPS crashing on 200 OK
>
> Hi Ben,
>
> I just committed the fix for this - could you update from GIT and give 
> it a new try ?
>
> Thanks and 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 06:19 PM, Bogdan-Andrei Iancu wrote:
>
>     Thanks Ben for 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
>
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180228/c1cc4d33/attachment-0001.html>


More information about the Users mailing list