On Wed, Jun 16, 2010 at 09:44:16PM +0200, Adam Borbely wrote:
> hi!
>
> after updated from 4.6 to 4.7 I can not play tv with mplayer.
> mplayer is installed as a package:
>
> * mplayer-20090708p4 movie player supporting MPEG, DivX, AVI, ASF, MOV & more
>
> krumpli$ r gd
> gdb mplayer
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "i386-unknown-openbsd4.7"...(no debugging symbols
> found)
>
> (gdb) set args -monitoraspect 16:10 -xy 2 -fstype none -zoom -vo x11 tv://
> -tv driver=bsdbt848:freq=224.25
> (gdb) break sio_setpar
> Breakpoint 1 at 0x3dfda4c: file /usr/src/lib/libsndio/sndio.c, line 292.
> (gdb) r
> Starting program: /usr/local/bin/mplayer -monitoraspect 16:10 -xy 2 -fstype
> none -zoom -vo x11 tv:// -tv driver=bsdbt848:freq=224.25
> Breakpoint 1 at 0xe40da4c: file /usr/src/lib/libsndio/sndio.c, line 292.
> MPlayer SVN-r29414-snapshot-3.3.5 (C) 2000-2009 MPlayer Team
>
> Playing tv://.
> TV file format detected.
> Selected driver: bsdbt848
> name: Brooktree848 Support
> author: Charles Henrich
> comment: in development
> [Switching to process 31630, thread 0x8a620c00]
>
> Breakpoint 1, sio_setpar (hdl=0x87508b00, par=0xcfbe19a0) at
> /usr/src/lib/libsndio/sndio.c:292
> 292 hdl->eof = 1;
> (gdb) p hdl
> $1 = (struct sio_hdl *) 0x87508b00
> (gdb) n
> 291 DPRINTF("sio_getpar: already started\n");
> (gdb) n
> 292 hdl->eof = 1;
> (gdb) p hdl
> $2 = (struct sio_hdl *) 0x87508b00
> (gdb) r
> The program being debugged has been started already.
> Start it from the beginning? (y or n) n
> Program not restarted.
> (gdb) c
> Continuing.
>
> Breakpoint 1, sio_setpar (hdl=0x0, par=0x8512ae0c) at
> /usr/src/lib/libsndio/sndio.c:292
> 292 hdl->eof = 1;
> (gdb) bt
> #0 sio_setpar (hdl=0x0, par=0x8512ae0c) at /usr/src/lib/libsndio/sndio.c:292
> #1 0x1c140188 in ?? ()
> #2 0x00000000 in ?? ()
>
> I don't know too much about sndio the only thing I see is that hdl is NUL when
> sio_setpar is called the second time.
>
> advices?
>
does the error occur if the bt848 is not involved? any hints
on how to reproduce it without a bt848?
You could try to ``export SIO_DEBUG=1'' and see if you get
more information on what causes the crash.
-- Alexandre