From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: play-sound-file & esd Date: Tue, 25 Apr 2006 16:11:32 -0400 Message-ID: References: Reply-To: sds@podval.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1145995985 30303 80.91.229.2 (25 Apr 2006 20:13:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 20:13:05 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 25 22:13:03 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYTu8-0006He-Mo for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 22:13:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYTu7-0007Sl-5B for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 16:12:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYTsp-00064y-Q3 for emacs-devel@gnu.org; Tue, 25 Apr 2006 16:11:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYTsn-00062O-SJ for emacs-devel@gnu.org; Tue, 25 Apr 2006 16:11:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYTsn-00061n-Fn for emacs-devel@gnu.org; Tue, 25 Apr 2006 16:11:37 -0400 Original-Received: from [204.127.192.83] (helo=rwcrmhc13.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYTvJ-0006UV-KL for emacs-devel@gnu.org; Tue, 25 Apr 2006 16:14:14 -0400 Original-Received: from smtp.podval.org (k39.podval.org[24.60.134.201]) by comcast.net (rwcrmhc13) with ESMTP id <20060425201134m13000lktie>; Tue, 25 Apr 2006 20:11:34 +0000 Original-Received: from quant8.janestcapital.quant (unknown [209.213.205.130]) by smtp.podval.org (Postfix) with ESMTP id 058BA3A2FD8; Tue, 25 Apr 2006 16:11:32 -0400 (EDT) Original-To: emacs-devel@gnu.org Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. In-Reply-To: (Sam Steingold's message of "Tue, 25 Apr 2006 15:43:57 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53412 Archived-At: > * Sam Steingold [2006-04-25 15:43:57 -0400]: > > GNU Emacs 22.0.50.22 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) > of 2006-04-25 on quant8 > > when esd is running, play-sound-file fails: > > Debugger entered--Lisp error: (error "/dev/dsp: Device or resource busy") > play-sound-internal((sound :file "/usr/share/sounds/error.wav")) > play-sound((sound :file "/usr/share/sounds/error.wav")) > play-sound-file("/usr/share/sounds/error.wav") > eval((play-sound-file "/usr/share/sounds/error.wav")) > eval-last-sexp-1(nil) > eval-last-sexp(nil) > call-interactively(eval-last-sexp) > > is there a workaround? C-] runs the command abort-recursive-edit ==> Program received signal SIGSEGV, Segmentation fault. 0x00000020 in ?? () (gdb) where #0 0x00000020 in ?? () #1 0x081869bb in sound_cleanup (arg=137529545) at sound.c:458 #2 0x0814d14d in unbind_to (count=32, value=137529545) at eval.c:3258 #3 0x0814d769 in unwind_to_catch (catch=0xbfd97dfc, value=Variable "value" is n ot available. ) at eval.c:1257 #4 0x0814f4c3 in Fsignal (error_symbol=137574209, data=137529545) at eval.c:1690 #5 0x080f379b in recursive_edit_1 () at keyboard.c:1002 #6 0x080f3827 in Frecursive_edit () at keyboard.c:1061 #7 0x0814f0a3 in Ffuncall (nargs=1, args=0xbfd96d60) at eval.c:2899 #8 0x08179d4f in Fbyte_code (bytestr=180328899, vector=179581212, maxdepth=32) at bytecode.c:694 #9 0x0814e641 in Feval (form=176921173) at eval.c:2248 #10 0x0814ea2f in Fprogn (args=175009413) at eval.c:433 #11 0x0808d77e in Fsave_window_excursion (args=175009413) at window.c:6418 #12 0x08178fd6 in Fbyte_code (bytestr=180329107, vector=180370236, maxdepth=224) at bytecode.c:855 #13 0x0814ec08 in funcall_lambda (fun=177132300, nargs=2, arg_vector=0xbfd97014) at eval.c:3089 #14 0x0814f007 in Ffuncall (nargs=3, args=0xbfd97010) at eval.c:2957 #15 0x0815076a in Fapply (nargs=2, args=0xbfd97060) at eval.c:2394 #16 0x08150874 in apply1 (fn=137756433, arg=190868541) at eval.c:2658 #17 0x0814df83 in call_debugger (arg=190868541) at eval.c:290 #18 0x0814e0eb in find_handler_clause (handlers=137574185, conditions=Variable " conditions" is not available. ) ---Type to continue, or q to quit--- at eval.c:1838 #19 0x0814f4eb in Fsignal (error_symbol=137574185, data=190868565) at eval.c:1665 #20 0x0814fa87 in error (m=0x81a769f "%s: %s", a1=0x81ae2b7 "/dev/dsp", a2=0x218338 "Device or resource busy", a3=0x0) at eval.c:1922 #21 0x08186a88 in sound_perror (msg=0x81ae2b7 "/dev/dsp") at sound.c:327 #22 0x08186e0d in Fplay_sound_internal (sound=190868597) at sound.c:1066 #23 0x0814f0b3 in Ffuncall (nargs=2, args=0xbfd975a0) at eval.c:2902 #24 0x08179d4f in Fbyte_code (bytestr=136119955, vector=136119988, maxdepth=16) at bytecode.c:694 #25 0x0814ec08 in funcall_lambda (fun=136119916, nargs=1, arg_vector=0xbfd976c4) at eval.c:3089 #26 0x0814f007 in Ffuncall (nargs=2, args=0xbfd976c0) at eval.c:2957 #27 0x08179d4f in Fbyte_code (bytestr=136564243, vector=136564300, maxdepth=32) at bytecode.c:694 #28 0x0814ec08 in funcall_lambda (fun=136564180, nargs=1, arg_vector=0xbfd97780) at eval.c:3089 #29 0x0814edce in apply_lambda (fun=136564180, args=190868621, eval_flag=1) at eval.c:3011 #30 0x0814e50b in Feval (form=190868629) at eval.c:2300 #31 0x0814f0b3 in Ffuncall (nargs=2, args=0xbfd978b0) at eval.c:2902 #32 0x08179d4f in Fbyte_code (bytestr=137025875, vector=137026052, maxdepth=64) at bytecode.c:694 ---Type to continue, or q to quit--- #33 0x0814ec08 in funcall_lambda (fun=137025836, nargs=1, arg_vector=0xbfd979e4) at eval.c:3089 #34 0x0814f007 in Ffuncall (nargs=2, args=0xbfd979e0) at eval.c:2957 #35 0x08179d4f in Fbyte_code (bytestr=137026707, vector=137026764, maxdepth=32) at bytecode.c:694 #36 0x0814ec08 in funcall_lambda (fun=137026668, nargs=1, arg_vector=0xbfd97b74) at eval.c:3089 #37 0x0814f007 in Ffuncall (nargs=2, args=0xbfd97b70) at eval.c:2957 #38 0x0814c42a in Fcall_interactively (function=137986537, record_flag=137529545, keys=137570044) at callint.c:884 #39 0x080edcb3 in Fcommand_execute (cmd=137986537, record_flag=137529545, keys=137529545, special=137529545) at keyboard.c:9760 #40 0x080f8f4b in command_loop_1 () at keyboard.c:1791 #41 0x0814dc02 in internal_condition_case (bfun=0x80f8bd0 , handlers=137574185, hfun=0x80f39c0 ) at eval.c:1474 #42 0x080f2c63 in command_loop_2 () at keyboard.c:1328 #43 0x0814dcba in internal_catch (tag=137570417, func=0x80f2c40 , arg=137529545) at eval.c:1212 #44 0x080f367c in command_loop () at keyboard.c:1307 #45 0x080f372a in recursive_edit_1 () at keyboard.c:1000 #46 0x080f3827 in Frecursive_edit () at keyboard.c:1061 #47 0x080e9e95 in main (argc=1, argv=0xbfd98464) at emacs.c:1789 (gdb) up #1 0x081869bb in sound_cleanup (arg=137529545) at sound.c:458 458 current_sound_device->close (current_sound_device); (gdb) list 453 Lisp_Object arg; 454 { 455 if (current_sound_device) 456 { 457 if (current_sound_device->close) 458 current_sound_device->close (current_sound_device); 459 if (current_sound->fd > 0) 460 emacs_close (current_sound->fd); 461 } 462 (gdb) p current_sound_device $1 = (struct sound_device *) 0xbfd95720 (gdb) p *current_sound_device $2 = {file = 0x136002f
, fd = -1076274512, format = -1076275240, volume = 2463836, sample_size = 159696204, sample_rate = -1076274464, bps = 8, channels = 2298200, open = 0x164720 <_int_free+14>, close = 0x20, configure = 0x231130 , choose_format = 0xb71d770, write = 0xb85818, data = 0xbfd95ae0} (gdb) up #2 0x0814d14d in unbind_to (count=32, value=137529545) at eval.c:3258 3258 (*this_binding.func) (this_binding.old_value); (gdb) p this_binding No symbol "this_binding" in current context. (gdb) list 3253 3254 struct specbinding this_binding; 3255 this_binding = *--specpdl_ptr; 3256 3257 if (this_binding.func != 0) 3258 (*this_binding.func) (this_binding.old_value); 3259 /* If the symbol is a list, it is really (SYMBOL WHERE 3260 . CURRENT-BUFFER) where WHERE is either nil, a buffer, or a 3261 frame. If WHERE is a buffer or frame, this indicates we 3262 bound a variable that had a buffer-local or frame-local (gdb) p specpdl_ptr $3 = (struct specbinding *) 0x9a04f80 (gdb) p *specpdl_ptr $4 = {symbol = 137529545, old_value = 137529545, func = 0x81869a0 , unused = 0} (gdb) xsymbol specpdl_ptr->symbol Attempt to take address of value not located in memory. (gdb) c Continuing. Fatal error (11) Program received signal SIGSEGV, Segmentation fault. 0x00471402 in __kernel_vsyscall () (gdb) where #0 0x00471402 in __kernel_vsyscall () #1 0x00129546 in kill () from /lib/libc.so.6 #2 0x080eaaab in fatal_error_signal (sig=11) at emacs.c:430 #3 #4 0x00000020 in ?? () #5 0x081869bb in sound_cleanup (arg=137529545) at sound.c:458 #6 0x0814d14d in unbind_to (count=32, value=137529545) at eval.c:3258 #7 0x0814d769 in unwind_to_catch (catch=0xbfd97dfc, value=Variable "value" is not available. ) at eval.c:1257 #8 0x0814f4c3 in Fsignal (error_symbol=137574209, data=137529545) at eval.c:1690 #9 0x080f379b in recursive_edit_1 () at keyboard.c:1002 #10 0x080f3827 in Frecursive_edit () at keyboard.c:1061 #11 0x0814f0a3 in Ffuncall (nargs=1, args=0xbfd96d60) at eval.c:2899 #12 0x08179d4f in Fbyte_code (bytestr=180328899, vector=179581212, maxdepth=32) at bytecode.c:694 #13 0x0814e641 in Feval (form=176921173) at eval.c:2248 #14 0x0814ea2f in Fprogn (args=175009413) at eval.c:433 #15 0x0808d77e in Fsave_window_excursion (args=175009413) at window.c:6418 #16 0x08178fd6 in Fbyte_code (bytestr=180329107, vector=180370236, maxdepth=224) at bytecode.c:855 #17 0x0814ec08 in funcall_lambda (fun=177132300, nargs=2, arg_vector=0xbfd97014) at eval.c:3089 #18 0x0814f007 in Ffuncall (nargs=3, args=0xbfd97010) at eval.c:2957 ---Type to continue, or q to quit--- #19 0x0815076a in Fapply (nargs=2, args=0xbfd97060) at eval.c:2394 #20 0x08150874 in apply1 (fn=137756433, arg=190868541) at eval.c:2658 #21 0x0814df83 in call_debugger (arg=190868541) at eval.c:290 #22 0x0814e0eb in find_handler_clause (handlers=137574185, conditions=Variable "conditions" is not available. ) at eval.c:1838 #23 0x0814f4eb in Fsignal (error_symbol=137574185, data=190868565) at eval.c:1665 #24 0x0814fa87 in error (m=0x81a769f "%s: %s", a1=0x81ae2b7 "/dev/dsp", a2=0x218338 "Device or resource busy", a3=0x0) at eval.c:1922 #25 0x08186a88 in sound_perror (msg=0x81ae2b7 "/dev/dsp") at sound.c:327 #26 0x08186e0d in Fplay_sound_internal (sound=190868597) at sound.c:1066 #27 0x0814f0b3 in Ffuncall (nargs=2, args=0xbfd975a0) at eval.c:2902 #28 0x08179d4f in Fbyte_code (bytestr=136119955, vector=136119988, maxdepth=16) at bytecode.c:694 #29 0x0814ec08 in funcall_lambda (fun=136119916, nargs=1, arg_vector=0xbfd976c4) at eval.c:3089 #30 0x0814f007 in Ffuncall (nargs=2, args=0xbfd976c0) at eval.c:2957 #31 0x08179d4f in Fbyte_code (bytestr=136564243, vector=136564300, maxdepth=32) at bytecode.c:694 #32 0x0814ec08 in funcall_lambda (fun=136564180, nargs=1, arg_vector=0xbfd97780) at eval.c:3089 #33 0x0814edce in apply_lambda (fun=136564180, args=190868621, eval_flag=1) at eval.c:3011 ---Type to continue, or q to quit--- #34 0x0814e50b in Feval (form=190868629) at eval.c:2300 #35 0x0814f0b3 in Ffuncall (nargs=2, args=0xbfd978b0) at eval.c:2902 #36 0x08179d4f in Fbyte_code (bytestr=137025875, vector=137026052, maxdepth=64) at bytecode.c:694 #37 0x0814ec08 in funcall_lambda (fun=137025836, nargs=1, arg_vector=0xbfd979e4) at eval.c:3089 #38 0x0814f007 in Ffuncall (nargs=2, args=0xbfd979e0) at eval.c:2957 #39 0x08179d4f in Fbyte_code (bytestr=137026707, vector=137026764, maxdepth=32) at bytecode.c:694 #40 0x0814ec08 in funcall_lambda (fun=137026668, nargs=1, arg_vector=0xbfd97b74) at eval.c:3089 #41 0x0814f007 in Ffuncall (nargs=2, args=0xbfd97b70) at eval.c:2957 #42 0x0814c42a in Fcall_interactively (function=137986537, record_flag=137529545, keys=137570044) at callint.c:884 #43 0x080edcb3 in Fcommand_execute (cmd=137986537, record_flag=137529545, keys=137529545, special=137529545) at keyboard.c:9760 #44 0x080f8f4b in command_loop_1 () at keyboard.c:1791 #45 0x0814dc02 in internal_condition_case (bfun=0x80f8bd0 , handlers=137574185, hfun=0x80f39c0 ) at eval.c:1474 #46 0x080f2c63 in command_loop_2 () at keyboard.c:1328 #47 0x0814dcba in internal_catch (tag=137570417, func=0x80f2c40 , arg=137529545) at eval.c:1212 #48 0x080f367c in command_loop () at keyboard.c:1307 ---Type to continue, or q to quit--- #49 0x080f372a in recursive_edit_1 () at keyboard.c:1000 #50 0x080f3827 in Frecursive_edit () at keyboard.c:1061 #51 0x080e9e95 in main (argc=1, argv=0xbfd98464) at emacs.c:1789 Lisp Backtrace: "recursive-edit" "byte-code" "debug" "play-sound-internal" "play-sound" "play-sound-file" "eval" "eval-last-sexp-1" "eval-last-sexp" "call-interactively" (gdb) c Continuing. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. -- Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux) http://jihadwatch.org http://camera.org http://memri.org http://ffii.org http://truepeace.org http://palestinefacts.org http://thereligionofpeace.com People with a good taste are especially appreciated by cannibals.