Bug #2015
[Git master / 3.9.467~gcd713e2] Crash when viewing services via dvb inputs -> services
Start date:
2014-03-18
Due date:
% Done:
100%
Estimated time:
(Total: 0.00 h)
Found in version:
3.9.467~gcd713e2
Affected Versions:
Description
Attempting to view a service via dvb input -> services in current git master 3.9.467~gcd713e2 results in a crash.
Here are some traces:
#0 0x00007ffc4b8f9475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007ffc4b8fc675 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2 0x000000000044e1ce in muxer_cache_update (m=<optimized out>,
fd=<optimized out>, pos=<optimized out>, size=<optimized out>)
at src/muxer.c:461
No locals.
#3 0x000000000044fbd8 in mk_write_to_fd (mkm=0x170c4d0,
hq=<error reading variable: Unhandled dwarf expression opcode 0xfa>)
at src/muxer/tvh/mkmux.c:453
hd = <optimized out>
i = 0
oldpos = 0
iov = 0x7ffc2cff86c0
#4 0x000000000044fc60 in mk_write_queue (mkm=mkm@entry=0x170c4d0,
q=q@entry=0x7ffc2cff87a0) at src/muxer/tvh/mkmux.c:465
No locals.
#5 0x00000000004507dd in mk_mux_init (mkm=0x170c4d0, title=<optimized out>,
ss=0x1755820) at src/muxer/tvh/mkmux.c:1102
q = {hq_q = {tqh_first = 0x7ffc28046df0, tqh_last = 0x7ffc2800c870},
hq_size = 369, hq_maxsize = 2147483647}
a = <optimized out>
#6 0x000000000044f016 in tvh_muxer_init (m=0x1735760, ss=<optimized out>,
name=<optimized out>) at src/muxer/muxer_tvh.c:75
tm = 0x1735760
#7 0x000000000044650b in http_stream_run (hc=hc@entry=0x7ffc2cff8ca0,
sq=sq@entry=0x7ffc2cff8970, name=0x7ffc2cff88e0 "514000/POP",
mc=mc@entry=MC_MATROSKA, s=0x172ce30, mcfg=mcfg@entry=0x7ffc2cff8920)
at src/webui/webui.c:293
sm = 0x174e270
run = <optimized out>
started = <optimized out>
mux = 0x1735760
timeouts = 0
ts = {tv_sec = 1395324385, tv_nsec = 12357000}
tp = {tv_sec = 1395324384, tv_usec = 12357}
err = 0
errlen = 4
#8 0x0000000000446b0a in http_stream_service (hc=hc@entry=0x7ffc2cff8ca0,
service=0x150c150, weight=weight@entry=0) at src/webui/webui.c:707
sq = {sq_st = {st_link = {le_next = 0x0, le_prev = 0x0}, st_pad = 0x0,
st_cb = 0x41a3e0 <streaming_queue_deliver>,
st_opaque = 0x7ffc2cff8970, st_reject_filter = 0}, sq_mutex = {
__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0,
__kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}},
__size = '\000' <repeats 39 times>, __align = 0}, sq_cond = {
__data = {__lock = 0, __futex = 6, __total_seq = 3,
__wakeup_seq = 3, __woken_seq = 3, __mutex = 0x7ffc2cff89a0,
__nwaiters = 0, __broadcast_seq = 0},
__size = "\000\000\000\000\006\000\000\000\003\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\240\211\377,\374\177\000\000\000\000\000\000\000\000\000", __align = 25769803776},
sq_maxsize = 1500000, sq_queue = {tqh_first = 0x17551b0,
tqh_last = 0x1791d50}}
s = <optimized out>
gh = 0x1725910
tsfix = 0x1731660
st = <optimized out>
cfg = <optimized out>
mc = MC_MATROSKA
flags = <optimized out>
str = <optimized out>
qsize = <optimized out>
name = <optimized out>
addrbuf = "192.168.1.10", '\000' <repeats 20 times>"\300, \000\000\000\000\000\000\000\250\000\000\000\000\000\000\000\001"
m_cfg = {dvr_flags = 3, dvr_cache = 48}
#9 0x0000000000446eac in http_stream (hc=0x7ffc2cff8ca0,
remain=<optimized out>, opaque=<optimized out>) at src/webui/webui.c:905
components = {0x17315dc "service",
0x17315e4 "311173090f3a8739afc57bb25c627551"}
ch = 0x0
service = <optimized out>
mm = 0x0
str = <optimized out>
weight = 0
scopedlock__LINE__ = 0x6c7f60
#10 0x00000000004101ed in http_exec (hc=hc@entry=0x7ffc2cff8ca0,
hp=hp@entry=0x7ffc4003b080, remain=0x17315dc "service") at src/http.c:349
err = <optimized out>
#11 0x0000000000410613 in http_cmd_get (hc=hc@entry=0x7ffc2cff8ca0)
at src/http.c:380
hp = 0x7ffc4003b080
remain = 0x17315dc "service"
args = 0x0
#12 0x00000000004107a2 in http_process_request (spill=0x7ffc2cff8c60,
hc=0x7ffc2cff8ca0) at src/http.c:458
No locals.
#13 process_request (hc=hc@entry=0x7ffc2cff8ca0,
spill=spill@entry=0x7ffc2cff8c60) at src/http.c:523
v = <optimized out>
argv = {0x20 <Address 0x20 out of bounds>,
0x4000 <Address 0x4000 out of bounds>}
n = <optimized out>
rval = -1
authbuf = " ", '\000' <repeats 15 times>"\310, \336\304K\374\177\000\000\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\336\024s\001\000\000\000\000`\336\304K\374\177\000\000`\336\304K\374\177\000\000`\214\377,\374\177\000\000`\336\304K\374\177\000\000`\214\377,\374\177\000\000\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\320\025s\001\000\000\000\000P*k\000\000\000\000\000\034+\224K\374\177\000\000\000\000\000\000\000\000\000\000\203\261B\000\000\000\000\000\000\000\000\000\000"
#14 0x0000000000410c95 in http_serve_requests (spill=0x7ffc2cff8c60,
hc=0x7ffc2cff8ca0) at src/http.c:759
argv = {0x17314d0 "", 0x17314de "1", 0x1731605 "HTTP/1.1"}
c = <optimized out>
cmdline = 0x17315d0 "GET"
hdrline = 0x17314d0 ""
n = <optimized out>
#15 http_serve (fd=21, opaque=0x1733c20, peer=<optimized out>,
self=<optimized out>) at src/http.c:808
spill = {hq_q = {tqh_first = 0x0, tqh_last = 0x7ffc2cff8c60},
hq_size = 0, hq_maxsize = 2147483647}
hc = {hc_fd = 21, hc_peer = 0x1733c28, hc_self = 0x1733ca8,
hc_representative = 0x1734b40 "192.168.1.10",
hc_url = 0x17315d4 "/stream/service",
hc_url_orig = 0x7ffc2cff8af0 "/stream/service/311173090f3a8739afc57bb25c627551", hc_keep_alive = 0, hc_reply = {hq_q = {tqh_first = 0x0,
tqh_last = 0x7ffc2cff8cd8}, hq_size = 0,
hq_maxsize = 2147483647}, hc_args = {tqh_first = 0x1731560,
tqh_last = 0x17313a0}, hc_req_args = {tqh_first = 0x0,
tqh_last = 0x7ffc2cff8d00}, hc_state = HTTP_CON_WAIT_REQUEST,
hc_cmd = HTTP_CMD_GET, hc_version = HTTP_VERSION_1_1,
hc_username = 0x0, hc_password = 0x0, hc_user_config = 0x0,
hc_no_output = 0, hc_post_data = 0x0, hc_post_len = 0,
hc_rtsp_session = 0x0}
#16 0x000000000040e8fe in tcp_server_start (aux=0x1733bf0) at src/tcp.c:454
tsl = 0x1733bf0
to = {tv_sec = 30, tv_usec = 0}
val = 1
#17 0x000000000040ca54 in thread_wrapper (p=0x16e5070) at src/wrappers.c:123
ts = 0x16e5070
set = {__val = {16384, 0 <repeats 15 times>}}
r = <optimized out>
#18 0x00007ffc4bedab50 in start_thread ()
from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#19 0x00007ffc4b9a30ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#20 0x0000000000000000 in ?? ()
No symbol table info available.
#3 0x000000000044fbd8 in mk_write_to_fd (mkm=0x170c4d0,
hq=<error reading variable: Unhandled dwarf expression opcode 0xfa>)
at src/muxer/tvh/mkmux.c:453
453 muxer_cache_update(mkm->m, mkm->fd, oldpos, 0);
$1 = {m = 0x1735760, fd = 21, filename = 0x1735640 "Live stream", error = 0,
fdpos = 369, seekable = 0, tracks = 0x7ffc280511a0, ntracks = 2,
has_video = 1, totduration = 0, cluster = 0x0, cluster_tc = 0,
cluster_pos = 0, cluster_maxsize = 0, segment_header_pos = 40,
segment_pos = 52, segmentinfo_pos = 52, trackinfo_pos = 159,
metadata_pos = 0, cue_pos = 0, chapters_pos = 0, addcue = 0, cues = {
tqh_first = 0x0, tqh_last = 0x170c578}, chapters = {tqh_first = 0x0,
tqh_last = 0x170c588},
uuid = "mDr\f\235\037\216\267\217\332]F\004\243", <incomplete sequence \353>, title = 0x7ffc28047b00 "514000/POP", webm = 0}
Subtasks
History
Updated by Adam Sutton almost 10 years ago
- Status changed from New to Accepted
- Assignee changed from John Törnblom to Adam Sutton
Problem is init of muxer config in one particular path. I knew I'd regret not generalising some of this init. I believe this, http://sprunge.us/GdeS, should fix hte issue.
If someone confirms, I will push fix to master.
Adam
Updated by Adam Sutton almost 10 years ago
- Status changed from Accepted to Fixed
Applied in changeset tvheadend|commit:6482d33ba90848018c530018e5c38992b8ac921c.