When I compile xbmc-10.1 with -fomit-frame-pointer in the CFLAGS variable, I get a crash at startup. Reproducible: Always Steps to Reproduce: 1. Compile xbmc with -fomit-frame-pointer in CFLAGS 2. run xbmc Actual Results: $ xbmc /usr/bin/xbmc: line 133: 3462 Segmentation fault "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS Crash report available at /home/nereos/xbmc_crashlog-20110925_123930.log Expected Results: No crash. Recommended to send as a bug: http://forums.gentoo.org/viewtopic.php?p=6824794#6824794 If I run it inside gdb, I can get to: (gdb) r Starting program: /usr/lib/xbmc/xbmc.bin [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0xb2f8069c in CxImagePNG::Decode(CxFile*) () from /usr/lib/xbmc/system/ImageLib-i486-linux.so (gdb) bt #0 0xb2f8069c in CxImagePNG::Decode(CxFile*) () from /usr/lib/xbmc/system/ImageLib-i486-linux.so #1 0xb2f676c0 in CxImage::Decode(CxFile*, unsigned int, int&, int&) () from /usr/lib/xbmc/system/ImageLib-i486-linux.so #2 0xb2f683e2 in CxImage::Decode(_IO_FILE*, unsigned int, int&, int&) () from /usr/lib/xbmc/system/ImageLib-i486-linux.so #3 0xb2f685d8 in CxImage::Load(char const*, unsigned int, int&, int&) () from /usr/lib/xbmc/system/ImageLib-i486-linux.so #4 0xb2f42c4a in LoadImage () from /usr/lib/xbmc/system/ImageLib-i486-linux.so #5 0x08724040 in CBaseTexture::LoadFromFile(CStdStr<char> const&, unsigned int, unsigned int, bool, unsigned int*, unsigned int*) () #6 0x087022b8 in CGUITextureManager::Load(CStdStr<char> const&, bool) () #7 0x086e75d7 in CGUITextureBase::AllocResources() () #8 0x086b262d in CGUIImage::AllocResources() () #9 0x082850ad in CSplash::Show() () #10 0x083000f6 in CApplication::Create() () #11 0x085570ee in main ()
Created attachment 287689 [details] xbmc crash report Output of: $ xbmc --debug
post `emerge --info` with all your bug reports
Created attachment 288465 [details] cave info xbmc (with paludis)
I can confirm this with latest GIT. Is it possible that this is somehow related to the patches introduced in #380127 and/or libpng-1.5? It's just a guess since the stacktrace in comment #1 includes CxImage on top of the stack.
Created attachment 290093 [details] emerge --info
I get the same error on 2 out of 3 computers. The 3rd one hast been updated which is why it still works /usr/bin/xbmc: line 133: 3462 Segmentation fault "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
I can confirm without -fomit-frame-pointer in CFLAGS xbmc does not seg fault
re-open if xbmc-11 has same problem