Jack from portage has run on this machine for months. After conversations with another Jack user I decided to try Jack from CVS. I installed Jack from CVS in /usr/local as far as I could tell. Jack from CVS ran correctly. I then did a make uninstall on Jack from CVS and it seemed to uninstall correctly. I re-emerged Jack from portage. Now Jack segfaults: mark@dragonfly ~ $ jackd -d alsa -d hw jackd 0.99.0 Copyright 2001-2003 Paul Davis and others. jackd comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Segmentation fault mark@dragonfly ~ $ Reproducible: Always Steps to Reproduce: 1. emerge Jack and check that it runs 2. download Jack from CVS, build and install to /usr/local/bin 3. check that Jack from CVS runs 4. make uninstall Jack from CVS 5. emerge Jack from portage 6. run Jack. for me it fails Actual Results: As above Expected Results: Jack should run. Without Jack all Jack apps are dead for me. dragonfly ~ # emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686) ================================================================= System uname: 2.6.11-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.10 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.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-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.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://gentoo.osuosl.org/ http://gentoo.seren.com/gentoo ftp://gentoo.mirrors.tds.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 audiofile avi berkdb bitmap-fonts caps cdr crypt cups curl dvd dvdr dvdread eds emboss encode esd fam firebird flac fluidsynth foomaticdb fortran gd gdbm gif gimp gimpprint gnome gpm gstreamer gtk gtk2 i8x0 imagemagick imlib ipv6 jack jack-tmpfs java jpeg kde ladcca ladspa libg++ libwww lirc mad mikmod mjpeg mmx motif mozcalendar mozilla mp3 mpeg mysql mythtv ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba sdl sndfile spell sse sse2 ssl svga tcltk tcpd threads tiff transcode truetype truetype-fonts type1-fonts usb v4l v4l2 vorbis xine xml xml2 xmms xscreensaver xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY dragonfly ~ #
Not really much that we can do, considering the available information. See http://www.gentoo.org/doc/en/bugzilla-howto.xml and run some debugging. Anyway, this is not a Gentoo bug since you broke it yourself by installing and uninstalling unsupported version manually. Reopen when you have enough information available.
OK, fair enough. I knew you'd need more info so I'm trying. I've changed make.conf to add the gdb flag: dragonfly ~ # cat /etc/make.conf | grep gdb CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -ggdb3" dragonfly ~ # I added 'debug' to package.use: dragonfly ~ # cat /etc/portage/package.use | grep jack media-sound/jack-audio-connection-kit debug dragonfly ~ # and then re-emerged Jack like this: dragonfly ~ # FEATURES="nostrip" emerge jack-audio-connection-kit At this point I try gdb. I get more data then without the nostrib/-ggdb3 but not much more" mark@dragonfly ~ $ gdb --args jackd -d alsa -d hw 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 "i686-pc-linux-gnu"...(no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /usr/bin/jackd -d alsa -d hw (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1209563472 (LWP 7058)] jackd: wait for startup process exit failed jackd 0.99.0 Copyright 2001-2003 Paul Davis and others. jackd comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1209563472 (LWP 7058)] 0x0804edb5 in ?? () (gdb) bt #0 0x0804edb5 in ?? () #1 0x08066b18 in ?? () #2 0x0000a4d8 in ?? () #3 0x08066b18 in ?? () #4 0x00000000 in ?? () #5 0x080485a0 in ?? () #6 0x08059538 in ?? () #7 0x00000009 in ?? () #8 0x000001f4 in ?? () #9 0x000001f4 in ?? () #10 0x0805df08 in ?? () #11 0x0805df08 in ?? () #12 0x00000003 in ?? () #13 0xbffff648 in ?? () #14 0xb7ff61b0 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 #15 0x0804a7c3 in ?? () #16 0x00000000 in ?? () #17 0x0000000a in ?? () #18 0x00000001 in ?? () #19 0x00000000 in ?? () #20 0x00000000 in ?? () #21 0x00000000 in ?? () #22 0x000001f4 in ?? () #23 0x00000080 in ?? () #24 0x00001b92 in ?? () #25 0x0805b080 in ?? () #26 0x00000000 in ?? () #27 0x00000001 in ?? () #28 0x00000000 in ?? () #29 0x00000001 in ?? () #30 0xb7fc7e34 in ?? () from /usr/lib/libjack.so.0 #31 0xbffff43c in ?? () #32 0xbffff41c in ?? () #33 0x00000001 in ?? () #34 0x00000000 in ?? () #35 0x00000001 in ?? () #36 0x00000000 in ?? () #37 0x00caae1f in ?? () #38 0xbffff490 in ?? () #39 0xb7fd3000 in ?? () #40 0xb7fc8703 in ?? () from /usr/lib/libjack.so.0 #41 0x049b450d in ?? () #42 0x00000000 in ?? () #43 0xb7fc81d4 in ?? () from /usr/lib/libjack.so.0 #44 0xb7fd3000 in ?? () #45 0x0a34a4fd in ?? () ---Type <return> to continue, or q <return> to quit--- Can you tell what this means for my system? IT seems that possibly the things that's segfaulting is not actually Jack itself sicne I don't get much info? Note: If I reinstall Jack from CVS that version will work. It seems to me that this is a Gentoo bug of some type since the current ebuild doesn't guarantee correct operation, but certainly it's some corner case. How can I proceed to get better data?
Remove -fomit-frame-pointer from your C[XX]FLAGS and try again, there's really not much useful in the debug output now.
Thanks. Tried it. No real change: dragonfly ~ # FEATURES="nostrip" emerge -pv jack-audio-connection-kit These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-sound/jack-audio-connection-kit-0.99.0-r3 +alsa (-altivec) +caps +debug -doc +jack-tmpfs +oss -portaudio 0 kB Total size of downloads: 0 kB dragonfly ~ # Starting program: /usr/bin/jackd -d alsa -d hw (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1209563472 (LWP 21048)] jackd: wait for startup process exit failed jackd 0.99.0 Copyright 2001-2003 Paul Davis and others. jackd comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1209563472 (LWP 21048)] 0x0804ed6e in ?? () (gdb) bt #0 0x0804ed6e in ?? () #1 0x08066b18 in ?? () #2 0x0000a4d8 in ?? () #3 0x08066b18 in ?? () #4 0x00000000 in ?? () #5 0x080485a0 in ?? () #6 0x08059618 in ?? () #7 0x08066a98 in ?? () #8 0x000001f4 in ?? () #9 0x000001f4 in ?? () #10 0x0805df08 in ?? () #11 0x0805df08 in ?? () #12 0x00000003 in ?? () #13 0xbffff508 in ?? () #14 0xb7ff61b0 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 #15 0x0804a7a8 in ?? () #16 0x00000000 in ?? () #17 0x0000000a in ?? () #18 0x00000001 in ?? () #19 0x00000000 in ?? () #20 0x00000000 in ?? () #21 0x00000000 in ?? () #22 0x000001f4 in ?? () ---Type <return> to continue, or q <return> to quit--- mark@dragonfly ~ $ cat /etc/make.conf # These settings were set by the catalyst build script that automatically built this stage # Please consult /etc/make.conf.example for a more detailed example #CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CFLAGS="-O2 -march=pentium4 -pipe -ggdb3" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j2" USE="gnome kde gtk gtk2 -arts -apm ladspa nptl nptlonly ladcca audiofile gimp gimpprint ppds usb alsa cdr dvd dvdr dvdread mmx sse sse2 mozilla mozcalendar caps jack jack-tmpfs fluidsynth tcltk sndfile v4l v4l2 firebird mysql flac xscreensaver samba i8x0 mythtv apache2 lirc mjpeg threads xvid transcode" LIRC_OPTS="--with-driver=hauppauge" GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://gentoo.osuosl.org/ http://gentoo.seren.com/gentoo ftp://gentoo.mirrors.tds.net/gentoo" mark@dragonfly ~ $ mark@dragonfly ~ $ cat /etc/portage/package.use media-video/ffmpeg aac media-video/avidemux aac app-cdr/cdrtools unicode media-sound/jack-audio-connection-kit debug mark@dragonfly ~ $
Well, try strace then, but please don't post the output unless you find something actually useful, also it might be better to attach it rather then post inline, if there is something useful. Also check 'ldd /usr/bin/jackd' output if jackd is not linked to some stale libraries in /usr/local/lib and perhaps re-emerge all its dependencies.
Created attachment 63547 [details] strace on Jack crash
The strace output looks interesting. (attached) ldd /usr/bin/jackd doesn't say much to me but it doesn't look bad: dragonfly ~ # ldd /usr/bin/jackd linux-gate.so.1 => (0xffffe000) libjack.so.0 => /usr/lib/libjack.so.0 (0xb7fc7000) libcap.so.1 => /lib/libcap.so.1 (0xb7fc4000) libm.so.6 => /lib/libm.so.6 (0xb7fa2000) libpthread.so.0 => /lib/libpthread.so.0 (0xb7f90000) libdl.so.2 => /lib/libdl.so.2 (0xb7f8c000) libc.so.6 => /lib/libc.so.6 (0xb7e7a000) /lib/ld-linux.so.2 (0xb7feb000) dragonfly ~ #
Sound herd, any ideas?
(In reply to comment #7) > dragonfly ~ # ldd /usr/bin/jackd > linux-gate.so.1 => (0xffffe000) Where is that shared object? That doesn't seem right for jackd to be linked against that... can you attach the output of `ldd -v /usr/bin/jackd` please?
Ok, I just did: emerge -C jack-audio-connection-kit Followed by a `./configure && make && sudo make install on a fresh cvs co of jackd` Run some tests, it works. then `sudo make uninstall` then: emerge -v jack-audio-connection-kit Still works... i tried this on both ppc-macos and ppc-linux. Anyone else able to reproduce this? Perhaps you have a b0rked /etc/ld.so.{cache,conf} ?
Sorry for no reply. Somehow I didn't get notification of Kito's last two replies. This is now fixed here. Unfortunately I fixed it a month or more ago and no longer remember what I did.