all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs hangs in alsa_open
@ 2006-07-02 23:44 Sam Steingold
  2006-07-03 14:50 ` Jan Djärv
  2006-07-03 23:20 ` Richard Stallman
  0 siblings, 2 replies; 4+ messages in thread
From: Sam Steingold @ 2006-07-02 23:44 UTC (permalink / raw)


GNU Emacs 22.0.50.3 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2006-07-02 on loiso

emacs hangs forever (C-g does not help) in alsa_open:

Program received signal SIGTSTP, Stopped (user).
[Switching to Thread -1208878592 (LWP 5598)]
0x00a58402 in __kernel_vsyscall ()
(gdb) where
#0  0x00a58402 in __kernel_vsyscall ()
#1  0x0011c583 in __open_nocancel () from /lib/libpthread.so.0
#2  0x0505058f in snd_pcm_hw_open () from /lib/libasound.so.2
#3  0x05050a40 in _snd_pcm_hw_open () from /lib/libasound.so.2
#4  0x05047e75 in snd_pcm_free () from /lib/libasound.so.2
#5  0x050485c3 in snd_pcm_open_slave () from /lib/libasound.so.2
#6  0x05082c29 in _snd_pcm_softvol_open () from /lib/libasound.so.2
#7  0x05047e75 in snd_pcm_free () from /lib/libasound.so.2
#8  0x050485c3 in snd_pcm_open_slave () from /lib/libasound.so.2
#9  0x05062bec in _snd_pcm_plug_open () from /lib/libasound.so.2
#10 0x05047e75 in snd_pcm_free () from /lib/libasound.so.2
#11 0x050485c3 in snd_pcm_open_slave () from /lib/libasound.so.2
#12 0x050805f4 in _snd_pcm_asym_open () from /lib/libasound.so.2
#13 0x05047e75 in snd_pcm_free () from /lib/libasound.so.2
#14 0x050484f6 in snd_pcm_free () from /lib/libasound.so.2
#15 0x08188f57 in alsa_open (sd=0x960d750) at sound.c:975
#16 0x0818997d in Fplay_sound_internal (sound=158865821) at sound.c:1458
#17 0x08150d93 in Ffuncall (nargs=2, args=0xbf809c30) at eval.c:2904
#18 0x0817bbbf in Fbyte_code (bytestr=136135267, vector=136135300, maxdepth=16)
    at bytecode.c:694
#19 0x081508e8 in funcall_lambda (fun=136135228, nargs=1,
    arg_vector=0xbf809d54) at eval.c:3091
#20 0x08150ce7 in Ffuncall (nargs=2, args=0xbf809d50) at eval.c:2959
#21 0x0817bbbf in Fbyte_code (bytestr=136584083, vector=136584140, maxdepth=32)
    at bytecode.c:694
#22 0x081508e8 in funcall_lambda (fun=136584020, nargs=1,
    arg_vector=0xbf809e74) at eval.c:3091
#23 0x08150ce7 in Ffuncall (nargs=2, args=0xbf809e70) at eval.c:2959
#24 0x0817bbbf in Fbyte_code (bytestr=145042587, vector=145046876, maxdepth=40)
    at bytecode.c:694
#25 0x081508e8 in funcall_lambda (fun=145047092, nargs=0,
    arg_vector=0xbf809fa4) at eval.c:3091
#26 0x08150ce7 in Ffuncall (nargs=1, args=0xbf809fa0) at eval.c:2959
#27 0x0817bbbf in Fbyte_code (bytestr=148967475, vector=138203252, maxdepth=8)
    at bytecode.c:694
#28 0x08150319 in Feval (form=148946797) at eval.c:2250
#29 0x0815283f in internal_lisp_condition_case (var=137545929,
    bodyform=148946797, handlers=148944997) at eval.c:1421
#30 0x0817aea5 in Fbyte_code (bytestr=148967459, vector=148968828, maxdepth=64)
    at bytecode.c:884
#31 0x081508e8 in funcall_lambda (fun=148969044, nargs=0,
    arg_vector=0xbf80a368) at eval.c:3091
#32 0x08150ce7 in Ffuncall (nargs=1, args=0xbf80a364) at eval.c:2959
#33 0x08152498 in Fapply (nargs=2, args=0xbf80a364) at eval.c:2340
#34 0x08150f30 in Ffuncall (nargs=3, args=0xbf80a360) at eval.c:2885
---Type <return> to continue, or q <return> to quit---
#35 0x0817bbbf in Fbyte_code (bytestr=136924987, vector=136925028, maxdepth=32)
    at bytecode.c:694
#36 0x08150319 in Feval (form=136924973) at eval.c:2250
#37 0x0815283f in internal_lisp_condition_case (var=137545929,
    bodyform=136924973, handlers=136925061) at eval.c:1421
