Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142447 - media-sound/lastfmplayer-1.0.0.1_p2113 segmentation fault on am64
Summary: media-sound/lastfmplayer-1.0.0.1_p2113 segmentation fault on am64
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-01 10:58 UTC by Fabio Bonfante
Modified: 2007-01-21 19:53 UTC (History)
4 users (show)

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


Attachments
vanilla 2.6.18 kernel config (config.linus-git,40.66 KB, text/plain)
2006-10-03 23:45 UTC, Shaw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Bonfante 2006-08-01 10:58:39 UTC
tryng playng with my neighbour radio (4 example...) and lastfm crash

tail of strace output... can't find Trolltech.conf... why it search such file???
=========================================================================
stat("/opt/lastfm/services/libinput_http.so", {st_mode=S_IFREG|0644, st_size=62536, ...}) = 0
stat("/opt/lastfm/services/libservice_settings.so", {st_mode=S_IFREG|0644, st_size=101224, ...}) = 0
stat("/opt/lastfm/services/libservice_web.so", {st_mode=S_IFREG|0644, st_size=254920, ...}) = 0
stat("/opt/lastfm/services/libtranscode_mp3.so", {st_mode=S_IFREG|0644, st_size=88216, ...}) = 0
stat("/opt/lastfm/services/libplayback_rtaudio.so", {st_mode=S_IFREG|0644, st_size=123616, ...}) = 0
getdents(15, /* 0 entries */, 131072)   = 0
munmap(0x2aaaab2b6000, 135168)          = 0
close(15)                               = 0
getcwd("/opt/lastfm", 4096)             = 12
lstat("/opt", {st_mode=S_IFDIR|0755, st_size=928, ...}) = 0
lstat("/opt/lastfm", {st_mode=S_IFDIR|0755, st_size=336, ...}) = 0
lstat("/opt/lastfm/services", {st_mode=S_IFDIR|0755, st_size=240, ...}) = 0
lstat("/opt/lastfm/services/libservice_settings.so", {st_mode=S_IFREG|0644, st_size=101224, ...}) = 0
chdir("/opt/lastfm")                    = 0
stat("/opt/lastfm/services/libservice_settings.so", {st_mode=S_IFREG|0644, st_size=101224, ...}) = 0
stat("/opt/lastfm/services/libservice_settings.so", {st_mode=S_IFREG|0644, st_size=101224, ...}) = 0
stat("/home/bluefox/.config/Trolltech.conf", {st_mode=S_IFREG|0644, st_size=3200, ...}) = 0
open("/home/bluefox/.config/Trolltech.conf", O_RDONLY) = 15
fstat(15, {st_mode=S_IFREG|0644, st_size=3200, ...}) = 0
close(15)                               = 0
stat("/home/bluefox/.config/Trolltech.conf", {st_mode=S_IFREG|0644, st_size=3200, ...}) = 0
stat("/home/bluefox/.config/Trolltech.conf", {st_mode=S_IFREG|0644, st_size=3200, ...}) = 0
stat("/etc/qt4/Trolltech.conf", 0x7fffffc01e00) = -1 ENOENT (No such file or directory)
stat("/etc/qt4/Trolltech.conf", 0x8c37e0) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 27189 detached

============ emerge --info
Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r12 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r12 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.15
distcc[27263] (dcc_mkdir) ERROR: mkdir /var/tmp/portage/.distcc/state failed: No such file or directory [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -mmmx -msse -msse2 -m3dnow -pipe -fomit-frame-pointer -ftracer -maccumulate-outgoing-args"
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/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -mmmx -msse -msse2 -m3dnow -pipe -fomit-frame-pointer -ftracer -maccumulate-outgoing-args"
DISTDIR="/var/tmp/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O4"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/bmg-main /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac acpi alsa amuled apache2 asf avi bash-completion beagle berkdb bitmap-fonts browserplugin bzip2 cairo cddb cdparanoia cdr chm cli crypt cups curl dbus directfb dlloader dri dv dvd dvdr dvdread eds emboss encode esd ethereal exif expat fam fbcon fbsplash ffmpeg flac gcj gd gdbm gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal idn ieee1394 imagemagick imlib innodb ipod ipv6 isdnlog java jpeg jpeg2k kernel_linux lcms lirc lzo lzw lzw-tiff mad matroska mikmod mng mod mono mozsvg mp3 mpeg mysql mythtv ncurses nfs nls nptl nsplugin nvidia objc odbc ogg oggvorbis openal openexr opengl pam pcre pdf pdflib perl png postgres pppd python qt qt3 qt4 quicktime readline reflection samba scanner sdl seamonkey session skins sndfile speex spell spl sqlite sse3 ssl stream streamout svg tcpd tga theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd vorbis webservices wmf wxwindows xine xinerama xml2 xmms xorg xosd xpm xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev linguas_it userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

=============


i can configure the app, i don't have arts and i selected ALSA but i can't select any sound card... i don't know if that its the reason (i would expect an alert if the app can't find a sound card, not a segfault...)

