Opened 15 years ago

Closed 15 years ago

#2072 closed patch (fixed)

DBox2: Mythbackend segfault

Reported by: hansi.urpils@… Owned by: danielk
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: high Keywords:
Cc: Ticket locked: no


Hi there!

As suggested in #2068, I'm opening a new ticket.

My setup is fairly simple: one channel, one video source, one capture card: the DBox2.

After setting up everything in mythtv-setup, I start mythbackend. It segfaults, every time.

Here's the log created with v record,channel,siparser (as suggested in the official documentation)

2006-07-18 19:22:46.365 Using runtime prefix = /usr/local
2006-07-18 19:22:46.504 DBPassword is not set in mysql.txt
2006-07-18 19:22:47.754 New DB connection, total: 1
2006-07-18 19:22:48.217 Connected to database 'mythconverg' at host: localhost
2006-07-18 19:22:48.425 Current Schema Version: 1154
Starting up as the master server.
2006-07-18 19:22:48.794 New DB connection, total: 2
2006-07-18 19:22:48.899 Connected to database 'mythconverg' at host: localhost
2006-07-18 19:22:48.982 EITHelper: localtime offset 2:00:00
2006-07-18 19:22:49.139 DBox2Ch(1): Loading channels...
                        Reading channel list from
2006-07-18 19:22:49.193 DBox2Ch(1): Open()
2006-07-18 19:22:49.222 New DB connection, total: 3
2006-07-18 19:22:49.282 Connected to database 'mythconverg' at host: localhost
2006-07-18 19:22:49.625 ChannelBase(1): Input #1: 'MPEG2TS' schan(1) sourceid(1) ccid(1)
2006-07-18 19:22:49.723 ChannelBase(1): Current Input #1: 'MPEG2TS'
2006-07-18 19:22:49.819 DBox2Ch(1): Channel list not received yet.
                        Will switch to channel 1 later...
2006-07-18 19:22:50.140 TVRec(1): SetFlags(RunMainLoop,) -> RunMainLoop,
2006-07-18 19:22:50.197 TVRec(1): ClearFlags(ExitPlayer,FinishRecording,) -> RunMainLoop,
2006-07-18 19:22:50.362 New DB scheduler connection
2006-07-18 19:22:50.387 Connected to database 'mythconverg' at host: localhost
2006-07-18 19:22:50.459 Main::Starting HttpServer
2006-07-18 19:22:50.562 Main::Registering HttpStatus Extension
                                                                                                     2006-07-18 19:22:50.749 mythbackend version: 0.19.20060708-1
2006-07-18 19:22:50.798 Enabled verbose msgs:  important general record channel siparser
2006-07-18 19:22:50.843 AutoExpire: Found 1 recorders w/max rate of 72 MiB/min
2006-07-18 19:22:50.921 AutoExpire: Required Free Space: 1.1 GB w/freq: 10 min
2006-07-18 19:22:51.212 DBox2Ch(1): Reading channel list succeeded.
2006-07-18 19:22:51.349 DBox2Ch(1): Read 168 channels.
2006-07-18 19:22:51.394 DBox2Ch(1): Changing to '1'.
2006-07-18 19:22:51.444 DBox2Ch(1): Channel ID for '1' is '43700016d67'.

Backtrace is attached.

-- Michael

p.s.: Daniel, the fix in #2068 seems to work for me.

Attachments (2)

mythbackend-dbox2-backtrace-20060718.bz2 (3.6 KB) - added by hansi.urpils@… 15 years ago.
Backtrace of the mythbackend crash
dbox2_backend_segfault_fix.diff (2.0 KB) - added by Janne <janne-mythtv@…> 15 years ago.

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by hansi.urpils@…

Backtrace of the mythbackend crash

comment:1 Changed 15 years ago by danielk

Milestone: unknown
Severity: mediumhigh

Not sure what is going on here.

We need a programmer with access to a DBox2 device to look at this...

comment:2 Changed 15 years ago by hansi.urpils@…

I won't be much of a help here because I can't code, I'm sorry.

We could ask levon to take a look at it (if anyone can contact him) or I could let you access my DBox2. This could either be done via some ssh tunnels so you can connect directly to my Dbox2 or I could create some kind of virtual machine where you could do everything you ever wanted ;). If you're located overseas, latency might be an issue, though.

-- Michael

comment:3 Changed 15 years ago by hansi.urpils@…

Janne is going to take a look at it.



Changed 15 years ago by Janne <janne-mythtv@…>

comment:4 Changed 15 years ago by Janne <janne-mythtv@…>

Type: defectpatch

dbox2_backend_segfault_fix.diff fixes the segfault in dbox2channel and and corrects some minor issues in dbox2recorder.

Unfortunately the recorded program doesn't work yet. The frontend segfaults immediately. It plays fine in mplayer though.

I suspect an error in the written PAT/PMT.

The recording is available at (16MB).

comment:5 Changed 15 years ago by danielk

Resolution: fixed
Status: newclosed

(In [10627]) Fixes #2072. Fixes segfault in DBOX2 recorder using patch from Janne.

There are still various other problems with the recorder. Levent has looking at them as part of a significant rewrite of the recorder but those changes will probably not make it in before 0.20.

A patch that would just fixes the PAT/PMT problem before the 0.20 release would be welcome.

Note: See TracTickets for help on using tickets.