From: Takashi Iwai Subject: Re: libaoss.so hole? Date: Fri, 17 Mar 2006 17:51:45 +0100 Message-ID: References: <7fe205990603170512j58c63e4es@mail.gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 2D6281B2 for ; Fri, 17 Mar 2006 17:51:46 +0100 (MET) In-Reply-To: <7fe205990603170512j58c63e4es@mail.gmail.com> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Joe Hsu Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Fri, 17 Mar 2006 21:12:25 +0800, Joe Hsu wrote: > > I've tested over and over. With my limited number of computers, > I've found this problem only happens in the computers with intel8x0 > audio chips: > > I have an oss application which registers SIGCHLD signal handler > in the beginning and then opens /dev/dsp, and then forks a child > process. If the child process dies, the father process would receive a > SIGCHLD process and then free the allocated resources and then exit. > > Without pre-loading libaoss.so, everything goes well. With > libaoss.so pre-loaded, my applications exit in the computers with > intel8x0 audio chips because my application receives SIGCHLD signal > and thinks its process were dead. But in fact, it does not fork the > child process yet. > > After I turn on the ALSA_OSS_DEBUG environment variable, > libaoss.so first tried to open /dev/dsp0 but in vain. Then it tried a > alsa-default device successfully. I can see that every time libaoss.so > tries to opena pcm device with a new thread. And thta's the source of > the un-expected SIGCHLD signal. No, aoss has no single code calling any thread functions... Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642