All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Michael Jochum <e9725005@stud3.tuwien.ac.at>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: rtcw,quake3 hang on exit
Date: Mon, 08 Apr 2002 17:05:30 +0200	[thread overview]
Message-ID: <s5hadsemds5.wl@alsa2.suse.de> (raw)
In-Reply-To: <1016654302.933.2.camel@mjo>

Hi,

i got the point.
snd_pcm_playback_drain() (which is called at closing the pcm) never
returns when OSS is running on mmap mode. 
now fixed on cvs.  please give a try.


ciao,

Takashi


At 20 Mar 2002 20:58:22 +0100,
Michael Jochum wrote:
> 
> hi!
> 
> some time back there has been a similar bug report about the same
> problem:
> http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg01675.html
> with no response ... so i will be a bit more verbose :)
> 
> it have this problem on all computers (Athlon, P3, P4, Cleron) i have
> access to. all of them have different sound cards (SB128, SB Live, AC97
> Via686 and AC97 on a i845) and on all of them i have used various 0.9
> betas of alsa and versions of the linux kernel (2.4.5 to 2.4.18).
> no problem with the oss driver
> 
> i have done a strace run of rtcw and found some interesting things:
> 
> somewhere rtcw opens the dsp device:
> open("/dev/dsp", O_RDWR)                = 16
> but i cant find the coresponding
> close(16)
> 
> this are the last lines of output (process locks here):
> 
> write(2, "----- CL_Shutdown -----\n", 24) = 24
> write(2, "-----------------------\n", 24) = 24
> fcntl64(0, F_GETFL)                     = 0x802 (flags
> O_RDWR|O_NONBLOCK)
> fcntl64(0, F_SETFL, O_RDWR)             = 0
> write(2, "Shutdown tty console\n", 21)  = 21
> ioctl(0, SNDCTL_TMR_STOP, {B38400 opost isig icanon echo ...}) = 0
> _exit(0)                                = ?
> 
> i dont know much about kernel internals - but isnt _exit a kernel syscal
> that is supposed to close all open devices?
> so what kind of bug is this? rtcw? alsa? kernel?
> 
> this is a very anoying bug for me and it would be nice if someone could
> help me with this problem. i have even mada a panel button to kill the
> hanging processes :)
> 
> tia,
> michael.
> 
> 
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
> 

  parent reply	other threads:[~2002-04-08 15:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-20 19:58 rtcw,quake3 hang on exit Michael Jochum
2002-03-20 21:00 ` Steven Walter
2002-03-20 21:47 ` Paul Davis
2002-03-20 21:51   ` Dan Hollis
2002-03-20 22:05   ` Michael Jochum
2002-03-20 23:21     ` Steven Walter
2002-04-08 15:05 ` Takashi Iwai [this message]
2002-04-08 20:01   ` Michael Jochum
2002-04-09  8:37     ` Takashi Iwai
2002-04-09  9:30       ` Takashi Iwai
2002-04-09 17:32         ` rtcw,quake3 hang on exit <<< patch is working!!!! Michael Jochum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hadsemds5.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=e9725005@stud3.tuwien.ac.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.