Any ideas?
Tnx in advance
Comment 1 David Li 2006-08-01 14:25:38 UTC
The application is looking for /etc/qt4/Trolltech.conf because it's the qt4 configuration file. Qt uses that file to store the look and feel of the interface. Runing qtconfig, like suggested at the end of merge, will allow you to configure those settings.

The audio in the player is a little quirky, but it shouldn't cause a segmentation fault. They use a cross-platform library called RtAudio so they are able to use the same thing for Windows/Linux/OS X.

Anyways, if you are still having issues, could you please do a stack trace?
If you don't know how to, do something like:

export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/lastfm"
gdb /opt/lastfm/LastFM

Then in the gdb prompt, type "run"
Do whatever you do to cause the segmentation fault.
Then in the gdb prompt, type "bt full"
Then please paste the output into a file and attach it to this bug.
Comment 2 Fabio Bonfante 2006-08-01 16:34:48 UTC
hmmm... i updated the kernel to 2.6.17-r4 and now it works, finding the sound card too. I'm not shure why it hangs before but now the only noticeable difference is the sound card detection (now displayed in the combo box) although the sound modules was properly loaded with the previous kernel...

Maybe the only needs is a check on the sound-card detection before enable playing a radio...

now fixed for me...
Comment 3 David Li 2006-08-03 08:21:04 UTC
Okay, it seems like when ALSA modules are not loaded and you try to play a stream, it causes a segfault. Specifically, it happens when setting the stream callback in RTAudioPlayback::startPlayback().

I have informed upstream about this. In the meantime, it's a good idea to have alsa working when trying to play sound.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-22 09:48:58 UTC
upstream for the meantime, thanks. Please reopen when there is something I can actually fix.
Comment 5 Shaw 2006-10-03 23:44:18 UTC
Hmm, I have the same problem here with the same stack trace.  Alsa is compiled in the kernel (i.e., not as a module).  I have not build OSS, but have built the OSS APIs, and the old ALSA API  under the ALSA section of the kernel config.  (I'll attach the config just in case.  I'm running a vanilla 2.6.18 on an amd64 x2.

Also, soundcard=0 is in ~/.config/Last.fm/Client.ini

ALSA is configured as the audio device from KDE's control center->Sound & Multimedia -> Sound System -> Hardware.  Sound works fine elsewhere.
Comment 6 Shaw 2006-10-03 23:45:47 UTC
Created attachment 98738 [details]
vanilla 2.6.18 kernel config
Comment 7 Bill Skellenger 2007-01-14 23:23:02 UTC
Shaw, did you ever get this fixed?

Coming from Bug 149618; and I've also got the same backtrace:

(...snip...)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1222444864 (LWP 5997)]
0xb70c95bd in RtAudio::setStreamCallback ()
   from /opt/lastfm/services/debug/libplayback_rtaudio_debug.so

(gdb) bt full

#0  0xb70c95bd in RtAudio::setStreamCallback ()
   from /opt/lastfm/services/debug/libplayback_rtaudio_debug.so
No symbol table info available.
#1  0xb70c7e6e in RTAudioPlayback::startPlayback ()
   from /opt/lastfm/services/debug/libplayback_rtaudio_debug.so
No symbol table info available.
#2  0xb70d84a6 in RTAudioPlayback::qt_metacall ()
   from /opt/lastfm/services/debug/libplayback_rtaudio_debug.so
No symbol table info available.
#3  0xb75b5c6c in QMetaObject::activate () from /usr/lib/qt4/libQtCore_debug.so.4
No symbol table info available.
#4  0xb75b6088 in QMetaObject::activate () from /usr/lib/qt4/libQtCore_debug.so.4
No symbol table info available.

(...snip...)

Using 2.6.18 kernel as well, modules for my sound card are loaded but ALSA is part of the kernel.  Sound is working with other apps.

I don't use KDE.  I'm not seeing any sort of configuration screen in the client where one might change the sound card that's used.  Tools --> Options only has the following categories:  (Account, Radio, Scrobbling, Connection)
Comment 8 Bill Skellenger 2007-01-14 23:45:46 UTC
Lots of pissed off Linux users complaining about how terrible this client is:

Thread: What's up with the Linux client?

http://www.last.fm/forum/34905/_/180174


Comment 9 David Li 2007-01-15 04:07:16 UTC
Well, it looks like the latest SVN revision of the player's source is Mar. 26, 2006. It's labeled version 1.1.90 but it doesn't actually play any streams for me.

Also, it's still has one "extra qualification" GCC 4 bug in player.h. I say, push the last.fm guys to update their source with a version that works.
Comment 10 Shaw 2007-01-21 19:53:00 UTC
(In reply to comment #7)
> Shaw, did you ever get this fixed?

Sorry, I never messed with again.  I found I could also play the neighbor streams using amarok.