Opensips 1.6.2 crashing when using xlog

  • Daniel Zanutti

    Daniel Zanutti - 2011-09-26

    Hi Guys

    I'm having an strange issue. I was trying to identify a problem with some customer and inserted a log on my failure route:
    xlog("L_NOTICE", "-- Failure XXX - ($avp(s:numdest)) \n");

    This was working fine then I inserted the reply code from on reply route, in the log like bellow:

    xlog("L_NOTICE", "-- Failure XXX - ($avp(s:numdest)) Reply: $(<reply>rs) \n");

    And Opensips started crashing on < 5 random minutes. Nothing on syslog, just the "Starting opensips" from the new thread…

    On coredump, i can see:
    Core was generated by `/sbin/opensips -P /var/run/opensips/ -m 512 -u opensips -g opensips'.
    Program terminated with signal 11, Segmentation fault.
    #0  0x00007f3bc77f2538 in unref_dlg (dlg=0x7f3ba6c82b10, cnt=1) at dlg_hash.c:587
    587 dlg_hash.c: No such file or directory.
    in dlg_hash.c

    Any idea? I solved removing the  "Reply: $(<reply>rs)", but this wasn't suppose to happen.


  • Bogdan-Andrei Iancu

    Hi Daniel,

    could you do a "bt" in gdb go get the complete backtrace ?

    Thanks and regards,


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks