Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526620 - media-sound/cantata-1.3.4 - cantata: segmentation fault in MusicBrainz::readDisc() at ?
Summary: media-sound/cantata-1.3.4 - cantata: segmentation fault in MusicBrainz::readD...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-24 07:15 UTC by Ameretat.Reith
Modified: 2015-01-29 17:06 UTC (History)
0 users

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


Attachments
Threaded back trace for crash report (bt.txt,12.32 KB, text/plain)
2014-10-27 19:04 UTC, Ameretat.Reith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ameretat.Reith 2014-10-24 07:15:09 UTC
cantata-1.3.4 fails for me to load and throws segmentation fault.

When I run it inside gdb I see:

Starting program: /usr/bin/cantata
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe9d12700 (LWP 2140)]
[New Thread 0x7fffe9511700 (LWP 2141)]
[New Thread 0x7fffe8c66700 (LWP 2142)]
[New Thread 0x7fffdbfff700 (LWP 2144)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdbfff700 (LWP 2144)]
0x000000000067b807 in MusicBrainz::readDisc() ()

Reproducible: Always

Steps to Reproduce:
1. start cantata
2.
3.
Actual Results:  
won't start, crashes.

Expected Results:  
start and let me enjoy music.

# emerge --info cantata musicbrainz
Portage 2.2.12 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.13.5-ck x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.13.5-ck-x86_64-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-2.2
KiB Mem:     3842624 total,   1781944 free
KiB Swap:    4779808 total,   4400376 free
Timestamp of tree: Thu, 23 Oct 2014 22:15:02 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p30
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1
dev-lang/python:          2.6.8-r1, 2.7.8, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.9.6-r3, 1.10.2, 1.11.6, 1.12.6, 1.13.1, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.5.3-r2, 4.6.3, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo betagarden bitcoin mpd steam-overlay sunrise reith
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fno-tree-vectorize -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -fno-tree-vectorize -pipe"
DISTDIR="/usr/portage/distfiles/source"
EMERGE_DEFAULT_OPTS=" --buildpkg --buildpkg-exclude 'app-emulation/virtualbox-bin www-client/firefox-bin dev-python/pypy-bin app-office/libreoffice-bin app-office/openproj-bin dev-java/icedtea-bin app-text/stardict' --exclude warmux --exclude world-of-goo"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/distfiles/binpkg"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/betagarden /var/lib/layman/bitcoin /var/lib/layman/mpd /var/lib/layman/steam /var/lib/layman/sunrise /usr/local/portage/overlay"
SYNC="rsync://rsync3.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bidi bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm iconv ipv6 jpeg laptop lcms libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xml xv xvid zlib zsh-completion" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="event evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en fa" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 pypy" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel v4l modesetting" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-sound/cantata-1.3.4 was built with the following:
USE="cdda musicbrainz taglib udisks (-aqua) -cddb -dynamic -http-server -kde -lame -mtp -online-services (-qt5) -replaygain -streams" ABI_X86="64" LINGUAS="-cs -de -en_GB -es -hu -ko -pl -ru -zh_CN"


media-libs/musicbrainz-5.0.1 was built with the following:
USE="-examples -test" ABI_X86="64"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-24 08:47:20 UTC
(In reply to Ameretat.Reith from comment #0)
> cantata-1.3.4 fails for me to load and throws segmentation fault.
> 
> When I run it inside gdb I see:
> 
> Starting program: /usr/bin/cantata
> warning: Could not load shared library symbols for linux-vdso.so.1.
> Do you need "set solib-search-path" or "set sysroot"?
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> [New Thread 0x7fffe9d12700 (LWP 2140)]
> [New Thread 0x7fffe9511700 (LWP 2141)]
> [New Thread 0x7fffe8c66700 (LWP 2142)]
> [New Thread 0x7fffdbfff700 (LWP 2144)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fffdbfff700 (LWP 2144)]
> 0x000000000067b807 in MusicBrainz::readDisc() ()

You didn't finish it. You should run something like `thread apply all bt full' right then and post that output.
Comment 2 Ameretat.Reith 2014-10-27 19:04:23 UTC
Created attachment 387584 [details]
Threaded back trace for crash report
Comment 3 Ameretat.Reith 2015-01-29 17:06:31 UTC
I have a 3G modem and this problem occurs when modem is plugged in. It simulates a scsi
device which causes cantata crash when this device node exists.  I can keep cantata
running by disabling `Devices View' from Interface Setting.

Here is relevant sections from logs:

> Jan 25 21:35:11 localhost kernel: scsi 100:0:0:0: CD-ROM            HUAWEI
> Mass Storage     2.31 PQ: 0 ANSI: 2
> Jan 25 21:35:11 localhost kernel: sr1: scsi-1 drive
> Jan 25 21:35:11 localhost kernel: sr 100:0:0:0: Attached scsi CD-ROM sr1
> Jan 25 21:35:11 localhost kernel: sr 100:0:0:0: Attached scsi generic sg2 type
> 5
> Jan 25 21:35:11 localhost kernel: scsi 101:0:0:0: Direct-Access     HUAWEI
> SD Storage       2.31 PQ: 0 ANSI: 2
> Jan 25 21:35:11 localhost kernel: sd 101:0:0:0: Attached scsi generic sg3 type
> 0
> Jan 25 21:35:11 localhost kernel: sd 101:0:0:0: [sdb] Attached SCSI removable
> disk

At this point if I delete /dev/sr1 cantata report something about probing device [1] but It
starts without problem.

1: Advanced probing on /dev/sr1 failed while reading block size