#38 0x0817aea5 in Fbyte_code (bytestr=136924707, vector=136924860, maxdepth=40)
    at bytecode.c:884
#39 0x081508e8 in funcall_lambda (fun=136924668, nargs=1,
    arg_vector=0xbf80a694) at eval.c:3091
#40 0x08150ce7 in Ffuncall (nargs=2, args=0xbf80a690) at eval.c:2959
#41 0x08152069 in call1 (fn=137581337, arg1=139917332) at eval.c:2693
#42 0x080f3476 in timer_check (do_it_now=1) at keyboard.c:4480
#43 0x080f3689 in readable_events (flags=1) at keyboard.c:3519
#44 0x080f36f7 in get_input_pending (addr=0x831a454, flags=1)
    at keyboard.c:6599
#45 0x080f37d0 in detect_input_pending_run_timers (do_display=1)
    at keyboard.c:9955
#46 0x08181be4 in wait_reading_process_output (time_limit=0, microsecs=0,
    read_kbd=-1, do_display=1, wait_for_cell=137545929, wait_proc=0x0,
    just_wait_proc=0) at process.c:4653
#47 0x080f6c0c in read_char (commandflag=1, nmaps=2, maps=0xbf80acf0,
    prev_event=137545929, used_mouse_menu=0xbf80ad98) at keyboard.c:3940
#48 0x080f902d in read_key_sequence (keybuf=0xbf80ae44, bufsize=30,
    prompt=137545929, dont_downcase_last=0, can_return_switch_frame=1,
    fix_current_buffer=1) at keyboard.c:8864
#49 0x080fab63 in command_loop_1 () at keyboard.c:1536
#50 0x0814f8d2 in internal_condition_case (bfun=0x80fa9d0 <command_loop_1>,
    handlers=137590569, hfun=0x80f57d0 <cmd_error>) at eval.c:1476
#51 0x080f4a73 in command_loop_2 () at keyboard.c:1328
#52 0x0814f98a in internal_catch (tag=137586801,
    func=0x80f4a50 <command_loop_2>, arg=137545929) at eval.c:1214
#53 0x080f548c in command_loop () at keyboard.c:1307
#54 0x080f553a in recursive_edit_1 () at keyboard.c:1000
#55 0x080f5637 in Frecursive_edit () at keyboard.c:1061
#56 0x080ebc95 in main (argc=2, argv=0xbf80b544) at emacs.c:1794

Lisp Backtrace:
"play-sound-internal" (0x978199d)
"play-sound" (0x978199d)
"play-sound-file" (0x8a52cfb)
"sds-gnus-scan-mail" (0x64)
"byte-code" (0x8e11033)
"gnus-demon" (0x832c8c9)
"apply" (0x8597af9)
"byte-code" (0x8294f3b)
---Type <return> to continue, or q <return> to quit---
"timer-event-handler" (0x856f814)
(gdb) c
Continuing.

Program received signal SIGTSTP, Stopped (user).
0x00a58402 in __kernel_vsyscall ()
(gdb) up
#1  0x0011c583 in __open_nocancel () from /lib/libpthread.so.0
(gdb)
#2  0x0505058f in snd_pcm_hw_open () from /lib/libasound.so.2
(gdb)
#3  0x05050a40 in _snd_pcm_hw_open () from /lib/libasound.so.2
(gdb)
#4  0x05047e75 in snd_pcm_free () from /lib/libasound.so.2
(gdb)
#5  0x050485c3 in snd_pcm_open_slave () from /lib/libasound.so.2
(gdb)
#6  0x05082c29 in _snd_pcm_softvol_open () from /lib/libasound.so.2
(gdb)
#7  0x05047e75 in snd_pcm_free () from /lib/libasound.so.2
(gdb)
#8  0x050485c3 in snd_pcm_open_slave () from /lib/libasound.so.2
(gdb)
#9  0x05062bec in _snd_pcm_plug_open () from /lib/libasound.so.2
(gdb)
#10 0x05047e75 in snd_pcm_free () from /lib/libasound.so.2
(gdb)
#11 0x050485c3 in snd_pcm_open_slave () from /lib/libasound.so.2
(gdb)
#12 0x050805f4 in _snd_pcm_asym_open () from /lib/libasound.so.2
(gdb)
#13 0x05047e75 in snd_pcm_free () from /lib/libasound.so.2
(gdb)
#14 0x050484f6 in snd_pcm_free () from /lib/libasound.so.2
(gdb)
#15 0x08188f57 in alsa_open (sd=0x960d750) at sound.c:975
975       err = snd_pcm_open (&p->handle, file, SND_PCM_STREAM_PLAYBACK, 0);
(gdb) p err
Variable "err" is not available.
(gdb) p p
No symbol "p" in current context.
(gdb) p file
$1 = 0x81adcdd "default"
(gdb) down
#14 0x050484f6 in snd_pcm_free () from /lib/libasound.so.2
(gdb) return
Make selected stack frame return now? (y or n) y
#0  alsa_open (sd=0x960d750)
    at sound.c:976
