Opened 14 years ago
Closed 4 years ago
Last modified 4 years ago
#9027 closed defect (Fixed)
[CRASH] BE segfault on start of recording 3 HD programs (HDHR)
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | 31.0 |
Component: | MythTV - HDHomeRun | Version: | 0.23.1 |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
My FE/BE was set to record three HD programs starting at 8pm. 2 were on the same multiplex. The BE segfaulted as it was starting. Encoders 1-4 are HDHR, 5-6 are AirStar? HD5000. The input is TWCable. I noticed at 8:35 the 2 tuner lights on the HDHR were off and determined it crashed and restarted the BE and it started recording 3 programs fine. Heres a summary; details in attachments.
Sep 27 20:00:08 dvr kernel: mythbackend[10835]: segfault at c2e54f20 ip 00db417d sp a2e54eb0 error 5 in libmythhdhomerun-0.23.1.so.0.23.1[daf000+d000]
MythTV Version : 25469 MythTV Branch : branches/release-0-23-fixes/mythtv/
Program terminated with signal 11, Segmentation fault. #0 0x00db417d in hdhomerun_control_recv_sock (cs=0x9a6cfc8, tx_pkt=0x9a6cfe0, rx_pkt=0x9a6dbf4, type=4, recv_timeout=5000) at hdhomerun_control.c:217 217 if (!FD_ISSET(cs->sock, &readfds)) { (gdb) p cs $1 = (struct hdhomerun_control_sock_t *) 0x9a6cfc8 (gdb) p readfds $2 = {fds_bits = {0 <repeats 32 times>}} (gdb) p *cs $3 = {desired_device_id = 270163495, desired_device_ip = 0, actual_device_id = 270163495, actual_device_ip = 3232238345, sock = -1, dbg = 0x0, tx_pkt = {pos = 0x9a6d3ec "", start = 0x9a6d3ec "", end = 0x9a6d405 "am:537000000", limit = 0x9a6dbee "", buffer = '\000' <repeats 1021 times>, "\004\000\021\003\017/tuner0/status\000g\372\022\334am:537000000\000.2\356C0:60134\000\226\215\v\240\060\063\065 0x0110-0x0112 0x1ffb\000\024\360\004\315", '\000' <repeats 1970 times>}, rx_pkt = {pos = 0x9a6e004 "", start = 0x9a6e004 "", end = 0x9a6e004 "", limit = 0x9a6e802 "", buffer = '\000' <repeats 1025 times>, "\005\000.\003\017/tuner0/target\000\004\033rtp://192.168.11.200:60134\000\000\005\000\"\003\020/tuner0/channel\000\004\016qam:537000000\000\061%\036\303\000\005\000O\003\017/tuner0/status\000\004<ch=qam:537000000 lock=qam256 ss=96 snq=99 seq=0 bps=0 pps=0\000\251[\276\267", '\000' <repeats 1870 times>}}
Looks like cs->sock is -1, I think thats the problem.
Attachments (2)
Change History (11)
Changed 14 years ago by
Attachment: | mythbackend-crash.log added |
---|
Changed 14 years ago by
Attachment: | vers+gdb.log added |
---|
comment:1 Changed 14 years ago by
Status: | new → assigned |
---|
Segfault in libhdhomerun, need SiliconDust? to look at this.
comment:2 Changed 14 years ago by
Threading bug in mythtv - two threads are trying to use the same hdhomerun_device object.
Recommend creating a second hdhomerun_device object for the second thread.
comment:3 Changed 14 years ago by
Owner: | changed from Silicondust to danielk |
---|
comment:4 Changed 13 years ago by
Summary: | BE segfault on start of recording 3 HD programs (HDHR) → [CRASH] BE segfault on start of recording 3 HD programs (HDHR) |
---|
comment:5 Changed 13 years ago by
Resolution: | → Won't Fix |
---|---|
Status: | assigned → closed |
I'm not maintaining the HDHR code anymore. If it is a very serious problem I can remove HDHR support, but at this point this appears to be a rare issue.
comment:6 Changed 4 years ago by
Resolution: | Won't Fix |
---|---|
Status: | closed → new |
comment:7 Changed 4 years ago by
Milestone: | unknown → 31.0 |
---|---|
Resolution: | → Fixed |
Status: | new → closed |
version info and gdb info from core file