Kodi Community Forum

Full Version: Segmentation fault when playing music mp3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Dist: Gentoo 2007.0 fully updated
Arch: i686
Install method: manual/ebuild
SVN Revision: 13982


Whenever I try to play a mp3 xbmc crashes with segmentation fault.

Debug log
Backtrace

Specs
CPU0: Intel® Pentium® 4 CPU 3.00GHz
CPU1: Intel® Pentium® 4 CPU 3.00GHz
RAM: 1Gb
Kerne: Linux Genesis 2.6.24-gentoo-r4 #1 SMP

I have tried vith several other mp3's. and still segfault
Video Playback works fine.

if more info is needed. please tell me.
Hmm... when trying some flac files I get this error
ALSA lib pcm_dmix.c:996Sadsnd_pcm_dmix_open) unable to open slave

Don't know why yet...but I'll keep on googling

And Im now up to Rev 13986.

wish me luck Nod
Suddenly FLAC playback works...

but mp3 still segfaults...=(
Can you try to rebuild with USE=debug and repost your backtrace? Also, make sure the file /usr/local/share/xbmc/system/players/paplayer/MADCodec-i486-linux.so exists.
Thnx althekiller for taking a look.

Here's the backtrace
And the debug log again

And yes MADCodec-i486-linux.so exists in
/usr/share/xbmc/system/players/paplayer/MADCodec-i486-linux.so
I made an strace to but ended up with 51Mb textfile.
if it could be of intrest just poke me.
Here's a link to the strace log

Enjoy Big Grin
Hmm, seems the ebuild doesn't handle the debug flag properly. Any chance you can grab sources and compile yourself?
np give me an hour Cool
althekiller Wrote:Hmm, seems the ebuild doesn't handle the debug flag properly. Any chance you can grab sources and compile yourself?

hmm... when you say it I think I used the xbmc bin which is just a bash script that runs /usr/share/xbmc/xbmc.bin -q

will try the xbmc.bin directly
here's the full output of gdb when I run /path/to /xbmc.bin directly and I see the debug info on the top

gdb bt

and why not yet another logfile
Ok this is what makes things intressting. ^^
I downloaded it again as a regular user run build.sh enabled debug in settings -> System
played an mp3 file and got "ALSA lib pcm_dmix.c:996: (snd_pcm_dmix_open) unable to open slave"

well it does'nt segfault anymore Confused

and I used the same rev as my system wide installation

The logfile

any clues someone...
You either have a bad ~/.asoundrc file or something has a lock on your output device.
tought so too...but movies play fine and using external app works fine....even the klick sound when walking trough the menus work fine...

Well, I'l poke around little more
I'd go with what Al said, pretty sure it's a bad .asoundrc file. See my post here
Pages: 1 2