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
there is a patch in the freeswitch tree to fix this issue already. You can use that for now.
Related
Bugs: #123
The FreeSwitch patch works fine for me.
Thank you very much
François Grisez