Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279344 - media-sound/alsaplayer-0.99.80-r1 segfault with libmikmod-3.2.0_beta2
Summary: media-sound/alsaplayer-0.99.80-r1 segfault with libmikmod-3.2.0_beta2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-27 17:35 UTC by Dominique Michel
Modified: 2010-11-09 19:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
backtrace with "thread apply all bt full" (backtrace.log,6.36 KB, text/plain)
2009-07-27 17:37 UTC, Dominique Michel
Details
emerge --info (emerge-info,11.45 KB, text/plain)
2009-07-27 17:49 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2009-07-27 17:35:44 UTC
media-libs/libmikmod-3.2.0_beta2  USE="alsa oss"
media-sound/alsaplayer-0.99.80-r1  USE="alsa audiofile doc esd flac gtk jack mad mikmod nas nls ogg opengl oss vorbis xosd id3tag"

gdb /usr/bin/alsaplayer
GNU gdb 6.8
...
(gdb) run
Starting program: /usr/bin/alsaplayer 
[Thread debugging using libthread_db enabled]
[New Thread 0x7f70c3a2d700 (LWP 23740)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f70c3a2d700 (LWP 23740)]
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007f70bf3ba4a9 in _mm_init (cmdline=0x7f70bf5da06f "")
    at ../playercode/mdriver.c:508
#2  0x00007f70bf3ba62e in MikMod_Init (cmdline=0x7f70bf5da06f "")
    at ../playercode/mdriver.c:561
#3  0x00007f70bf5d9f0b in mikmod_init () at mikmod_engine.c:53
#4  0x000000000040f8e9 in CorePlayer::RegisterPlugin (this=0x7f70bf5da06f, 
    the_plugin=0x7f70bf7db100) at CorePlayer.cpp:435
#5  0x0000000000411755 in CorePlayer::load_input_addons (this=0x1783aa0)
    at CorePlayer.cpp:196
#6  0x0000000000411aca in CorePlayer (this=0x1783aa0, 
    the_node=<value optimized out>) at CorePlayer.cpp:277
#7  0x00000000004138f4 in Playlist (this=0x17835c0, the_node=0x173d990)
    at Playlist.cpp:411
#8  0x000000000040e827 in main (argc=1, argv=0x7fffcba6d868) at Main.cpp:881
(gdb)

Reproducible: Always

Steps to Reproduce:
1. emerge libmikmod
2. emerge alsaplayer
3. alsaplayer

Actual Results:  
segfault error

Expected Results:  
successful run

With USE="-mikmod", alsaplayer is runing fine.

With libmikmod-3.1.11-r5 and USE="mikmod", alsaplayer is running fine.

I don't know if it is a bug into alsaplayer-0.99.80-r1 or into libmikmod-3.2.0_beta2
Comment 1 Dominique Michel 2009-07-27 17:37:28 UTC
Created attachment 199363 [details]
backtrace with "thread apply all bt full"
Comment 2 Dominique Michel 2009-07-27 17:49:19 UTC
Created attachment 199365 [details]
emerge --info
Comment 3 James Earl Spahlinger 2009-07-29 03:06:36 UTC
Thanks for reporting, is it possible for you to find out if this problem occurs with any earlier version of mikmod? For example try: media-libs/libmikmod-3.1.11-r4.

You can achieve this by adding <=media-libs/libmikmod-3.1.11-r4 to your package.unmask. 
Comment 4 Dominique Michel 2009-07-29 15:47:09 UTC
Of course. AP is working fine with libmikmod-3.1.11-r5 and 3.1.11-r4.

Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-07-29 16:09:41 UTC
Just FYI. The beta is same as Fedora is using as mikmod. This would mean alsaplayer is also unusable there.
Comment 6 Dominique Michel 2009-07-29 16:30:04 UTC
You are right, I found this: http://www.mail-archive.com/atrpms-devel@atrpms.net/msg00324.html

The solution one found was to install both libmikmod_2-3.2 and libmikmod-3.2.0.beta2. He get another problem with AP flac input plugin. I committed the fix for this flac issue into the SVN, see bug 271782 (I committed the other patches too.).

I will do a new release in the next couple of days. It will at least solve the flac issue, and some other as well.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2009-07-29 18:00:29 UTC
(In reply to comment #6)
> You are right, I found this:

I've tested all the apps in and half of the games of: http://tinderbox.dev.gentoo.org/misc/rindex/media-libs/libmikmod

And they all are fine. Don't know about the backtrace, but I think we will go for option a), remove mikmod support for alsaplayer until this is solved in it.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2009-07-29 18:03:15 UTC
+  29 Jul 2009; Samuli Suominen <ssuominen@gentoo.org>
+  alsaplayer-0.99.80-r1.ebuild:
+  Remove mikmod support wrt #279344, doesn't play nice with 3.2.0_beta.
Comment 9 Dominique Michel 2009-07-29 18:31:32 UTC
I just tested the solution from FE source package: http://atrpms.net/dist/f11/alsaplayer/alsaplayer-0.99.80-5.fc11.i586.rpm.html 

It work fine with both mikmod-3.1.11-r4 and 3.2.0_beta2. It will be into the next release too.

Thank you.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2010-11-09 13:31:10 UTC
reopen, the plug-in is once again enabled with 0.99.81.   thanks to upstream & fedora guys.
Comment 11 Dominique Michel 2010-11-09 19:18:57 UTC
I am sorry for the delay, but the real life was talking all of my time.

This release contain other fixes too, and also a big patch that remove almost all the compiler warnings with recent gcc. The details are into the ChangeLog as you certainly already know.

Also, the future for AP seam to be good, a new and motived developer just joined the AP list. So I have good hope than other work than just bugfixes will be made, and that is very exciting. More on that in the next release.