Crash on SDP parsing when compiling with -O3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some more info:

PJSUA crashes even with the default optimisation level (-O2) on OSX. I could make it work by compiling it with -O1. I guess Clang does other types of optimisations. FWIW:

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix


On 19 Dec 2014, at 17:13, Sa?l Ibarra Corretg? <saul at ag-projects.com> wrote:

> Hi all,
> 
> I just hit this poltergeist, and I?m quite puzzled. In a nutshell, when compiling pjsua normally, which AFAIS uses -O2 (./configure && make del && make) I cannot make the SDP parser crash with a stupid 2 byte cuasi-SDP. When compiling with -O3 (export CFLAGS=?-O3? and then same as above), however, it crashes. Here is the output of both runs + my compiler info:
> 
> https://gist.github.com/saghul/68dd0c24c3ec1f68c88d
> 
> 
> Any ideas on how to unravel this mystery
> 
> --
> Sa?l Ibarra Corretg?
> AG Projects
> 
> 
> 
> 
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Sa?l Ibarra Corretg?
AG Projects





-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141222/3f8236c9/attachment.asc>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux