Bug #4857
Tvheadend crash (with gdb)
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-01-14
Due date:
% Done:
0%
Estimated time:
Found in version:
66de25a9a7211f89729cf779ba9146929e8624a5
Affected Versions:
Description
Hi,
after updating from
https://github.com/tvheadend/tvheadend/commit/50ab53f4e1bc270af752ba8f38fdefa4ba55c2f3
to todays
https://github.com/tvheadend/tvheadend/commit/66de25a9a7211f89729cf779ba9146929e8624a5
tvheadend crashes during the second channel switch, to be exact when Kodi unscribes from the first channel:
2018-01-14 21:46:01.534 [ INFO] mpegts: 11493.75H in Astra 19.2E - tuning on Montage Technology M88DS3103 : DVB-S #0 2018-01-14 21:46:01.572 [ INFO] subscription: 0001: "127.0.0.1 [ | Kodi Media Center ]" subscribing on channel "Das Erste HD", weight: 150, adapter: "Montage Technology M88DS3103 : DVB-S #0", network: "Astra 19.2E", mux: "11493.75H", provider: "ARD", service: "Das Erste HD", profile="htsp", hostname="127.0.0.1", username="127.0.0.1", client="Kodi Media Center" [New LWP 6255] 2018-01-14 21:46:12.041 [ INFO] subscription: 0001: "127.0.0.1 [ | Kodi Media Center ]" unsubscribing from "Das Erste HD", hostname="127.0.0.1", username="127.0.0.1", client="Kodi Media Center" [LWP 6255 exited] Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 5988] 0x00007ffff3fb4131 in pthread_join () from /lib/libpthread.so.0 (gdb) bt full #0 0x00007ffff3fb4131 in pthread_join () from /lib/libpthread.so.0 No symbol table info available. #1 0x000055555573e883 in profile_sharer_destroy (prch=0x55555983f780, prch@entry=0x55555983f810) at src/profile.c:970 prsh = 0x555556253580 psm = <optimized out> psm2 = <optimized out> #2 profile_chain_close (prch=prch@entry=0x55555983f780) at src/profile.c:1141 No locals. #3 0x000055555571175f in htsp_subscription_destroy (htsp=0x7fffea4aed50, hs=0x55555983f6f0) at src/htsp_server.c:381 ts = 0x55555a630d10 #4 0x0000555555713fbe in htsp_method_unsubscribe (htsp=0x7fffea4aed50, in=0x555559ba0b90) at src/htsp_server.c:2618 s = 0x55555983f6f0 sid = 7 #5 0x00005555557156af in htsp_read_loop (htsp=<optimized out>) at src/htsp_server.c:3285 method = 0x55555991509f "unsubscribe" #6 htsp_serve (fd=0, opaque=0x0, source=0x1a, self=0x0) at src/htsp_server.c:3423 htsp = {htsp_link = {le_next = 0x0, le_prev = 0x55555606fa68 <htsp_connections>}, htsp_fd = 26, htsp_peer = 0x555556204350, htsp_version = 25, htsp_logname = 0x55555628f0c0 "127.0.0.1 [ | Kodi Media Center ]", htsp_peername = 0x55555c890fb0 "127.0.0.1", htsp_username = 0x55555667ae90 "", htsp_clientname = 0x55555c89ace0 "Kodi Media Center", htsp_language = 0x55555c892870 "ger", htsp_epg_window = 2678400, htsp_epg_lastupdate = 1518641155, htsp_epg_timer = {mti_link = { le_next = 0x555556073b20 <satip_discovery_static_timer>, le_prev = 0x555556072c40 <dvr_disk_space_timer>}, mti_callback = 0x555555717710 <htsp_epg_window_cb>, mti_opaque = 0x7fffea4aed50, mti_expire = 1139706343}, htsp_async_mode = 3, htsp_async_link = { le_next = 0x0, le_prev = 0x55555606fa70 <htsp_async_connections>}, htsp_writer_thread = 140737122072384, htsp_writer_run = 1, htsp_active_output_queues = {tqh_first = 0x0, tqh_last = 0x7fffea4aee00}, htsp_out_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 1, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 12 times>, "\001", '\000' <repeats 26 times>, __align = 0}, htsp_out_cond = { cond = {__data = {__lock = 0, __futex = 78317, __total_seq = 39159, __wakeup_seq = 39158, __woken_seq = 39158, __mutex = 0x7fffea4aee10, __nwaiters = 2, __broadcast_seq = 0}, __size = "\000\000\000\000\355\061\001\000\367\230\000\000\000\000\000\000\366\230\000\000\000\000\000\000\366\230\000\000\000\000\000\000\020\356J\352\377\177\000\000\002\000\000\000\000\000\000", __align = 336368953720832}}, htsp_hmq_ctrl = {hmq_q = {tqh_first = 0x0, tqh_last = 0x7fffea4aee68}, hmq_link = {tqe_next = 0x0, tqe_prev = 0x7fffea4aee00}, hmq_strict_prio = 0, hmq_length = 0, hmq_payload = 0, hmq_dead = 0}, htsp_hmq_epg = {hmq_q = {tqh_first = 0x0, tqh_last = 0x7fffea4aee98}, ---Type <return> to continue, or q <return> to quit--- hmq_link = {tqe_next = 0x0, tqe_prev = 0x0}, hmq_strict_prio = 0, hmq_length = 0, hmq_payload = 0, hmq_dead = 0}, htsp_hmq_qstatus = {hmq_q = {tqh_first = 0x0, tqh_last = 0x7fffea4aeec8}, hmq_link = { tqe_next = 0x55555983f900, tqe_prev = 0x7fffea4aee00}, hmq_strict_prio = 1, hmq_length = 0, hmq_payload = 0, hmq_dead = 0}, htsp_subscriptions = {lh_first = 0x0}, htsp_dead_subscriptions = { lh_first = 0x55555983f6f0}, htsp_files = {lh_first = 0x0}, htsp_file_id = 0, htsp_granted_access = 0x55555616ab10, htsp_challenge = "#\\\331|g\347\212\206\240\246?\230\254\375\206\000p\016\245\376\000.\250\244\315\064\211pe\264\314."} buf = "127.0.0.1", '\000' <repeats 40 times> hmq = 0x1a hf = 0x0 #7 0x00005555556ebed0 in tcp_server_start (aux=0x555556204310) at src/tcp.c:709 tsl = 0x555556204310 to = {tv_sec = 30, tv_usec = 0} val = 1 c = 74 'J' #8 0x00005555556e7604 in thread_wrapper (p=0x555556205900) at src/wrappers.c:181 ts = 0x555556205900 set = {__val = {16388}} r = <optimized out> #9 0x00007ffff3fb525e in start_thread () from /lib/libpthread.so.0 No symbol table info available. #10 0x00007ffff3fae9e9 in clone () from /lib/libpthread.so.0 No symbol table info available.