Menu

#123 msg_hclass_offset() does not work correctly when sofia-sip has been built with gcc 4.9.x

SIPit17
open
nobody
None
5
2015-01-09
2015-01-09
No

Hello sofia-sip team.

I am working on a SIP server which use sofia-sip as SIP stack. I found that msg_dup does not completly copy SIP messages when sofia-sip has been built with gcc 4.9.2. After more investigations, I found that gcc's optimizations alterate the working of the msg_hclass_offset() function. More sepcificaly, gcc destroies the loop situated at line 2551.

The issue occures with version 4.9.x of gcc and the last release of sofia-sip (1.12.11).

I give you in attachement a programm that highlight the issue. It parse a SIP message located in a file, copy it with msg_dup() and print the source message and copied message by using msg_as_string().

Thank you in advance

François Grisez

1 Attachments

Related

Bugs: #123

Discussion

  • mjerris

    mjerris - 2015-01-09

    there is a patch in the freeswitch tree to fix this issue already. You can use that for now.

    On Jan 9, 2015, at 9:45 AM, François Grisez fgrisez@users.sf.net wrote:

    [bugs:#123] msg_hclass_offset() does not work correctly when sofia-sip has been built with gcc 4.9.x

    Status: open
    Group: SIPit17
    Created: Fri Jan 09, 2015 02:45 PM UTC by François Grisez
    Last Updated: Fri Jan 09, 2015 02:45 PM UTC
    Owner: nobody

    Hello sofia-sip team.

    I am working on a SIP server which use sofia-sip as SIP stack. I found that msg_dup does not completly copy SIP messages when sofia-sip has been built with gcc 4.9.2. After more investigations, I found that gcc's optimizations alterate the working of the msg_hclass_offset() function. More sepcificaly, gcc destroies the loop situated at line 2551.

    The issue occures with version 4.9.x of gcc and the last release of sofia-sip (1.12.11).

    I give you in attachement a programm that highlight the issue. It parse a SIP message located in a file, copy it with msg_dup() and print the source message and copied message by using msg_as_string().

    Thank you in advance

    François Grisez

    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/sofia-sip/bugs/123/ https://sourceforge.net/p/sofia-sip/bugs/123
    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions

     

    Related

    Bugs: #123

    • François Grisez

      The FreeSwitch patch works fine for me.
      Thank you very much


      François Grisez

       

Log in to post a comment.