976       if (err < 0)
(gdb) p err
Variable "err" is not available.
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x08188f55 in alsa_open (sd=0x960d750) at sound.c:975
975       err = snd_pcm_open (&p->handle, file, SND_PCM_STREAM_PLAYBACK, 0);
(gdb) c
Continuing.
Fatal error (11)
Program received signal SIGSEGV, Segmentation fault.
0x00a58402 in __kernel_vsyscall ()
(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://truepeace.org http://dhimmi.com http://openvotingconsortium.org
http://thereligionofpeace.com http://jihadwatch.org http://memri.org
Life is a sexually transmitted disease with 100% mortality.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs hangs in alsa_open
  2006-07-02 23:44 emacs hangs in alsa_open Sam Steingold
@ 2006-07-03 14:50 ` Jan Djärv
  2006-07-03 14:56   ` Sam Steingold
  2006-07-03 23:20 ` Richard Stallman
  1 sibling, 1 reply; 4+ messages in thread
From: Jan Djärv @ 2006-07-03 14:50 UTC (permalink / raw)
  Cc: emacs-devel



Sam Steingold skrev:
> GNU Emacs 22.0.50.3 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
>  of 2006-07-02 on loiso
> 
> emacs hangs forever (C-g does not help) in alsa_open:
> 

What sound hardware do you have?  Does aplay work with the same sound file?

	Jan D.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs hangs in alsa_open
  2006-07-03 14:50 ` Jan Djärv
@ 2006-07-03 14:56   ` Sam Steingold
  0 siblings, 0 replies; 4+ messages in thread
From: Sam Steingold @ 2006-07-03 14:56 UTC (permalink / raw)
  Cc: emacs-devel

> * Jan Djärv <wna.u.q@fjvcarg.fr> [2006-07-03 16:50:54 +0200]:
>
> Sam Steingold skrev:
>> GNU Emacs 22.0.50.3 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
>>  of 2006-07-02 on loiso
>>
>> emacs hangs forever (C-g does not help) in alsa_open:

actually, it does not hang right away.
(play-sound-file "/usr/share/sounds/error.wav")
type C-x C-e several times in a row to get a hang.


> What sound hardware do you have?

$ cat /proc/asound/cards
 0 [V8235          ]: VIA8233 - VIA 8235
                      VIA 8235 with CMI9739 at 0xe000, irq 161
 1 [modem          ]: VIA82XX-MODEM - VIA 82XX modem
                      VIA 82XX modem at 0xe400, irq 161
$ cat /proc/asound/devices
  2:        : timer
  3:        : sequencer
  4: [ 1- 0]: digital audio playback
  5: [ 1- 0]: digital audio capture
  6: [ 1]   : control
  7: [ 0- 1]: digital audio playback
  8: [ 0- 1]: digital audio capture
  9: [ 0- 0]: digital audio playback
 10: [ 0- 0]: digital audio capture
 11: [ 0]   : control
$ cat /proc/asound/modules
 0 snd_via82xx
 1 snd_via82xx_modem
$ cat /proc/asound/pcm
01-00: VIA 82XX modem : VIA 82XX modem : playback 1 : capture 1
00-01: VIA 8235 : VIA 8235 : playback 1 : capture 1
00-00: VIA 8235 : VIA 8235 : playback 4 : capture 1
$


> Does aplay work with the same sound file?
yes.

-- 
Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux)
http://honestreporting.com http://truepeace.org http://pmw.org.il
http://palestinefacts.org http://mideasttruth.com http://ffii.org
Lisp: Serious empowerment.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs hangs in alsa_open
  2006-07-02 23:44 emacs hangs in alsa_open Sam Steingold
  2006-07-03 14:50 ` Jan Djärv
@ 2006-07-03 23:20 ` Richard Stallman
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2006-07-03 23:20 UTC (permalink / raw)
  Cc: emacs-devel

    emacs hangs forever (C-g does not help) in alsa_open:

To see how to fix this, we need to find out what libasound
says about interrupting it with signals.

Meanwhile, why does the system call hang?
I would expect that system call to be one that never hangs.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-03 23:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-02 23:44 emacs hangs in alsa_open Sam Steingold
2006-07-03 14:50 ` Jan Djärv
2006-07-03 14:56   ` Sam Steingold
2006-07-03 23:20 ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.