Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166952 - media-sound/zynaddsubfx-2.2.1-r2 segfaults after short time
Summary: media-sound/zynaddsubfx-2.2.1-r2 segfaults after short time
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 02:52 UTC by Smiffy
Modified: 2011-02-26 20:49 UTC (History)
2 users (show)

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


Attachments
Backtrace (backtrace.log,1.04 KB, text/plain)
2007-12-22 04:58 UTC, Smiffy
Details
Fixed SIGSEGV on Virtual Keyboard (64 bits arch) (ZynAddSubFX-2.2.1-VirKeyboard.patch,790 bytes, patch)
2008-05-12 11:26 UTC, Marc Finet
Details | Diff
Fix SIGSEGV on 64-bits arch. (ZynAddSubFX-2.2.1-VirKeyboard.patch,789 bytes, patch)
2008-05-13 08:41 UTC, Marc Finet
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Smiffy 2007-02-15 02:52:31 UTC
Running zynaddsubfx on Thinkpad Z61m, Intel Core 2 Duo with 1.5Gb RAM.

After a short time of doing anything, even hitting a few of the onscreen keys, the programme segfaults and dies.  Output, when run from command line:


ZynAddSubFX - Copyright (c) 2002-2005 Nasca Octavian Paul
Compiled: Feb 15 2007 13:06:39
This program is free software (GNU GPL v.2) and
    it comes with ABSOLUTELY NO WARRANTY.

Try 'zynaddsubfx --help' for command-line options.
Sound Buffer Size =     256 samples
Internal latency =      5.8 ms
ADsynth Oscil.Size =    512 samples
Internal SampleRate   = 44100
Jack Output SampleRate= 44100
Segmentation fault
 

emerge --info:

Portage 2.1.2-r9 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo x86_64)
=================================================================
System uname: 2.6.20-gentoo x86_64 Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
Gentoo Base System release 1.12.8
Timestamp of tree: Mon, 12 Feb 2007 15:59:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en en_GB en_AU"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://prospero/gentoo-portage"
USE="X alsa amd64 berkdb bitmap-fonts bzip2 cdparanoia cdrom cli cracklib crypt css cups dlloader dri dvd dvdread flac fortran gdbm gpm gtk2 hdaps iconv imagemagick isdnlog jack java jpeg kde ladspa libg++ libsamplerate midi mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre perl png ppds pppd python qt3 readline reflection session spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode utf8 v4l vorbis xml xml2 xorg xv xvid 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_AU" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-15 07:44:34 UTC
Post a backtrace and reopen then.

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Smiffy 2007-02-15 21:17:21 UTC
smith@brutus ~ $ gdb /usr/bin/zynaddsubfx
GNU gdb 6.6
Copyright (C) 2006 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 "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/zynaddsubfx
[Thread debugging using libthread_db enabled]
[New Thread 47597663481472 (LWP 3233)]

ZynAddSubFX - Copyright (c) 2002-2005 Nasca Octavian Paul
Compiled: Feb 16 2007 07:36:22
This program is free software (GNU GPL v.2) and
    it comes with ABSOLUTELY NO WARRANTY.

Try 'zynaddsubfx --help' for command-line options.
Sound Buffer Size =     256 samples
Internal latency =      5.8 ms
ADsynth Oscil.Size =    512 samples
Internal SampleRate   = 44100
Jack Output SampleRate= 44100
[New Thread 1082132800 (LWP 3236)]
[New Thread 1090525504 (LWP 3237)]
[New Thread 1098918208 (LWP 3238)]
[New Thread 1107310912 (LWP 3239)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1098918208 (LWP 3238)]
0x00002b4a303cf0a9 in pthread_mutex_lock () from /lib/libpthread.so.0
Comment 3 Smiffy 2007-02-15 21:22:12 UTC
Further observation: jackd also dies at point of failure.  (This was not observed when running outside of gdb.)
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-07-02 15:10:07 UTC
I can experience a similar issue, I'll try to dig in deeper.
Comment 5 Eldad Zack (RETIRED) gentoo-dev 2007-08-24 22:13:06 UTC
Smiffy, are you running jack in realtime priority? (i.e. -R)

Comment 6 Renato Caldas 2007-08-25 22:04:28 UTC
I can confirm this on version 2.2.1-r3, without jack support:

USE="alsa oss -jack"
Comment 7 Smiffy 2007-08-27 01:06:57 UTC
(In reply to comment #5)
> Smiffy, are you running jack in realtime priority? (i.e. -R)
> 

I haven't tried to use any audio for a while - I will get this set up again and test as soon as I have spare time.
Comment 8 Eldad Zack (RETIRED) gentoo-dev 2007-10-01 20:13:37 UTC
btw, where's the backtrace?

Diego, can you post a backtrace if you have the issue too?
Comment 9 Smiffy 2007-12-22 04:44:04 UTC
(In reply to comment #5)
> Smiffy, are you running jack in realtime priority? (i.e. -R)
> 

Finally got some time to "play" with my machine - problem occurs with jackd running with and without realtime.

I'll have to read that backtrace documentation again - I though that what I had posted in comment #2 _was_ the backtrace.
Comment 10 Smiffy 2007-12-22 04:58:31 UTC
Created attachment 139073 [details]
Backtrace

Programme built with these CFLAGS:
CFLAGS="-march=nocona -O2 -pipe -ggdb"
Comment 11 Marc Finet 2008-05-12 11:26:46 UTC
Created attachment 152929 [details, diff]
Fixed SIGSEGV on Virtual Keyboard (64 bits arch)
Comment 12 Smiffy 2008-05-13 06:08:25 UTC
Does the removal of that last patch mean that this wasn't fixed after all?  I'm confused...
Comment 13 Marc Finet 2008-05-13 08:41:06 UTC
Created attachment 153023 [details, diff]
Fix SIGSEGV on 64-bits arch.

Sorry for confusion I have very bad connection at home, and could not re-submit correct patch. The previous had a typo.
This is quite the same patch as as found here (http://sourceforge.net/mailarchive/forum.php?thread_name=8e4fc8270709071938g5eab384cjcfb61f00e954376c%40mail.gmail.com&forum_name=zynaddsubfx-user) but better ;D (as it does not even try to access 'un-wanted' memory.
Comment 14 Smiffy 2008-07-27 03:31:25 UTC
I have finally tested this patch.

If audio is routed directly to OSS/Alsa, it works fine.  However, if the output is changed to work with Jack, it still segfaults in the same way as before.
Comment 15 Alexis Ballier gentoo-dev 2011-02-26 20:49:20 UTC
should be fixed in 2.4.1