[Sofia-sip-devel] strange bug surfaces on Fedora 20 and Mint using SIPTAG_PAYLOAD_STR

2014-04-24 Thread Dave Horton
I recently came across a problem that manifested only on Fedora 20 and Mint (not on Ubunto or Centos 6.x). When using SIPTAG_PAYLOAD_STR to add a body to an outgoing SIP message, the message goes out without any body; i.e., it's as if that tag was silently ignored. My program would also

Re: [Sofia-sip-devel] strange bug surfaces on Fedora 20 and Mint using SIPTAG_PAYLOAD_STR

2014-04-24 Thread Dave Horton
Thanks, that looks exactly like the same bug (and fix). Just out of interest, what kind of problem and what platform did you see problems manifest that led you to make this fix ? I haven't looked closely at the freeswitch fixes that haven't been ported back anywhere, but now I think I

Re: [Sofia-sip-devel] strange bug surfaces on Fedora 20 and Mint using SIPTAG_PAYLOAD_STR

2014-04-24 Thread Michael Jerris
Looks about right.. i had something very similar from the FreeSWITCH tree: diff --git a/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser.c b/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser.c index d75b975..c312445 100644 --- a/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser.c +++

Re: [Sofia-sip-devel] strange bug surfaces on Fedora 20 and Mint using SIPTAG_PAYLOAD_STR

2014-04-24 Thread Michael Jerris
Our full history is: http://fisheye.freeswitch.org/changelog/FreeSWITCH/libs/sofia-sip?max=30view=fe or just pull directly from freeswitch git tree... the issue is, some of our fixes change behavior statically instead of having a tag to change behavior, so all the patches may not be

Re: [Sofia-sip-devel] strange bug surfaces on Fedora 20 and Mint using SIPTAG_PAYLOAD_STR

2014-04-24 Thread Arsen Chaloyan
Interestingly, I ran into the same problem earlier this week trying out my application on Ubuntu 13. The root cause of the problem is in the gcc version, more specifically 4.8 and probably above, which introduces aggressive loop optimization techniques. Searching the net, you may find many

Re: [Sofia-sip-devel] strange bug surfaces on Fedora 20 and Mint using SIPTAG_PAYLOAD_STR

2014-04-24 Thread Dave Horton
Yes, I have made the fix in my github repo and am also in the process of reviewing and back-porting some Freeswitch fixes: https://github.com/davehorton/sofia-sip/commits/master On Apr 24, 2014, at 12:08 PM, Arsen Chaloyan achalo...@yahoo.com wrote: Interestingly, I ran into the same problem