[Bug 262301] New: After running (unknown), festival fails with "Linux: can't open /dev/dsp"
https://bugzilla.novell.com/show_bug.cgi?id=262301 Summary: After running (unknown), festival fails with "Linux: can't open /dev/dsp" Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Sound AssignedTo: tiwai@novell.com ReportedBy: robin.listas@telefonica.net QAContact: qa@suse.de After running an unknown app, festival fails with this message: nimrodel:~ # echo "Hello" | /usr/bin/festival --tts Linux: can't open /dev/dsp I say "unknown because at first I thought it was amarok. Now I think it is Firefox - go on reading. However, sounds sent to the PCM interface (ie, DSP) work fine: nimrodel:~ # play /usr/share/sounds/au/crash.au nimrodel:~ # If I restart amarok or xine they play fine. And it doesn't show as busy: nimrodel:~ # lsof | grep dsp nimrodel:~ # however, an absurd command like this: nimrodel:~ # echo "Hello" > /dev/dsp -bash: /dev/dsp: Device or resource busy shows it is indeed busy; but by whom? I'm running as normal user under gnome, but you see I tried as root on an xterm. Restarting alsa solves the problem: nimrodel:~ # rcalsasound restart Shutting down sound driver done Starting sound driver: intel8x0 done nimrodel:~ # echo "Hello" | /usr/bin/festival --tts nimrodel:~ # (as a side note, restarting alsa crashed my firefox and I had to write this report twice). [...] Now, I think that note is important. I was reviewing this report before submitting, and noticed that amarok is not the culprit (or not always). It must be Firefox, because that would explain why it crashed when shutting down alsa: it must have been using sound in one of the pages I had opened, but I don't know which! It was silent. I will submit this and try again - if I don't submit and it crashes I loose the posted data. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=262301 ------- Comment #1 from robin.listas@telefonica.net 2007-04-07 06:42 MST ------- It indeed is Firefox the culprit. After viewing your video at <http://www.novell.com/linux/meetlinux/>, festival fails, till the page is closed. If not closed, festival continues to fail even if the video is not playing. If I restart alsa, festival works again: nimrodel:~ # echo "Hello" | /usr/bin/festival --tts Linux: can't open /dev/dsp nimrodel:~ # rcalsasound restart Shutting down sound driverERROR: Module snd_intel8x0 is in use ERROR: Module snd_ac97_codec is in use by snd_intel8x0 ERROR: Module snd_ac97_bus is in use by snd_ac97_codec ERROR: Module snd_pcm is in use by snd_intel8x0,snd_ac97_codec ERROR: Module snd_timer is in use by snd_pcm ERROR: Module snd is in use by snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer failed Starting sound driver: intel8x0 done nimrodel:~ # echo "Hello" | /usr/bin/festival --tts nimrodel:~ # echo "Hello" | /usr/bin/festival --tts nimrodel:~ # But firefox crashes: cer@nimrodel:~> firefox & [1] 11796 cer@nimrodel:~> ** (Gecko:11803): WARNING **: Owner of /tmp/orbit-cer2 is not the current user Flash Player: Warning: environment variable G_FILENAME_ENCODING is set and is not UTF-8 Flash Player: Warning: environment variable G_FILENAME_ENCODING is set and is not UTF-8 /usr/bin/firefox: line 160: 11803 Killed LD_PRELOAD=/usr/$LIB/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} $MOZ_PROGRAM $@ [1]+ Done firefox (note: the "Gecko:11803" warning above is Bug #246956) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=262301 wolfgang@rosenauer.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wolfgang@rosenauer.org ------- Comment #2 from wolfgang@rosenauer.org 2007-04-07 10:16 MST ------- Firefox is not using /dev/dsp directly. Firefox is using esd for sound output. What you might see here is the Flash plugin or another plugin which tries to access /dev/dsp directly. I don't know the internals of libaoss.so but I would expect that this shouldn't happen when libaoss.so is used because concurrent access to audio out is the target of using libaoss.so at all. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=262301 tiwai@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |robin.listas@telefonica.net ------- Comment #3 from tiwai@novell.com 2007-04-11 06:29 MST ------- Use aoss wrapper with festival. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=262301 robin.listas@telefonica.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|robin.listas@telefonica.net | ------- Comment #4 from robin.listas@telefonica.net 2007-04-11 10:54 MST ------- Re #2: I assume that something in firefox gets hold of /dev/dsp, probably flash plugin, doesn't shows in lsof output, and doesn't free it days after the video played - literally, I had you site opened in a firefox tab for days and festival failing all that time. Why and what is at fault, I have no idea (firefox, flash, festival, whatever...) Re #3: Doesn't work. See: cer@nimrodel:~> echo Hello | aoss /usr/bin/festival --tts Segmentation fault What now? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=262301 tiwai@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tiwai@novell.com AssignedTo|tiwai@novell.com |mskibbe@novell.com ------- Comment #5 from tiwai@novell.com 2007-04-12 04:14 MST ------- The segfault looks like a bug of festival. It happens with any LD_PRELOAD hack like esddsp or artsdsp, too. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=262301 mskibbe@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |tiwai@novell.com ------- Comment #6 from mskibbe@novell.com 2007-04-12 04:27 MST ------- can you provide more information why you think it's a festival bug? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=262301 tiwai@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|tiwai@novell.com | ------- Comment #7 from tiwai@novell.com 2007-04-12 05:58 MST ------- Because it's segfault. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1212577568 (LWP 26031)] 0xb7cd6fc7 in _IO_seekoff_unlocked () from /lib/libc.so.6 (gdb) where #0 0xb7cd6fc7 in _IO_seekoff_unlocked () from /lib/libc.so.6 #1 0xb7cdc7ab in fseek () from /lib/libc.so.6 #2 0x081968bf in EST_TokenStream::seek (this=0x64e0c, position=0) at EST_Token.cc:314 #3 0x080fb201 in load_grouped_diphone (unit=53) at us_diphone_index.cc:446 #4 0x081023b0 in get_diphone (d=@0x853af28) at us_diphone_index.cc:399 #5 0x081047bf in us_get_diphones (utt=@0x833c328) at us_diphone_index.cc:159 #6 0x080f9aba in FT_us_get_diphones (lutt=0xb6d78238) at UniSyn_diphone.cc:60 #7 0x0811619e in leval (x=0xb6ca27e8, env=0xb6da33e8) at slib.cc:1381 #8 0x0811992b in leval_progn (pform=0xbf8c82b0, penv=0xbf8c82b4) at slib_core.cc:81 #9 0x081162e5 in leval (x=0xb6da3358, env=0xb6da33e8) at slib.cc:1416 #10 0x0811992b in leval_progn (pform=0xbf8c8320, penv=0xbf8c8324) at slib_core.cc:81 #11 0x081162e5 in leval (x=0xb6ca6558, env=0xb6da1338) at slib.cc:1416 #12 0x0811992b in leval_progn (pform=0xbf8c8390, penv=0xbf8c8394) at slib_core.cc:81 #13 0x081162e5 in leval (x=0xb6ca5718, env=0xb6d79298) at slib.cc:1416 #14 0x081164fa in leval_args (l=0xb6c77ec8, env=0xb6d78368) at slib.cc:1307 #15 0x08116319 in leval (x=0xb6c77e98, env=0xb6d78368) at slib.cc:1425 #16 0x08119e0c in leval_setq (args=0xb6d782d8, env=0x0) at slib_core.cc:26 #17 0x081162ce in leval (x=0xb6d782e8, env=0x0) at slib.cc:1412 #18 0x080dfe18 in tts_raw_utt (utt=0xb6d78238) at text.cc:208 #19 0x080e1096 in tts_file_raw (filename=0xb6d76d38) at text.cc:173 #20 0x080e1435 in tts_file (filename=0xb6d76d38, mode=0xb6d1d478) at text.cc:124 #21 0x08116201 in leval (x=0xb6d1b218, env=0xb6d76dc8) at slib.cc:1388 #22 0x08059d0a in festival_eval_command (command=@0xbf8c879c) at festival.cc:182 #23 0x0805a0bb in festival_say_file (fname=@0x833de80) at festival.cc:235 #24 0x0805712c in main (argc=3, argv=0xbf8c8b34) at festival_main.cc:146 #25 0xb7c94e5c in __libc_start_main () from /lib/libc.so.6 #26 0x08056361 in _start () -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=262301 mskibbe@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX ------- Comment #8 from mskibbe@novell.com 2007-04-13 01:19 MST ------- sry i overread this :-) looks like festival do not support aoss wrapper. And if aoss is not used you get a good error message "Linux: can't open /dev/dsp". this is not a bug from festival. festival simple do not support this. And if festival can't get lock of /dev/dsp something else has the lock. imho it's not usefull that festival says a text while a video is playing. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=262301 ------- Comment #9 from wolfgang@rosenauer.org 2007-04-13 01:24 MST ------- hmm, FWIW. A segmentation fault is never just a "not supported" thing. It's a real bug in an application which should be fixed anyway. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=262301 ------- Comment #10 from mskibbe@novell.com 2007-04-13 01:46 MST ------- the segfault only appears if you do LD_PRELOAD things. in this example with aoss. -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com