| Summary: | Jack crashes after installing and removing Jack from CVS | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Mark Knecht <markknecht> |
| Component: | Current packages | Assignee: | Gentoo Sound Team <sound> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | strace on Jack crash | ||
|
Description
Mark Knecht
2005-07-16 06:53:31 UTC
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. |