[Bug 340864] New: jackd doesn't start
https://bugzilla.novell.com/show_bug.cgi?id=340864 Summary: jackd doesn't start Product: openSUSE 10.3 Version: Final Platform: PC OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Sound AssignedTo: tiwai@novell.com ReportedBy: juergen@jgrete.de QAContact: qa@suse.de Found By: --- I tried to start jackd manual with jackd --verbose --realtime -d alsa and got this: --------------------------------------------------------------- getting driver descriptor from /usr/lib/jack/jack_oss.so getting driver descriptor from /usr/lib/jack/jack_alsa.so getting driver descriptor from /usr/lib/jack/jack_dummy.so jackd 0.103.0 Copyright 2001-2005 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 JACK compiled with POSIX SHM support. server `default' registered /dev/shm/jack-0 already exists, but is not a directory! cannot create server sockets cannot create engine cleaning up shared memory cleaning up files unregistering server `default' --------------------------------------------------------------- then I tried to start jackd using jackctl and got a message box with: --------------------------------------------------------------- 05:00:52.138 Patchbay deactivated. 05:00:52.220 Statistics reset. JACK tmpdir identified as [/dev/shm] 05:00:52.389 ALSA connection graph change. 05:00:53.049 ALSA connection change. 05:01:05.206 Startup script... 05:01:05.207 artsshell -q terminate JACK tmpdir identified as [/dev/shm] sound server terminated 05:01:09.666 Startup script terminated successfully. 05:01:09.667 JACK is starting... 05:01:09.667 /usr/bin/jackd -R -dalsa -dhw:0 -r48000 -p1024 -n2 jackd 0.103.0 Copyright 2001-2005 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 JACK compiled with POSIX SHM support. 05:01:09.683 JACK was started with PID=8806. /dev/shm/jack-0 already exists, but is not a directory! cannot create server sockets cannot create engine 05:01:09.717 JACK was stopped successfully. 05:01:09.718 Post-shutdown script... 05:01:09.720 killall jackd jackd: no process killed 05:01:10.227 Post-shutdown script terminated with exit status=256. 05:01:11.699 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info. JACK tmpdir identified as [/dev/shm] --------------------------------------------------------------- Tried both after a fresh boot and changed the KDE audiosetting to "jackd" Regards J.Grete -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340864#c1
Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=340864#c2
Martijn van Beurden
https://bugzilla.novell.com/show_bug.cgi?id=340864#c3
--- Comment #3 from Arseniy Lartsev
https://bugzilla.novell.com/show_bug.cgi?id=340864#c4
--- Comment #4 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=340864#c5
Jürgen Grete
The version numbers are same for both. If you mean about the release number, then ignore it. It's nothing but nuts.
The /tmp as tmpdir is known to be a bad location unless you use tmpfs. And, it's very likely irrelevant with this problem.
Check /dev/shm directory. If you see /dev/shm/jack-0 even if you don't run jackd, remove that file once. Then try to start jackd again.
I tried to install the version from the supposed repo. It didn't help In /dev/shm there was only a sysconfig subdirectory before I started jackd. After he fails to start there was a binary file left in /dev/shm dgt:/usr/local/src # ll /dev/shm/ total 80 -rw-r--r-- 1 root root 70712 Nov 15 19:20 jack-shm-registry drwxr-xr-x 3 root root 300 Nov 15 16:38 sysconfig Any hints? Next step is to compile the source, maybe I'm lucky then... Regards Juergen -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340864#c6
Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=340864#c7
Arseniy Lartsev
And, it's very likely irrelevant with this problem.
Here is how I understand what in going on. jackd first creates named shared memory segment jack-0 (libjack/shm.c line 693) which creates file /dev/shm/jack-0, and then it tries to create directory /dev/shm/jack-0 (jackd/engine.c line 219 or 224, not sure which of them) and fails because of that file. Notebook:/home/user # strace jackd -d alsa 2>&1 | grep shm <skip> open("/dev/shm/jack-0", O_RDWR|O_CREAT|O_NOFOLLOW, 0666) = 4 <skip> stat64("/dev/shm/jack-0", {st_mode=S_IFREG|0644, st_size=83712, ...}) = 0 write(2, "/dev/shm/jack-0 already exists, "..., 57/dev/shm/jack-0 already exists, but is not a directory! unlink("/dev/shm/jack-0") = 0 There are two possible solutions. First one is specifying different --with-default-tmpdir option. Second one is --disable-posix-shm (I overlooked it first), with this option jack uses shmget instead of shm_open. jackd from http://download.opensuse.org/repositories/multimedia:/audio/openSUSE_10.3_Up... seems to be configured with --disable-posix-shm --with-default-tmpdir=/tmp. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340864#c8
--- Comment #8 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=340864
User tiwai@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=340864#c9
Takashi Iwai
participants (1)
-
bugzilla_noreply@novell.com