Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114043 - arts-3.5.0 with alsa flag causes SEGV
Summary: arts-3.5.0 with alsa flag causes SEGV
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-30 09:09 UTC by Yuta SATOH (RETIRED)
Modified: 2006-09-15 07:39 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 Yuta SATOH (RETIRED) gentoo-dev 2005-11-30 09:09:47 UTC
When alsa is contained in the USE flag, arts-3.5.0 causes Segmentation fault.
Also arts-3.4.3 have this problem.

Workaround at present
choose oss in audio i/o method or disable alsa flag, when you emerge arts.
Comment 1 Yuta SATOH (RETIRED) gentoo-dev 2005-11-30 09:10:51 UTC
backtrace of artsd

# gdb artsd
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc64-unknown-linux-gnu"...Using host 
libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r -l 0
Starting program: /usr/kde/3.5/bin/artsd -l 0
[Thread debugging using libthread_db enabled]
[New Thread 4398046660928 (LWP 23212)]
artsd version is 1.5.0
gsl: using Unix98 pthreads directly for mutexes and conditions
[artsd: 23212] parallel startup detected: sleeping
unix_connect: can't connect to server (unix:/tmp/ksocket-
root/sakura.local.0x100.com-5a9a-438dd7b0)
[artsd: 23212] SoundServerStartup --> got lock
autodetecting driver:
 - toss: 4
 - null: -1
 - alsa: 15
 - oss: 10
... which means we'll default to alsa
ALSA driver: default

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 4398046660928 (LWP 23212)]
0x00000400007aa004 in snd_pcm_hw_param_set_near (pcm=0x100aeef0,
    params=0xfffffd09960, var=SNDRV_PCM_HW_PARAM_RATE, val=0xac44, dir=0x0)
    at pcm_params.c:835
835     pcm_params.c: No such file or directory.
        in pcm_params.c
Current language:  auto; currently c
(gdb) bt
#0  0x00000400007aa004 in snd_pcm_hw_param_set_near (pcm=0x100aeef0,
    params=0xfffffd09960, var=SNDRV_PCM_HW_PARAM_RATE, val=0xac44, dir=0x0)
    at pcm_params.c:835
#1  0x000004000079da18 in __snd_pcm_hw_params_set_rate_near (pcm=0x100aeef0,
    params=0xfffffd09960, val=0xac44, dir=0x0) at pcm.c:3902
#2  0x000004000035595c in Arts::AudioIOALSA::setPcmParams (this=0x10095b20,
    pcm=0x100aeef0) at audioioalsa9.cc:543
#3  0x0000040000354358 in Arts::AudioIOALSA::open (this=0x10095b20)
    at audioioalsa9.cc:191
#4  0x0000040000301da4 in Arts::AudioSubSystem::open (this=0x10084c40)
    at audiosubsys.cc:372
#5  0x0000040000301bec in Arts::AudioSubSystem::check (this=0x10084c40)
    at audiosubsys.cc:352
#6  0x000000001003fbe8 in main (argc=3, argv=0xfffffd0a658) at artsd.cc:304
(gdb) q
The program is running.  Exit anyway? (y or n) y
Comment 2 Yuta SATOH (RETIRED) gentoo-dev 2005-11-30 09:12:22 UTC
Additional info

# emerge info
Portage 2.0.51.22-r3 (default-linux/ppc/2005.1/ppc64/64bit-userland, gcc-3.4.4, 
glibc-2.3.4.20041102-r1, 2.6.14-gentoo-r3 ppc64)
=================================================================
System uname: 2.6.14-gentoo-r3 ppc64 PPC970, altivec supported
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc64"
AUTOCLEAN="yes"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O0 -pipe -g"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share
/config /usr/kde/3.3/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kd
e/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defau
lts/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O0 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/tmp/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc64 X alsa arts audiofile berkdb bitmap-fonts bzip2 curl debug expat fam 
fortran gif gpm gtk idn ipv6 java jpeg kde lcms mng mozilla ncurses nls opengl 
pam pcre perl png python qt readline ssl tcpd truetype truetype-fonts type1-
fonts udev unicode xml2 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

# cat /proc/asound/cards
0 [Snapper        ]: PMac Snapper - PowerMac Snapper
                     PowerMac Snapper (Dev 0) Sub-frame 0
Comment 3 Felix De Vliegher 2006-05-24 06:31:57 UTC
I can confirm the same behaviour on my ppc64 box. Any idea on how to fix this, other than using oss emulation? Im using the experimental snd-aoa alsa driver for my dual-core powermac G5.

Backtrace:
$ gdb artsd
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc64-unknown-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r -l 0
Starting program: /usr/kde/3.5/bin/artsd -l 0
[Thread debugging using libthread_db enabled]
[New Thread 4398046669440 (LWP 29397)]
artsd version is 1.5.2
gsl: using Unix98 pthreads directly for mutexes and conditions
[artsd: 29397] parallel startup detected: sleeping
unix_connect: can't connect to server (unix:/tmp/ksocket-felix/localhost-72d0-44745e7c)
[artsd: 29397] SoundServerStartup --> got lock
autodetecting driver:
 - oss: 10
 - alsa: 15
 - null: -1
 - esd: -1
 - toss: 4
... which means we'll default to alsa
ALSA driver: default

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 4398046669440 (LWP 29397)]
---Type <return> to continue, or q <return> to quit---
0x000004000064e06c in .snd_pcm_hw_param_set_near ()
   from /usr/lib/libasound.so.2
(gdb) bt
#0  0x000004000064e06c in .snd_pcm_hw_param_set_near ()
   from /usr/lib/libasound.so.2
#1  0x00000400006448c4 in .snd_pcm_hw_params_set_rate_near ()
   from /usr/lib/libasound.so.2
#2  0x0000040000274fd8 in ._ZN4Arts11AudioIOALSA12setPcmParamsEP8_snd_pcm ()
   from /usr/kde/3.5/lib64/libartsflow.so.1
#3  0x0000040000275710 in ._ZN4Arts11AudioIOALSA4openEv ()
   from /usr/kde/3.5/lib64/libartsflow.so.1
#4  0x000004000026b730 in ._ZN4Arts14AudioSubSystem4openEv ()
   from /usr/kde/3.5/lib64/libartsflow.so.1
#5  0x000004000026b888 in ._ZN4Arts14AudioSubSystem5checkEv ()
   from /usr/kde/3.5/lib64/libartsflow.so.1


$ emerge --info
Portage 2.1_rc2-r2 (default-linux/ppc/ppc64/2006.0/64bit-userland/970/pmac, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-rc4 ppc64)
=================================================================
System uname: 2.6.17-rc4 ppc64 PPC970MP, altivec supported
Gentoo Base System version 1.12.0
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.18.1
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="ppc64 ~ppc64"
AUTOCLEAN="yes"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -mtune=970 -mcpu=970 -mabi=altivec -pipe"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=970 -mcpu=970 -mabi=altivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ "
LINGUAS="nl"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc64 X alsa altivec apache2 apm arts bash-completion berkdb bitmap-fonts cdr cli cups dri dvd eds emboss encode esd ffmpeg foomaticdb fortran gdbm gif gpm gstreamer gtk2 ieee1394 imlib ipv6 isdnlog jpeg kde kdeenablefinal libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nsplugin ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xine xinerama xml xmms xorg xscreensaver xv xvid zlib elibc_glibc kernel_linux linguas_nl userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2006-09-15 07:39:24 UTC
this works for me. please reopen if problem still happens.
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2006-09-15 07:39:41 UTC
closing