Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Opensips 1.6.2 crashing when using xlog

2011-09-26
2013-05-09
  • 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/opensips.pid -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.

    Thanks

     
  • Hi Daniel,

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

    Thanks and regards,
    Bogdan