Hi John,

Thanks for the info, I managed to find the bug and have it fixed:
https://github.com/OpenSIPS/opensips/commit/4b0fca533cd7be4a45c1381c78f2b37aaba6152b

Please update from GIT and let me know if you still have the problem.

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 17.05.2016 21:37, John Nash wrote:
Hello Bogdan,

The version is Server:: OpenSIPS (2.1.2 (x86_64/linux))

Since this is live we do not have detailed debug. Below is what happened before crash (We had multiple such entries). I figured it might be related to malformed SIP message so I applied sipmsg_validate() function even for so called trusted endpoints.


May 11 20:38:30 localhost opensips[10315]: ERROR:tm:send_ack: failed to generate a HBH ACK if key HFs in reply missing May 11 20:38:30 localhost opensips[10315]: ERROR:tm:reply_received: failed to send ACK (local=no) May 11 20:38:46 localhost opensips[10315]: ERROR:tm:send_ack: failed to generate a HBH ACK if key HFs in reply missing May 11 20:38:46 localhost opensips[10315]: ERROR:tm:reply_received: failed to send ACK (local=no) May 11 20:38:51 localhost opensips[10314]: ERROR:core:parse_to: unexpected char [#015] in status 1: <<"1234 <sip:[email protected]:5060>;tag=2878411H96479>> . May 11 20:38:51 localhost opensips[10314]: ERROR:core:parse_from_header: bad from header May 11 20:38:51 localhost opensips[10314]: ERROR:dialog:dlg_create_dialog: bad request or missing FROM hdr :-/ May 11 20:38:51 localhost opensips[10314]: ERROR:core:skip_name: closing quote missing in name part of Contact May 11 20:38:51 localhost opensips[10314]: ERROR:core:parse_contacts: failed to skip name part May 11 20:38:51 localhost opensips[10314]: ERROR:core:contact_parser: failed to parse contacts May 11 20:38:51 localhost opensips[10314]: ERROR:core:parse_contact: failed to parse contact May 11 20:38:51 localhost opensips[10314]: ERROR:topology_hiding:topo_no_dlg_encode_contact: bad Contact HDR May 11 20:38:51 localhost opensips[10314]: ERROR:core:skip_name: closing quote missing in name part of Contact May 11 20:38:51 localhost opensips[10314]: ERROR:core:parse_contacts: failed to skip name part May 11 20:38:51 localhost opensips[10314]: ERROR:core:contact_parser: failed to parse contacts May 11 20:38:51 localhost opensips[10314]: ERROR:core:parse_contact: failed to parse contact May 11 20:38:51 localhost opensips[10314]: ERROR:topology_hiding:build_encoded_contact_suffix: bad Contact HDR May 11 20:38:51 localhost opensips[10314]: CRITICAL:topology_hiding:build_encoded_contact_suffix: #012>>> pkg_free() on non-pkg ptr 0x18 - aborting!#012#012It seems you have hit a programming bug.#012Please help us make OpenSIPS better by reporting it at https://github.com/OpenSIPS/opensips/issues#012


On Tue, May 17, 2016 at 9:35 PM, Bogdan-Andrei Iancu <[email protected] <mailto:[email protected]>> wrote:

    Hi Nash,

    What version of OpenSIPS are you using ? also, before that
    CRITICAL message, do you see any other error messages in the logs ?

    Regards,

    Bogdan-Andrei Iancu
    OpenSIPS Founder and Developer
    http://www.opensips-solutions.com

    On 12.05.2016 08:46, John Nash wrote:
    Actually crash happened shortly after we uploaded 11000 codes but
    looks like it is not related to drouting. I see following message

    CRITICAL:topology_hiding:build_encoded_contact_suffix: #012>>>
    pkg_free() on non-pkg ptr 0x18 - aborting!#012#012It seems you
    have hit a programming bug.#012Please help us make OpenSIPS
    better by reporting it at
    https://github.com/OpenSIPS/opensips/issues#012

    In log file I see following messages time to time
    ERROR:core:pv_get_contact_body: failed to parse contact hdr

    On Wed, May 11, 2016 at 11:29 PM, John Nash
    <[email protected] <mailto:[email protected]>> wrote:

        I have been using drouting module with just 200 entries from
        8 months yesterday we had need of adding around 11000 entries
        in rules table but after that opensips started to crash. I am
        currently using -m 2048 -M 1024 isn't it enough memory?

        How can I anticipate memory usage?

        John




    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to