All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Joe Hsu" <nagual.hsu@gmail.com>
To: alsa-devel@alsa-project.org
Subject: libaoss.so hole?
Date: Fri, 17 Mar 2006 21:12:25 +0800	[thread overview]
Message-ID: <7fe205990603170512j58c63e4es@mail.gmail.com> (raw)

    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.

    However, other computers with other audio chips go through the
same process (/dev/dsp0 failed and then alsa-default  device
successfully), but my application does not receive any un-expected
SIGCHLD signal before forking its own child process.

    I guess this is a hole. Any body thinks so ?


--
The sun is shinny but the ice is slippery.


-------------------------------------------------------
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\x110944&bid$1720&dat\x121642

             reply	other threads:[~2006-03-17 13:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17 13:12 Joe Hsu [this message]
2006-03-17 16:51 ` libaoss.so hole? Takashi Iwai
2006-03-20  2:18   ` nagual.hsu
2006-03-17 17:49 ` Dirk Jagdmann
2006-03-17 23:20   ` Joe Hsu
2006-03-17 23:27     ` Joe Hsu
2006-03-20 11:46       ` Takashi Iwai

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=7fe205990603170512j58c63e4es@mail.gmail.com \
    --to=nagual.hsu@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /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.