Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248675 - media-sound/audacious-1.5.1-r1 hangs loading midi plugin and segfaults or crashes after Ctrl-C
Summary: media-sound/audacious-1.5.1-r1 hangs loading midi plugin and segfaults or cra...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-24 19:59 UTC by Dominik Kozaczko
Modified: 2009-04-17 12:15 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Kozaczko 2008-11-24 19:59:43 UTC
I tried to run freshly stabilized media-sound/audacious-1.5.1-r1
Running from console it gave this output:

[code]$ audacious
amidi-plug(amidi-plug.c:amidiplug_init:97): init, read configuration
amidi-plug(i_backend.c:i_backend_load:107): loading backend '/usr/lib64/audacious/Input/amidi-plug/ap-alsa.so'
amidi-plug(i_backend.c:i_backend_load:145): backend /usr/lib64/audacious/Input/amidi-plug/ap-alsa.so (name 'alsa') successfully loaded
[/code]
and hanged. Hitting Ctrl-C shortly after produced this output:

[code]^CAudacious has received SIGINT and is shutting down.
amidi-plug(i_backend.c:i_backend_unload:164): unloading backend 'alsa'
amidi-plug(i_backend.c:i_backend_unload:167): backend 'alsa' unloaded
Segmentation fault[/code]

I tried to run it again but this time I hit Ctrl-C after some time. This is the output:

[code]$ audacious
amidi-plug(amidi-plug.c:amidiplug_init:97): init, read configuration
amidi-plug(i_backend.c:i_backend_load:107): loading backend '/usr/lib64/audacious/Input/amidi-plug/ap-alsa.so'
amidi-plug(i_backend.c:i_backend_load:145): backend /usr/lib64/audacious/Input/amidi-plug/ap-alsa.so (name 'alsa') successfully loaded
^CAudacious has received SIGINT and is shutting down.
amidi-plug(i_backend.c:i_backend_unload:164): unloading backend 'alsa'
amidi-plug(i_backend.c:i_backend_unload:167): backend 'alsa' unloaded
*** glibc detected *** audacious: double free or corruption (fasttop): 0x0000000000aedaa0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f5355aa4e0d]
/lib/libc.so.6(cfree+0x76)[0x7f5355aa6b06]
audacious[0x421f77]
audacious[0x422ba4]
audacious[0x419c13]
audacious[0x424292]
/usr/lib/libglib-2.0.so.0[0x7f5358f803d4]
/lib/libpthread.so.0[0x7f5355d82097]
/lib/libc.so.6(clone+0x6d)[0x7f5355af9bcd]
======= Memory map: ========
00400000-004e0000 r-xp 00000000 08:01 1584024                            /usr/bin/audacious
006df000-006e0000 r--p 000df000 08:01 1584024                            /usr/bin/audacious
006e0000-006ea000 rw-p 000e0000 08:01 1584024                            /usr/bin/audacious
006ea000-00de9000 rw-p 006ea000 00:00 0                                  [heap]
400f4000-400f5000 ---p 400f4000 00:00 0 
400f5000-408f5000 rw-p 400f5000 00:00 0 
40a0e000-40a0f000 ---p 40a0e000 00:00 0 
40a0f000-4120f000 rw-p 40a0f000 00:00 0 
4124a000-4124b000 ---p 4124a000 00:00 0 
4124b000-41a4b000 rw-p 4124b000 00:00 0 
7f5340000000-7f5340021000 rw-p 7f5340000000 00:00 0 
7f5340021000-7f5344000000 ---p 7f5340021000 00:00 0 
7f5345866000-7f5345867000 rw-p 7f5345866000 00:00 0 
7f5345867000-7f534588a000 r--p 00000000 08:01 226558                     /usr/share/fonts/corefonts/verdana.ttf
7f53458d8000-7f53458fa000 r--p 00000000 08:01 220643                     /usr/share/fonts/corefonts/verdanab.ttf
7f53458fa000-7f53458fc000 r-xp 00000000 08:01 228231                     /usr/lib64/pango/1.6.0/modules/pango-basic-fc.so
7f53458fc000-7f5345afb000 ---p 00002000 08:01 228231                     /usr/lib64/pango/1.6.0/modules/pango-basic-fc.so
7f5345afb000-7f5345afc000 r--p 00001000 08:01 228231                     /usr/lib64/pango/1.6.0/modules/pango-basic-fc.so
7f5345afc000-7f5345afd000 rw-p 00002000 08:01 228231                     /usr/lib64/pango/1.6.0/modules/pango-basic-fc.so
7f5345afd000-7f5345b05000 r--s 00000000 08:01 257595                     /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-x86-64.cache-2
7f5345b05000-7f5345b08000 r--s 00000000 08:01 1190014                    /var/cache/fontconfig/76fa4b957c916922374347f144bde9da-x86-64.cache-2
7f5345b08000-7f5345b1a000 r--s 00000000 08:01 1190013                    /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86-64.cache-2
7f5345b1a000-7f5345b2c000 r--s 00000000 08:01 213282                     /var/cache/fontconfig/221fd1126b80b777db535aea535e87ba-x86-64.cache-2
7f5345b2c000-7f5345b45000 r--s 00000000 08:01 1190010                    /var/cache/fontconfig/4b5cf4386f1cde02a336ba961b4ac82d-x86-64.cache-2
7f5345b45000-7f5345b72000 r--s 00000000 08:01 1190008                    /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86-64.cache-2
7f5345b72000-7f5345b9f000 r--s 00000000 08:01 1189975                    /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86-64.cache-2
7f5345b9f000-7f5345bff000 rw-s 00000000 00:07 4718617                    /SYSV00000000 (deleted)
7f5345bff000-7f5345c05000 r-xp 00000000 08:01 1147829                    /usr/lib64/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f5345c05000-7f5345e04000 ---p 00006000 08:01 1147829                    /usr/lib64/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f5345e04000-7f5345e05000 r--p 00005000 08:01 1147829                    /usr/lib64/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f5345e05000-7f5345e06000 rw-p 00006000 08:01 1147829                    /usr/lib64/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f5345e06000-7f5345e2c000 rw-p 7f5345e06000 00:00 0 
7f5346534000-7f5346538000 r-xp 00000000 08:01 1587670                    /usr/lib64/audacious/Transport/lastfm.so
7f5346538000-7f5346737000 ---p 00004000 08:01 1587670                    /usr/lib64/audacious/Transport/lastfm.so
7f5346737000-7f5346738000 r--p 00003000 08:01 1587670                    /usr/lib64/audacious/Transport/lastfm.so
7f5346738000-7f5346739000 rw-p 00004000 08:01 1587670                    /usr/lib64/audacious/Transport/lastfm.so
7f5346739000-7f534673b000 r-xp 00000000 08:01 1587673                    /usr/lib64/audacious/Transport/stdio.so
7f534673b000-7f534693a000 ---p 00002000 08:01 1587673                    /usr/lib64/audacious/Transport/stdio.so
7f534693a000-7f534693b000 r--p 00001000 08:01 1587673                    /usr/lib64/audacious/Transport/stdio.so
7f534693b000-7f534693c000 rw-p 00002000 08:01 1587673                    /usr/lib64/audacious/Transport/stdio.so
7f534693c000-7f5346944000 r-xp 00000000 08:01 1197279                    /usr/lib64/libmms.so.0.0.2
7f5346944000-7f5346b44000 ---p 00008000 08:01 1197279                    /usr/lib64/libmms.so.0.0.2
7f5346b44000-7f5346b45000 r--p 00008000 08:01 1197279                    /usr/lib64/libmms.so.0.0.2
7f5346b45000-7f5346b46000 rw-p 00009000 08:01 1197279                    /usr/lib64/libmms.so.0.0.2
7f5346b46000-7f5346b48000 r-xp 00000000 08:01 1587672                    /usr/lib64/audacious/Transport/mms.so
7f5346b48000-7f5346d47000 ---p 00002000 08:01 1587672                    /usr/lib64/audacious/Transport/mms.so
7f5346d47000-7f5346d48000 r--p 00001000 08:01 1587672                    /usr/lib64/audacious/Transport/mms.so
7f5346d48000-7f5346d49000 rw-p 00002000 08:01 1587672                    /usr/lib64/audacious/Transport/mms.so
7f5346d49000-7f5346d6c000 r-xp 00000000 08:01 580253                     /usr/lib64/libneon.so.27.1.3
7f5346d6c000-7f5346f6c000 ---p 00023000 08:01 580253                     /usr/lib64/libneon.so.27.1.3
7f5346f6c000-7f5346f6d000 r--p 00023000 08:01 580253                     /usr/lib64/libneon.so.27.1.3
7f5346f6d000-7f5346f6e000 rw-p 00024000 08:01 580253                     /usr/lib64/libneon.so.27.1.3
7f5346f6e000-7f5346f74000 r-xp 00000000 08:01 1587528                    /usr/lib64/audacious/Transport/neon.so
7f5346f74000-7f5347173000 ---p 00006000 08:01 1587528                    /usr/lib64/audacious/Transport/neon.so
7f5347173000-7f5347174000 r--p 00005000 08:01 1587528                    /usr/lib64/audacious/Transport/neon.so
7f5347174000-7f5347175000 rw-p 00006000 08:01 1587528                    /usr/lib64/audacious/Transport/neon.so
7f5347175000-7f5347177000 r-xp 00000000 08:01 1587666                    /usr/lib64/audacious/Container/pls.so
7f5347177000-7f5347376000 ---p 00002000 08:01 1587666                    /usr/lib64/audacious/Container/pls.so
7f5347376000-7f5347377000 r--p 00001000 08:01 1587666                    /usr/lib64/audacious/Container/pls.so
7f5347377000-7f5347378000 rw-p 00002000 08:01 1587666                    /usr/lib64/audacious/Container/pls.so
7f5347378000-7f534737a000 r-xp 00000000 08:01 1587668                    /usr/lib64/audacious/Container/m3u.so
7f534737a000-7f5347579000 ---p 00002000 08:01 1587668                    /usr/lib64/audacious/Container/m3u.so
7f5347579000-7f534757a000 r--p 00001000 08:01 1587668                    /usr/lib64/audacious/Container/m3u.so
7f534757a000-7f534757b000 rw-p 00002000 08:01 1587668                    /usr/lib64/audacious/Container/m3u.so
7f534757b000-7f534757e000 r-xp 00000000 08:01 1587704                    /usr/lib64/audacious/Container/xspf.so
7f534757e000-7f534777d000 ---p 00003000 08:01 1587704                    /usr/lib64/audacious/Container/xspf.so
7f534777d000-7f534777e000 r--p 00002000 08:01 1587704                    /usr/lib64/audacious/Container/xspf.so
7f534777e000-7f534777f000 rw-p 00003000 08:01 1587704                    /usr/lib64/audacious/Container/xspf.so
7f534777f000-7f5347783000 r-xp 00000000 08:01 1587643                    /usr/lib64/audacious/Visualization/blur_scope.so
7f5347783000-7f5347983000 ---p 00004000 08:01 1587643                    /usr/lib64/audacious/Visualization/blur_scope.so
7f5347983000-7f5347984000 r--p 00004000 08:01 1587643                    /usr/lib64/audacious/Visualization/blur_scope.so
7f5347984000-7f5347985000 rw-p 00005000 08:01 1587643                    /usr/lib64/audacious/Visualization/blur_scope.so
7f5347985000-7f534798d000 rw-p 7f5347985000 00:00 0 
7f534798d000-7f53479e9000 r-xp 00000000 08:01 1045275                    /usr/lib64/libSDL-1.2.so.0.11.2
7f53479e9000-7f5347be9000 ---p 0005c000 08:01 1045275                    /usr/lib64/libSDL-1.2.so.0.11.2
7f5347be9000-7f5347bea000 r--p 0005c000 08:01 1045275                    /usr/lib64/libSDL-1.2.so.0.11.2
7f5347bea000-7f5347bec000 rw-p 0005d000 08:01 1045275                    /usr/lib64/libSDL-1.2.so.0.11.2
7f5347bec000-7f5347bf7000 rw-p 7f5347bec000 00:00 0 
7f5347bf7000-7f5347d31000 r-xp 00000000 08:01 1475Terminated[/code]
(I translated Polish errors back to English)

After trying to repoduce it the third time, I only got this far:

[code]$ audacious
amidi-plug(amidi-plug.c:amidiplug_init:97): init, read configuration
amidi-plug(i_backend.c:i_backend_load:107): loading backend '/usr/lib64/audacious/Input/amidi-plug/ap-alsa.so'
amidi-plug(i_backend.c:i_backend_load:145): backend /usr/lib64/audacious/Input/amidi-plug/ap-alsa.so (name 'alsa') successfully loaded
^CAudacious has received SIGINT and is shutting down.
amidi-plug(i_backend.c:i_backend_unload:164): unloading backend 'alsa'
amidi-plug(i_backend.c:i_backend_unload:167): backend 'alsa' unloaded
*** glibc detected *** audacious: double free or corruption (fasttop): 0x0000000000aeefa0 ***
[/code]
and the dumb thing still hangs.

I have media-sound/timidity++-2.13.2-r7 installed.

Reproducible: Always

Steps to Reproduce:
1. Run audacity (in console to see the output)
2. Hit Ctrl-C

Actual Results:  
Does not work and crashes badly.

Expected Results:  
Should work like 1.4.x or even better

# emerge --info
WARNING: One or more repositories have missing repo_name entries:

	/usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Portage 2.2_rc16 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.7-r2, 2.6.27-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r2-x86_64-AMD_Phenom-tm-_9650_Quad-Core_Processor-with-glibc2.2.5
Timestamp of tree: Mon, 24 Nov 2008 19:05:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi alsa amd64 berkdb bzip2 cli cracklib crypt cups dbus dri flac fortran gdbm gif gpm gtk hal iconv ipv6 isdnlog java jpeg jpeg2k midi mmx mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python readline reflection session smp spl sse sse2 sse3 ssl startup-notification sysfs tcpd threads unicode vorbis xinerama xorg xprint zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa mach64"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2008-12-05 11:13:26 UTC
Interesting. So your soundcard claims to have MIDI devices, but flails around wildly if we try and use them. CFLAGS & LDFLAGS make sense, so we're probably looking at a driver/hardware quirk here.
What soundcard is in use please?
Comment 2 Dominik Kozaczko 2008-12-05 11:35:55 UTC
lspci -v 

00:14.2 Audio device: ATI Technologies Inc SB600 Azalia
	Subsystem: Giga-byte Technology Device a002
	Flags: bus master, slow devsel, latency 32, IRQ 16
	Memory at fe024000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
	Kernel driver in use: HDA Intel
	Kernel modules: snd-hda-intel
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2009-04-17 12:15:20 UTC
I believe this is in fact a playlist thread hang that has been fixed in Audacious 2.0; an alpha1 developer preview is now in portage. You'll have to unmask it to test.