#458 problem with set_advertised_address function in rev #8533

trunk
closed-fixed
core (110)
5
2012-02-10
2011-12-28
Anonymous
No

Hi,
I've updated my opensips with rev #8533, set_advertised_address function works properly, but I'm making load tests now and there is problem.
I'm using SIPp with default scenario and I've emerged, that after about 1000 calls with call-rate 10(0ms)/1s, opensips crashes with following errors:
DEC 27 13:11:11 opensips /sbin/opensips[2292]: CRITICAL:core:qm_debug_frag: qm_*: prev. fragm. tail overwritten(c0c0c000, abcdefed)[0xb771d158:0xb771d170]!
DEC 27 13:11:12 opensips /sbin/opensips[2288]: CRITICAL:core:qm_debug_frag: qm_*: prev. fragm. tail overwritten(c0c0c000, abcdefed)[0xb771d13c:0xb771d154]!
DEC 27 13:11:12 opensips /sbin/opensips[2291]: CRITICAL:core:qm_debug_frag: qm_*: prev. fragm. tail overwritten(c0c0c000, abcdefed)[0xb771d13c:0xb771d154]!
DEC 27 13:11:12 opensips /sbin/opensips[2294]: CRITICAL:core:qm_debug_frag: qm_*: prev. fragm. tail overwritten(c0c0c000, abcdefed)[0xb771d13c:0xb771d154]!
DEC 27 13:11:13 opensips /sbin/opensips[2312]: CRITICAL:core:receive_fd: EOF on 13

I'm using command:
$avp(newvia)=$hdr(Via){via.host}+":"+$sp;
set_advertised_address("$avp(newvia)");
if I delete it, or set ("192.168.1.1"), everything works properly and opensips can handle 3000 calls and more.

Plz help
Jack

Discussion

  • Vladut-Stefan Paiu

    Hello,

    It seems you are dealing with a memory corruption.
    If you still do all the VIA transformations, but statically set the advertised address param, do you still get the crashes ?
    Like :

    $avp(newvia)=$hdr(Via){via.host}+":"+$sp;
    set_advertised_address(192.168.1.1)

    Trying to see which ops triggers the actual corruption, the VIA transformations or the adv address.

    Regards,
    Vlad

     
  • Nobody/Anonymous

    Hi,
    The problem appears only if I set avp as function argument, e.g.:
    set_advertised_address("hdr(Via){via.host}");
    In other cases everything is ok.

    Regards
    Jack

     
  • Nobody/Anonymous

    Hi,
    I've done additional tests and it shows, that avp also causes opensips crash.
    It crashes with command:
    $avp(newvia)=$(hdr(Via){via.host});
    #set_advertised_....
    But it's OK with following command:
    $avp(newvia)=$hdr(Via);
    #set_advertised_...

    Opensips is running on Ubuntu on VirtualBox.

    Regards,
    Jack

     
  • Vladut-Stefan Paiu

    Hello,

    I can't seem to be able to replicate the crash you are experiencing.
    Is it possible that you can privately give me access to your server on the OpenSIPS binary and the core dump, so I can analyze it with GDB ?

    Regards,
    Vlad

     
  • Bogdan-Andrei Iancu

    • labels: --> core
    • milestone: 855204 --> trunk
    • assigned_to: nobody --> vladut-paiu
     
  • Nobody/Anonymous

    I've written a private mail to you.

    Regards
    Jack

     
  • Nobody/Anonymous

    Hi,
    If you could have some problem connecting to server,
    i've uploaded core file on my private ftp,
    you can download it from here:
    http://www.jwysmyk.neostrada.pl/core

    Regards
    Jack

     
  • Vladut-Stefan Paiu

    Hello,

    Can you please update to latest trunk version and see if the bug re-appears ?
    Recently, a bug has been fixed that was leading to memory corruption when using via transformations, and I think it was related to your problem as well.

    Regards,
    Vlad

     
  • Vladut-Stefan Paiu

    • status: open --> closed-fixed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks