On Sun, 18 Oct 2009 01:03:19 PDT
J?rgen Keil <jrgn.keil at googlemail.com> wrote:

> > I've got an interesting problem with audio on svn_124.
> 
> Which audio hardware?

Built into the motherboard.

> What does "cat /dev/sndstat" report?

sensei$ cat /dev/sndstat
SunOS Audio Framework

Audio Devices:
0: audio810#0 Intel AC'97, ICH5 (DUPLEX)

Mixers:
0: audio810#0 Intel AC'97, ICH5
        AC'97 codec: Avance Logic 0x414c4761 (6 channels)


> > I'm at a loss
> > as to what to try next, partly because this is one of those nasty
> > intermittent problems.
> > 
> > I'm trying to play chimes on the quarter hour. I invoke a simple shell
> > script from cron to do so. The script is short enough I'm including it
> > inline: 
> > ...
> > This works. It plays the chimes - for an hour or so. Then it
> > stops. When I check the system, I find the esdplay command stacked up
> > waiting.
> 
> Try to get a stack backtrace for the hanging esdplay process,
> using "pstack PID", where PID is the process id of the hanging
> esdplay process.

sensei$ pfexec pstack 17016
17016:  /usr/bin/esdplay /export/home/mwm/sounds/westminister/west45.wav
 fef02925 write    (5, 8046cb0, 1000)
 fee05906 esd_send_file (5) + 6a
 fee05cc0 esd_play_file (8047ef8, 8047f09, 1, fef903e0, fef903e0, 3) + 37c
 08050e88 main     (2, 8047e58, 8047e64, 8047e4c) + 1a4
 08050c2d _start   (2, 8047ef8, 8047f09, 0, 8047f39, 8047f4b) + 7d


And for audioplay:

17102:  /usr/bin/audioplay /usr/demo/SOUND/sounds/touchtone.0.au
 fef01bb5 ioctl    (4, 20004103, 0)
 080536d6 main     (2, 80479d8, 80479e4, 80479cc) + f7a
 0805233d _start   (2, 8047af8, 8047b0b, 0, 8047b31, 8047b4f) + 7d


> > If I kill them, things start working fine.
> 
> > Using /usr/bin/audioplay instead of esdplay produces the same
> > result.
> 
> Could this be similar to bug 6836911 "audio810: audioplay hangs"
> http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6836911 ?

Could be. The stacktrace for audioplay looks similar.

> >From a csh / tcsh shell, try
> 
>      repeat 20 audioplay /usr/demo/SOUND/sounds/touchtone.0.au
> 
> Does that play the touchtone clip twenty times?
> Or does it hang in audioplay sometimes?

It hangs after playing seven times.

Any other suggestions?

    Thanks,
    <mike
-- 
Mike Meyer <mwm at mired.org>           http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Reply via email to