[mythtv-users] Kernel oops when I try to record (on copied config)

David Kramer david at thekramers.net
Sun Jan 13 07:34:52 UTC 2008

Here's my setup:
F8 kernel
Intel Core 2 Duo E6750
MythTV 0.20.2-170.fc8
PVR-350 card (only one)

OK, here's the fun part.  This server is replacing an older server (FC6,
MythTV 0.20.2-165.fc6).  So I didn't have to put in all my programming
again, I copied over the mythconverg database then ran mythtv-setup.  I
don't know if this is the root of my current problem, but I wanted to
throw it out there.

I doubt this matters either, but I use a bash-based external channel
changer, because I can't get my USB-UIRT working with lirc.  Channel
changing works.
Catting /dev/video to a file and playing it works fine both as root and
as a mortal.

Playing already-recorded content works fine.

Any .mpg files creates by live or scheduled recordings are zero bytes.

When I try to watch live tv:
The front end prints errors like:
2008-01-13 01:10:59.808 TV: Attempting to change from None to WatchingLiveTV
2008-01-13 01:10:59.809 Using protocol version 31
2008-01-13 01:11:10.433
RingBuf(/data/mythtv/video/1060_20080113011103.mpg): Invalid file (fd
-1) when opening '/data/mythtv/video/1060_20080113011103.mpg'.
2008-01-13 01:11:10.434 DPMS Deactivated
2008-01-13 01:11:50.435 TV Error: StartRecorder() -- timed out waiting
for recorder to start
2008-01-13 01:11:50.436 TV Error: LiveTV not successfully started
2008-01-13 01:11:50.442 TV: Deleting TV Chain in destructor
2008-01-13 01:11:50.443 DPMS Reactivated.

The back end prints errors like
2008-01-13 01:10:59.809 MainServer::HandleAnnounce Playback
2008-01-13 01:10:59.810 adding: janus.thekramers.net as a client (events: 0)
2008-01-13 01:10:59.812 TVRec(1): Changing from None to WatchingLiveTV
2008-01-13 01:10:59.813 TVRec(1): HW Tuner: 1->1
2008-01-13 01:11:00.842 ret_pid(0) child(10648) status(0x0)
2008-01-13 01:11:01.843 ret_pid(0) child(10648) status(0x0)
2008-01-13 01:11:02.843 ret_pid(0) child(10648) status(0x0)
Sent 6 to device cable
Sent 0 to device cable
2008-01-13 01:11:03.844 ret_pid(10648) child(10648) status(0x0)
2008-01-13 01:11:03.844 External Tuning program exited with no error

However, at one point I got:
2008-01-13 00:30:06.675 MPEGRec(/dev/video0) Error: Could not set MPEG
 eno: Invalid argument (22)

I also saw one of these for each channel once.
2008-01-13 01:54:49.651 RingBuf(/root/.mythtv/channels/cnbc.jpg): Could
not open /root/.mythtv/channels/cnbc.jpg
This doesn't make sense.  Why would the back end look in /root for ANYTHING?

The kernel oops I get when I try to watch live tv is;
 kernel: Oops: 0000 [#1] SMP
 kernel: CPU:    0
 kernel: EIP:    0060:[<f897e14f>]    Tainted: P        VLI
 kernel: EFLAGS: 00210286   ( #1)
 kernel: EIP is at cx2341x_ext_ctrls+0x50/0x479 [cx2341x]
 kernel: eax: d0795c60   ebx: ffffffff   ecx: c0185648   edx: d0795b34
 kernel: esi: d0795c60   edi: 00000000   ebp: c0185648   esp: d0795b24
 kernel: ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068
 kernel: Process mythbackend (pid: 5764, ti=d0795000 task=f3d48610
 kernel: Stack: 00000004 00000000 d0795eb4 00000000 f7f3b400 f92518ba
00000040 c008561c
 kernel:        f89e5bd5 00000000 00000000 00000000 000001e0 f7b30000
d0795eb4 f7b30000
 kernel:        d0795eb4 d0795eb4 f89e136c d0795eb4 00000000 d0795c60
f7b30000 d0795eb4
 kernel: Call Trace:
 kernel:  [<f92518ba>] msp_command+0x0/0x958 [msp3400]
 kernel:  [<f89e5bd5>] ivtv_call_i2c_client+0x70/0x9d [ivtv]
 kernel:  [<f89e136c>] ivtv_s_ctrl+0x73/0xa4 [ivtv]
 kernel:  [<f89e15b4>] ivtv_control_ioctls+0x178/0x3ec [ivtv]
 kernel:  [<f89e7a65>] ivtv_v4l2_ioctls+0x697/0x124e [ivtv]
 kernel:  [<f89e8b1d>] ivtv_v4l2_do_ioctl+0x501/0xac8 [ivtv]
 kernel:  [<f89e861c>] ivtv_v4l2_do_ioctl+0x0/0xac8 [ivtv]
 kernel:  [<c0423eb6>] kunmap_atomic+0x54/0x96
 kernel:  [<c0423ec2>] kunmap_atomic+0x60/0x96
 kernel:  [<c046f14f>] handle_mm_fault+0x76d/0x78b
 kernel:  [<c0620652>] do_page_fault+0x2c0/0x5ef
 kernel:  [<c04257ab>] __check_preempt_curr_fair+0x55/0x86
 kernel:  [<c0462754>] find_lock_page+0x1a/0x90
 kernel:  [<c04646c4>] filemap_fault+0x22c/0x391
 kernel:  [<c0423eb6>] kunmap_atomic+0x54/0x96
 kernel:  [<c0423ec2>] kunmap_atomic+0x60/0x96
 kernel:  [<c046ca0c>] __do_fault+0x365/0x394
 kernel:  [<f8978b9c>] video_usercopy+0x172/0x236 [videodev]
 kernel:  [<c046ed82>] handle_mm_fault+0x3a0/0x78b
 kernel:  [<f89e6d6b>] ivtv_v4l2_ioctl+0x14a/0x158 [ivtv]
 kernel:  [<f89e861c>] ivtv_v4l2_do_ioctl+0x0/0xac8 [ivtv]
 kernel:  [<c048b4c9>] do_ioctl+0x4d/0x63
 kernel:  [<c048b716>] vfs_ioctl+0x237/0x249
 kernel:  [<c048b774>] sys_ioctl+0x4c/0x64
 kernel:  [<c040518a>] syscall_call+0x7/0xb
 kernel:  [<c0610000>] xfrm_state_sort+0x2e/0x5a
 kernel:  =======================
 kernel: Code: f0 03 55 14 e8 d3 ee ff ff 85 c0 0f 85 35 04 00 00 43 83
c7 14 3b 5d 04 72 e3 e9 1b 04 00 00 6b 5c 24 0c 14 03 5d 14 8d 54 24 10
<8b> 03 89 44 24 10 89 f0 e8 91 fc ff ff 85 c0 0f 85 d9 03 00 00
 kernel: EIP: [<f897e14f>] cx2341x_ext_ctrls+0x50/0x479 [cx2341x] SS:ESP

I can't even think of anything to Google.  Does any of this make sense
to anyone else?

Thanks in advance.

More information about the mythtv-users mailing list