[mythtv] mythbackend crashes with segmentation fault after the specific sequences of events.

Mudit Wahal mwahal at gmail.com
Fri Jun 17 03:44:50 UTC 2005


You were right. There was a piece of code which was open a new socket
connection to the recorder.

Once I fixed that and changed the protocol version to 17, no more
crashes :-) Now I can use it inside my application to change the
backend to live TV mode, change channels and switch back to None.

I've bought the IOdata AVeL LinkPlayer 2 (LP2) which runs UPnP server
on linux (wizd). The LP2 acts as a client to the server and can play
any file on the server and browse any web page served by the server.
The LP2 has its own firmware and the source code is not available.

The source for the linux wizd server is available. I'll modify the
code so that whenever it plays a special filename "WatchLiveTV", the
wizd will check if ringbuf.nuv is already present. If the ringbuf file
is present, the wizd server will serve the ringbuf file to the LP2.

If the file is not present, then wizd server will connect to the
backend, try to grab a recorder and then change to liveTV mode. Then
it'll serve the ringbuf file to the player. I also need to figure out
how to change the channel. Most of the keys are being trapped by the
LP2 firmware and shown as INVALID. I need to press all the keys and
see which ones are being send to the server. Then use two of them for
channel up/down :-)

Thanks !!!


On 6/16/05, Mudit Wahal <mwahal at gmail.com> wrote:
> Isaac,
> Thanks. I'll take a look at the script and make sure that there should
> be only one socket connection in it and not multiple. I picked up this
> python script from a website and fixing it as per the frontend logs
> I've captured.
> I'm running this script in a loop with a 3 second sleep. Is it
> possible that the prior connections are still open and not closed in
> last 3 seconds ?
> while (1)
>     myscript
>     sleep 3
> end
> I'll let you know my findings.
> Thanks
> Mudit
> On 6/16/05, Isaac Richards <ijr at case.edu> wrote:
> > On Thursday 16 June 2005 09:04 pm, Mudit Wahal wrote:
> > > Isaac,
> > >
> > > My script is based on debug output logged from the mythfrontend. I'm
> > > modeling my script based on how the frontend is sending commands when
> > > it switches to liveTV to when I stop watching live TV.
> >
> > You're missing the fact that the frontend is opening multiple connections with
> > your logging.  There's 3 separate sockets in there, not 1.  This is also the
> > cause of your newest crash - you're sending different things on different
> > connections than what the frontend would, and the backend is assuming that it
> > gets mostly proper input.
> >
> > Isaac
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >

More information about the mythtv-dev mailing list