Bug #3717
4.1-1870~g1cc14cd~trusty crash trying to expand HDHomerun tv adapter
100%
Description
Please see below the crash. Steps to reproduce the error are just restart tvheadend, go to input tab and try to expand the tv adapter, then the crash is inmediate.
2016-04-12 11:29:40.940 [ TRACE]:http: HTTP/1.1 POST /api/hardware/tree?uuid=root{{Host=192.168.10.20:9981,User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:45.0) Gecko/20100101 Fire$ 2016-04-12 11:29:40.940 [ TRACE]:access: admin:admin [SATWRELDF *], conn=0:s0:r0:l2, matched, profile=ANY, dvr=ANY, tag=ANY 2016-04-12 11:29:40.940 [ ALERT]:CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.1-1870~g1cc14cd~trusty) [ae2b7538121f108ac53e5755b468fd8481fa43fa] CWD: /home/user 2016-04-12 11:29:40.940 [ ALERT]:CRASH: Fault address (nil) (N/A) 2016-04-12 11:29:40.940 [ ALERT]:CRASH: Loaded libraries: /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/x86_64-li$ 2016-04-12 11:29:40.940 [ ALERT]:CRASH: Register dump [23]: 00000000000000000000000000000000000000000000000000007f84e9b1d2400000000000f5059800007f847c002cc00000000000f5059800007f84b4000a1$ 2016-04-12 11:29:40.940 [ ALERT]:CRASH: STACKTRACE 2016-04-12 11:29:40.974 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #1 (192.168.10.8) got 19740 bytes 2016-04-12 11:29:41.051 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #0 (192.168.10.8) got 3948 bytes 2016-04-12 11:29:41.051 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #1 (192.168.10.8) got 3948 bytes 2016-04-12 11:29:41.145 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/trap.c:148 0x475cc9 2016-04-12 11:29:41.147 [ ALERT]:CRASH: ??:0 0x7f84ea602d10 2016-04-12 11:29:41.147 [ ALERT]:CRASH: strlen+0x2a (/lib/x86_64-linux-gnu/libc.so.6) 2016-04-12 11:29:41.259 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/htsmsg.c:357 0x46ed85 2016-04-12 11:29:41.359 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #1 (192.168.10.8) got 19740 bytes 2016-04-12 11:29:41.371 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/prop.c:339 0x43e933 2016-04-12 11:29:41.416 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #0 (192.168.10.8) got 19740 bytes 2016-04-12 11:29:41.482 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/prop.c:535 0x43ed35 2016-04-12 11:29:41.594 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/prop.c:553 (discriminator 2) 0x43f8fb 2016-04-12 11:29:41.666 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #1 (192.168.10.8) got 19740 bytes 2016-04-12 11:29:41.705 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/idnode.c:1253 0x43b4e7 2016-04-12 11:29:41.771 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #0 (192.168.10.8) got 19740 bytes 2016-04-12 11:29:41.817 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/api/api_idnode.c:566 0x497dfe 2016-04-12 11:29:41.929 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/webui/webui_api.c:43 0x4c62e1 2016-04-12 11:29:42.011 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #1 (192.168.10.8) got 19740 bytes 2016-04-12 11:29:42.041 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/http.c:891 0x44b380 2016-04-12 11:29:42.126 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #0 (192.168.10.8) got 19740 bytes 2016-04-12 11:29:42.153 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/http.c:1027 0x44c1d1 2016-04-12 11:29:42.174 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #0 (192.168.10.8) got 2632 bytes 2016-04-12 11:29:42.175 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #1 (192.168.10.8) got 7896 bytes 2016-04-12 11:29:42.265 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/http.c:1160 0x44b8db 2016-04-12 11:29:42.376 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/http.c:1450 0x44c4dd 2016-04-12 11:29:42.488 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/http.c:1498 0x44c5a6 2016-04-12 11:29:42.503 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #0 (192.168.10.8) got 19740 bytes 2016-04-12 11:29:42.503 [ TRACE]:mpegts: input HDHomeRun DVB-T Tuner #1 (192.168.10.8) got 19740 bytes 2016-04-12 11:29:42.600 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/tcp.c:645 0x4450cd 2016-04-12 11:29:42.711 [ ALERT]:CRASH: /tmp/buildd/tvheadend-4.1/src/wrappers.c:159 0x440e6e
History
Updated by David jrm over 8 years ago
Jaroslav Kysela wrote:
Could you do backtrace in gdb ?
See below the trace where the crash happen.
2016-04-12 15:43:56.676 [ INFO] AVAHI: Service 'Tvheadend' successfully established.
[Thread 0x7fffbffff700 (LWP 2039) terminado]
[Nuevo Thread 0x7fffbffff700 (LWP 2040)]
[Nuevo Thread 0x7fffbf7fe700 (LWP 2041)]
[Nuevo Thread 0x7fffbeffd700 (LWP 2042)]
[Nuevo Thread 0x7fffbe7fc700 (LWP 2043)]
[Nuevo Thread 0x7fffbdffb700 (LWP 2044)]
[Nuevo Thread 0x7fffbd7fa700 (LWP 2045)]
[Thread 0x7fffcbfff700 (LWP 2032) terminado]
Program received signal SIGSEGV, Segmentation fault.
[Cambiando a Thread 0x7fffbffff700 (LWP 2040)]
strlen () at ../sysdeps/x86_64/strlen.S:106
106 ../sysdeps/x86_64/strlen.S: No existe el archivo o el directorio.
Updated by David jrm over 8 years ago
See below the trace where the crash happen.
2016-04-12 15:43:56.676 [ INFO] AVAHI: Service 'Tvheadend' successfully established.
[Thread 0x7fffbffff700 (LWP 2039) terminado]
[Nuevo Thread 0x7fffbffff700 (LWP 2040)]
[Nuevo Thread 0x7fffbf7fe700 (LWP 2041)]
[Nuevo Thread 0x7fffbeffd700 (LWP 2042)]
[Nuevo Thread 0x7fffbe7fc700 (LWP 2043)]
[Nuevo Thread 0x7fffbdffb700 (LWP 2044)]
[Nuevo Thread 0x7fffbd7fa700 (LWP 2045)]
[Thread 0x7fffcbfff700 (LWP 2032) terminado]
Program received signal SIGSEGV, Segmentation fault.
[Cambiando a Thread 0x7fffbffff700 (LWP 2040)]
strlen () at ../sysdeps/x86_64/strlen.S:106
106 ../sysdeps/x86_64/strlen.S: No existe el archivo o el directorio.
(gdb) backtrace
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
#1 0x000000000046ef45 in ?? ()
#2 0x000000000043eaf3 in ?? ()
#3 0x000000000043eef5 in ?? ()
#4 0x000000000043fabb in ?? ()
#5 0x000000000043b6a7 in ?? ()
#6 0x000000000049815e in ?? ()
#7 0x00000000004c6641 in ?? ()
#8 0x000000000044b540 in ?? ()
#9 0x000000000044c391 in ?? ()
#10 0x000000000044ba9b in ?? ()
#11 0x000000000044c69d in ?? ()
#12 0x000000000044c766 in ?? ()
#13 0x000000000044528d in ?? ()
#14 0x000000000044102e in ?? ()
#15 0x00007ffff66656aa in start_thread (arg=0x7fffbbfff700) at pthread_create.c:333
#16 0x00007ffff5b08e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Updated by Jaroslav Kysela over 8 years ago
You should use tvh binary with symbols and type 'bt full' in gdb to see the arguments passed to functions like described in https://tvheadend.org/projects/tvheadend/wiki/Debugging .
Updated by David jrm over 8 years ago
Jaroslav Kysela wrote:
You should use tvh binary with symbols and type 'bt full' in gdb to see the arguments passed to functions like described in https://tvheadend.org/projects/tvheadend/wiki/Debugging .
Sorry for that but really noob debugging Is the below what you are asking?
(gdb) bt full #0 strlen () at ../sysdeps/x86_64/strlen.S:106 No locales. #1 0x000000000046ef45 in ?? () No symbol table info available. #2 0x000000000043eaf3 in ?? () No symbol table info available. #3 0x000000000043eef5 in ?? () No symbol table info available. #4 0x000000000043fabb in ?? () No symbol table info available. #5 0x000000000043b6a7 in ?? () No symbol table info available. #6 0x000000000049815e in ?? () No symbol table info available. #7 0x00000000004c6641 in ?? () No symbol table info available. #8 0x000000000044b540 in ?? () No symbol table info available. #9 0x000000000044c391 in ?? () No symbol table info available. #10 0x000000000044ba9b in ?? () No symbol table info available. #11 0x000000000044c69d in ?? () No symbol table info available. #12 0x000000000044c766 in ?? () No symbol table info available. #13 0x000000000044528d in ?? () No symbol table info available. #14 0x000000000044102e in ?? () No symbol table info available. #15 0x00007ffff66656aa in start_thread (arg=0x7fffc0ff9700) at pthread_create.c:333 __res = <optimized out> pd = 0x7fffc0ff9700 now = <optimized out> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736431363840, -460698710663495683, 0, 140737035340303, 8388608, 140736615943520, 460709707517788157, 460678029072531453}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = <optimized out> pagesize_m1 = <optimized out> sp = <optimized out> freesize = <optimized out> __PRETTY_FUNCTION__ = "start_thread" #16 0x00007ffff5b08e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 No locales.
Updated by Jaroslav Kysela over 8 years ago
No symbol table info available.
Unfortunately, your tvh binary is not compiled with the debugging symbols. You should install the debug version of tvh. Otherwise, the 'bt full' output seems right.
Updated by Anonymous over 8 years ago
My HDhomerun isn't working anymore with tvheadend_4.1-1853~g0b69407~precise_amd64.deb
(Ubuntu 15.10 x64)
Updated by David jrm over 8 years ago
Jaroslav Kysela wrote:
[...]
Unfortunately, your tvh binary is not compiled with the debugging symbols. You should install the debug version of tvh. Otherwise, the 'bt full' output seems right.
I have the debug version installed, however I get always the above... I have tried reinstalling tvheadend and deb package but outcome still the same....
Updated by David jrm over 8 years ago
abde . wrote:
My HDhomerun isn't working anymore with tvheadend_4.1-1853~g0b69407~precise_amd64.deb
(Ubuntu 15.10 x64)
I have this working in 4.1.1859 without issues. Have you tried this?
Updated by Anonymous over 8 years ago
abde . wrote:
My HDhomerun isn't working anymore with tvheadend_4.1-1853~g0b69407~precise_amd64.deb
(Ubuntu 15.10 x64)
Eh must be tvheadend_4.1-1882~gf4f261d~precise_amd64.deb
Updated by David jrm over 8 years ago
Jaroslav Kysela wrote:
[...]
Unfortunately, your tvh binary is not compiled with the debugging symbols. You should install the debug version of tvh. Otherwise, the 'bt full' output seems right.
Please see below (now I got the deb symbols), the same happen with git 1882
(gdb) bt full #0 strlen () at ../sysdeps/x86_64/strlen.S:106 No locales. #1 0x000000000046ee15 in htsmsg_add_str (msg=msg@entry=0x7fffac001820, name=name@entry=0xf50798 "value", str=0x5001a8c000000002 <error: No se puede acceder a la memoria en la dirección 0x5001a8c000000002>) at src/htsmsg.c:357 f = <optimized out> #2 0x000000000043e933 in prop_read_value (obj=obj@entry=0x7fffdc000950, p=p@entry=0xff6a30 <__compound_literal.0+112>, m=m@entry=0x7fffac001820, name=name@entry=0xf50798 "value", optmask=optmask@entry=0, lang=lang@entry=0x0) at src/prop.c:339 s = <optimized out> val = 0x7fffdc000a10 u32 = <optimized out> buf = "(\000\000\000\000\000\000\000\a\000\000\000\004\000\000\000\351\265\365\000\000\000\000" __PRETTY_FUNCTION__ = "prop_read_value" #3 0x000000000043ed35 in prop_serialize_value (obj=0x7fffdc000950, pl=0xff6a30 <__compound_literal.0+112>, msg=0x7fffac0017f0, optmask=0, lang=0x0) at src/prop.c:535 buf = '\000' <repetidos 15 veces> opts = <optimized out> m = 0x7fffac001820 lang = 0x0 optmask = 0 msg = 0x7fffac0017f0 pl = 0xff6a30 <__compound_literal.0+112> obj = 0x7fffdc000950 f = <optimized out> #4 0x000000000043f8fb in prop_serialize (obj=obj@entry=0x7fffdc000950, pl=0xff6a30 <__compound_literal.0+112>, msg=msg@entry=0x7fffac0017f0, list=list@entry=0x0, optmask=optmask@entry=0, lang=lang@entry=0x0) at src/prop.c:553 No locales. #5 0x0000000000438bbc in add_params (self=self@entry=0x7fffdc000950, p=p@entry=0x7fffac0017f0, list=list@entry=0x0, optmask=optmask@entry=0, lang=lang@entry=0x0, ic=<optimized out>, ic=<optimized out>) at src/idnode.c:1244 No locales. #6 0x000000000043b4e7 in idnode_params (lang=0x0, optmask=0, list=0x0, self=0x7fffdc000950, idc=0xff6920 <tvhdhomerun_device_class>) at src/idnode.c:1253 p = 0x7fffac0017f0 #7 idnode_serialize0 (self=0x7fffdc000950, list=list@entry=0x0, optmask=optmask@entry=0, lang=0x0) at src/idnode.c:1490 idc = 0xff6920 <tvhdhomerun_device_class> s = <optimized out> ubuf = "a79b2500b95e9d65ac3bd85c809395de" m = 0x7fffac001560 #8 0x0000000000497e8e in api_idnode_tree (perm=0x7fffac000ba0, opaque=<optimized out>, op=<optimized out>, args=<optimized out>, resp=0x7fffbf7fd638) at src/api/api_idnode.c:566 in = 0x7fffdc000950 m = <optimized out> i = 0 v = 0x7fffac000cf0 uuid = <optimized out> root = <optimized out> node = <optimized out> rootfn = <optimized out> #9 0x00000000004c6371 in webui_api_handler (hc=0x7fffbf7fd950, remain=0x7fffac000a0a "hardware/tree", opaque=<optimized out>) at src/webui/webui_api.c:43 r = <optimized out> ha = 0x0 args = 0x7fffac0008c0 resp = 0x7fffac000cc0 #10 0x000000000044b380 in http_exec (hc=hc@entry=0x7fffbf7fd950, hp=0x173b3d0, remain=0x7fffac000a0a "hardware/tree") at src/http.c:891 err = <optimized out> #11 0x000000000044c1d1 in http_cmd_post (spill=<optimized out>, hc=0x7fffbf7fd950) at src/http.c:1027 hp = <optimized out> remain = 0x7fffac000a0a "hardware/tree" args = 0x0 v = <optimized out> #12 http_process_request (hc=0x7fffbf7fd950, spill=<optimized out>) at src/http.c:1049 No locales. #13 0x000000000044b8db in process_request (hc=hc@entry=0x7fffbf7fd950, spill=spill@entry=0x7fffbf7fd8d0) at src/http.c:1160 v = <optimized out> argv = {0x0, 0x0} n = <optimized out> rval = -1 authbuf = "192.168.1.250\000\000\000[\000\000\000n", '\000' <repetidos 19 veces>, "w\000\000\000|\000\000\000\320\331\177\277\377\177\000\000 \000\000\254\377\177\000\000\v\000\000\000\000\000\000\000\314\017\000\254\377\177\000\000\300\017\000\254\377\177\000\000\031TG\000\000\000\000\000\002\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\320\330\177\277\377\177\000\000\300\017\000\254\377\177\000\000\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\300\017\000\254\377\177" #14 0x000000000044c4dd in http_serve_requests (hc=hc@entry=0x7fffbf7fd950) at src/http.c:1450 spill = {hq_q = {tqh_first = 0x0, tqh_last = 0x7fffbf7fd8d0}, hq_size = 0, hq_maxsize = 2147483647} argv = {0x7fffac000fc0 "", 0x7fffac000fcc "keep-alive", 0x7fffac000a18 "HTTP/1.1"} c = <optimized out> cmdline = 0x7fffac000a00 "POST" hdrline = 0x7fffac000fc0 "" n = <optimized out> r = <optimized out> #15 0x000000000044c5a6 in http_serve (fd=32, opaque=0x7fffcc0011b8, peer=0x7fffcc0011d0, self=0x7fffcc001250) at src/http.c:1498 hc = {hc_fd_lock = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repetidos 39 veces>, __align = 0}, hc_fd = 32, hc_peer = 0x7fffcc0011d0, hc_peer_ipstr = 0x7fffbf7fd710 "192.168.1.250", hc_self = 0x7fffcc001250, hc_representative = 0x7fffbf7fd710 "192.168.1.250", hc_paths_mutex = 0x14d4600 <http_paths_mutex>, hc_paths = 0x14d45e0 <http_paths>, hc_process = 0x44c050 <http_process_request>, hc_url = 0x7fffac000a05 "/api/hardware/tree", hc_url_orig = 0x7fffbf7fd730 "/api/hardware/tree", hc_keep_alive = 1, hc_reply = {hq_q = {tqh_first = 0x0, tqh_last = 0x7fffbf7fd9d0}, hq_size = 0, hq_maxsize = 2147483647}, hc_args = { tqh_first = 0x7fffac001110, tqh_last = 0x7fffac000b30}, hc_req_args = {tqh_first = 0x7fffac000ab0, tqh_last = 0x7fffac000ad0}, hc_state = HTTP_CON_WAIT_REQUEST, hc_cmd = HTTP_CMD_POST, hc_version = HTTP_VERSION_1_1, hc_username = 0x0, hc_password = 0x0, hc_authhdr = 0x0, hc_nonce = 0x0, hc_access = 0x7fffac000ba0, hc_user_config = 0x0, hc_no_output = 0, hc_logout_cookie = 0, hc_shutdown = 0, hc_cseq = 0, hc_session = 0x0, hc_post_data = 0x7fffac000b80 "uuid", hc_post_len = 9} #16 0x00000000004450cd in tcp_server_start (aux=0x7fffcc001190) at src/tcp.c:645 tsl = 0x7fffcc001190 to = {tv_sec = 30, tv_usec = 0} val = 1 c = 74 'J' #17 0x0000000000440e6e in thread_wrapper (p=0x7fffcc001310) at src/wrappers.c:159 ts = 0x7fffcc001310 set = {__val = {16388, 0 <repeats 15 times>}} r = <optimized out> #18 0x00007ffff68786aa in start_thread (arg=0x7fffbf7fe700) at pthread_create.c:333 __res = <optimized out> pd = 0x7fffbf7fe700 now = <optimized out> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736406218496, -7934199732096209947, 0, 140737035340303, 140736406219200, 0, 7934060095320091621, 7934184132559367141}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = <optimized out> pagesize_m1 = <optimized out> sp = <optimized out> freesize = <optimized out> __PRETTY_FUNCTION__ = "start_thread" #19 0x00007ffff5d1be9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 No locales.
Updated by Anonymous over 8 years ago
I'v install tvheadend_4.1-1892~g616413f~precise_amd64.deb in a new VM ubuntu 15.10 x64 and HDhomerun
Get this crash after chosing config/apdapter window..
● tvheadend.service - (null)
Loaded: loaded (/etc/init.d/tvheadend)
Active: active (exited) since Thu 2016-04-14 15:22:17 CEST; 1min 59s ago
Docs: man:systemd-sysv-generator(8)
Process: 3625 ExecStop=/etc/init.d/tvheadend stop (code=exited, status=0/SUCCESS)
Process: 3661 ExecStart=/etc/init.d/tvheadend start (code=exited, status=0/SUCCESS)
Apr 14 15:23:14 tvh1510c tvheadend3667: CRASH: ??:0 0x43a549
Apr 14 15:23:14 tvh1510c tvheadend3667: CRASH: ??:0 0x498b61
Apr 14 15:23:14 tvh1510c tvheadend3667: CRASH: ??:0 0x4c71cf
Apr 14 15:23:14 tvh1510c tvheadend3667: CRASH: ??:0 0x44a7c2
Apr 14 15:23:14 tvh1510c tvheadend3667: CRASH: ??:0 0x44b64d
Apr 14 15:23:14 tvh1510c tvheadend3667: CRASH: ??:0 0x44aceb
Apr 14 15:23:14 tvh1510c tvheadend3667: CRASH: ??:0 0x44b90d
Apr 14 15:23:14 tvh1510c tvheadend3667: CRASH: ??:0 0x44ba46
Apr 14 15:23:15 tvh1510c tvheadend3667: CRASH: ??:0 0x4445cd
Apr 14 15:23:15 tvh1510c tvheadend3667: CRASH: ??:0 0x440268
with dgb had i'v stuck..
Updated by Jaroslav Kysela over 8 years ago
@David jrm: could you reproduce, enter 'bt full' and 'frame 3' and 'print *pl' commands in gdb..
Updated by Anonymous over 8 years ago
Jaroslav Kysela wrote:
@David jrm: could you reproduce, enter 'bt full' and 'frame 3' and 'print *pl' commands in gdb..
Can i help?
Updated by Set ti over 8 years ago
Same error here with tvheadend-git-4.1.r1892.g616413f running on archlinuxarm on imx.6 socket with armv7h cpu.
GNU gdb (GDB) 7.11 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "armv7l-unknown-linux-gnueabihf". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from tvheadend...done. [New LWP 29995] [New LWP 29943] [New LWP 29930] [New LWP 29941] [New LWP 30002] [New LWP 29938] [New LWP 29936] [New LWP 29947] [New LWP 29933] [New LWP 29939] [New LWP 29935] [New LWP 29954] [New LWP 29937] [New LWP 29955] [New LWP 29934] [New LWP 29959] [New LWP 29940] [New LWP 29931] [New LWP 29956] [New LWP 29968] [New LWP 29929] [New LWP 29942] [New LWP 30004] [New LWP 29962] [New LWP 29944] [New LWP 29996] [New LWP 29963] [New LWP 30006] [New LWP 29964] [New LWP 29960] [New LWP 29945] [New LWP 29961] [New LWP 29998] [New LWP 29967] [New LWP 29932] [New LWP 29966] [New LWP 29925] [New LWP 29965] [New LWP 29957] [New LWP 29926] [New LWP 29958] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `/usr/bin/tvheadend -p /run/tvheadend.pid -C -u hts -g video -l /tmp/tvheadend.l'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x756a212e in strlen () from /usr/lib/libc.so.6 [Current thread is 1 (Thread 0x60fff0b0 (LWP 29995))] (gdb) set logging on Copying output to gdb.txt. (gdb) set pagination off (gdb) bt full #0 0x756a212e in strlen () from /usr/lib/libc.so.6 No symbol table info available. #1 0x00056198 in htsmsg_add_str (msg=0x717012c0, msg@entry=0x7569cfc8 <malloc+100>, name=name@entry=0x11f8d0 "value", str=0x2 <error: Cannot access memory at address 0x2>) at src/htsmsg.c:357 f = <optimized out> #2 0x00026508 in prop_read_value (obj=obj@entry=0x71602df8, p=p@entry=0x1b8d98 <__compound_literal.0+72>, m=0x7569cfc8 <malloc+100>, m@entry=0x717012c0, name=name@entry=0x11f8d0 "value", optmask=optmask@entry=0, lang=lang@entry=0x71700540 "ger") at src/prop.c:339 s = <optimized out> val = <optimized out> u32 = <optimized out> buf = "\a\000\000\000\300\022pq\364]\005\000\004\000\000\000\001\000\000\000\230\215\033" __PRETTY_FUNCTION__ = "prop_read_value" #3 0x00026970 in prop_serialize_value (obj=0x71602df8, pl=0x1b8d98 <__compound_literal.0+72>, msg=0x717012a8, optmask=0, lang=0x71700540 "ger") at src/prop.c:535 buf = '\000' <repeats 12 times>, "\003\000\000" opts = 6 m = 0x717012c0 lang = 0x71700540 "ger" optmask = 0 msg = 0x717012a8 pl = 0x1b8d98 <__compound_literal.0+72> obj = 0x71602df8 f = <optimized out> #4 0x00027580 in prop_serialize (obj=obj@entry=0x71602df8, pl=0x1b8d98 <__compound_literal.0+72>, msg=msg@entry=0x717012a8, list=0x0, optmask=0, lang=0x71700540 "ger") at src/prop.c:553 No locals. #5 0x000206bc in add_params (self=self@entry=0x71602df8, p=p@entry=0x717012a8, list=list@entry=0x0, optmask=1903166784, optmask@entry=0, lang=lang@entry=0x71700540 "ger", ic=0x1b8d00 <tvhdhomerun_device_class>, ic=0x1b8d00 <tvhdhomerun_device_class>) at src/idnode.c:1244 No locals. #6 0x00023224 in idnode_params (lang=0x71700540 "ger", optmask=0, list=0x0, self=0x71602df8, idc=0x1b8d00 <tvhdhomerun_device_class>) at src/idnode.c:1253 p = 0x717012a8 #7 idnode_serialize0 (self=0x71602df8, list=list@entry=0x0, optmask=optmask@entry=0, lang=0x71700540 "ger") at src/idnode.c:1501 idc = 0x1b8d00 <tvhdhomerun_device_class> ubuf = "704b63f9eea288ed49ddc727b0fdc199" m = 0x717007c8 #8 0x0007c2dc in api_idnode_tree (perm=perm@entry=0x717004b8, opaque=<optimized out>, op=<optimized out>, args=args@entry=0x717005b0, resp=resp@entry=0x60ffe6f4) at src/api/api_idnode.c:566 in = 0x71602df8 m = <optimized out> i = 0 v = 0x71700618 uuid = <optimized out> root = <optimized out> isroot = <optimized out> node = <optimized out> rootfn = <optimized out> #9 0x0007b750 in api_exec (perm=0x717004b8, subsystem=subsystem@entry=0x7170086a "hardware/tree", args=args@entry=0x717005b0, resp=0x60ffe6f4, resp@entry=0x60ffe6ec) at src/api.c:97 ah = <optimized out> skel = {hook = <synthetic pointer>, link = {left = <optimized out>, right = <optimized out>, parent = <optimized out>, color = <optimized out>}} op = <optimized out> #10 0x000a8ed8 in webui_api_handler (hc=0x60ffe910, remain=0x7170086a "hardware/tree", opaque=<optimized out>) at src/webui/webui_api.c:43 r = <optimized out> ha = 0x0 args = 0x717005b0 resp = 0x71700600 #11 0x00032458 in http_exec (hc=hc@entry=0x60ffe910, hp=hp@entry=0x719b88, remain=0x7170086a "hardware/tree") at src/http.c:891 err = <optimized out> #12 0x000332dc in http_cmd_post (spill=<optimized out>, hc=0x60ffe910) at src/http.c:1027 hp = 0x719b88 remain = 0x7170086a "hardware/tree" args = 0x0 v = <optimized out> #13 http_process_request (hc=0x60ffe910, spill=<optimized out>) at src/http.c:1049 No locals. #14 0x000328dc in process_request (hc=hc@entry=0x60ffe910, spill=0x60ffe8d8, spill@entry=0x60ffe8d0) at src/http.c:1160 v = <optimized out> argv = {0x75767000 "\030\217\023", 0xae <error: Cannot access memory at address 0xae>} n = <optimized out> rval = -1 authbuf = "10.0.0.5\000\034\000\000l\351\377``\bpq\211\003\000\000\260\265iu rvui\000\000\000>\034\000\000\000\000\000\000 rvu\002\000\000\000\002", '\000' <repeats 20 times>, "pvu\001\000\000\000\000pvu[\000\000\000n\000\000\000w\000\000\000|\000\000\000>\034\000\000\000\000\000\000\230)pq\000\000\000\000\330\350\377`\000\000\000\000\330\350\377`\001\000\000\000\350\003\000\000\000\000\000\000l\351\377``\bpq", <incomplete sequence \351> #15 0x000334e4 in http_serve_requests (hc=hc@entry=0x60ffe910) at src/http.c:1450 spill = {hq_q = {tqh_first = 0x0, tqh_last = 0x60ffe8d8}, hq_size = 0, hq_maxsize = 2147483647} argv = {0x71702998 "\200\003pq\200\003pq\220)pq\220)pqeVer=5; pma_lang=de; pma_collation_connection=utf8_unicode_ci; pma_iv-1=l0v6Tyy9DfhkPs8quSLmAA%3D%3D; pmaUser-1=%2FRb3csCOXfGka5DoB%2FmzXg%3D%3D; ys-api/mpegts/network=o%3Acolumns%3Da%"..., 0x717029a0 "\220)pq\220)pqeVer=5; pma_lang=de; pma_collation_connection=utf8_unicode_ci; pma_iv-1=l0v6Tyy9DfhkPs8quSLmAA%3D%3D; pmaUser-1=%2FRb3csCOXfGka5DoB%2FmzXg%3D%3D; ys-api/mpegts/network=o%3Acolumns%3Da%253Ao%25"..., 0x71700878 "HTTP/1.1"} c = <optimized out> cmdline = 0x71700860 "POST" hdrline = 0x71700c30 "" n = <optimized out> r = <optimized out> #16 0x0003360c in http_serve (fd=38, opaque=opaque@entry=0x72806020, peer=peer@entry=0x7280602c, self=self@entry=0x728060ac) at src/http.c:1498 hc = {hc_fd_lock = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 0, {__spins = 0, __list = {__next = 0x0}}}, __size = '\000' <repeats 23 times>, __align = 0}, hc_fd = 38, hc_peer = 0x7280602c, hc_peer_ipstr = 0x60ffe778 "10.0.0.5", hc_self = 0x728060ac, hc_representative = 0x60ffe778 "10.0.0.5", hc_paths_mutex = 0x211154 <http_paths_mutex>, hc_paths = 0x21116c <http_paths>, hc_process = 0x3314c <http_process_request>, hc_url = 0x71700865 "/api/hardware/tree", hc_url_orig = 0x60ffe788 "/api/hardware/tree", hc_keep_alive = 1, hc_reply = {hq_q = {tqh_first = 0x0, tqh_last = 0x60ffe954}, hq_size = 0, hq_maxsize = 2147483647}, hc_args = {tqh_first = 0x717008d0, tqh_last = 0x71700cc0}, hc_req_args = {tqh_first = 0x71700470, tqh_last = 0x71700480}, hc_state = HTTP_CON_WAIT_REQUEST, hc_cmd = HTTP_CMD_POST, hc_version = HTTP_VERSION_1_1, hc_username = 0x0, hc_password = 0x0, hc_authhdr = 0x0, hc_nonce = 0x0, hc_access = 0x717004b8, hc_user_config = 0x0, hc_no_output = 0, hc_logout_cookie = 0, hc_shutdown = 0, hc_cseq = 0, hc_session = 0x0, hc_post_data = 0x71700c40 "uuid", hc_post_len = 9} #17 0x0002c7f0 in tcp_server_start (aux=0x72806008) at src/tcp.c:645 tsl = 0x72806008 to = {tv_sec = 30, tv_usec = 0} val = 1 c = 74 'J' #18 0x00028ba4 in thread_wrapper (p=0x72805fc8) at src/wrappers.c:159 ts = 0x72805fc8 set = {__val = {16388, 0 <repeats 31 times>}} r = <optimized out> #19 0x75808f78 in start_thread () from /usr/lib/libpthread.so.0 No symbol table info available. #20 0x756fba80 in ?? () from /usr/lib/libc.so.6 No symbol table info available. Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) frame 3 #3 0x00026970 in prop_serialize_value (obj=0x71602df8, pl=0x1b8d98 <__compound_literal.0+72>, msg=0x717012a8, optmask=0, lang=0x71700540 "ger") at src/prop.c:535 535 prop_read_value(obj, pl, m, "value", optmask, lang); (gdb) print *pl $1 = {id = 0x1b90f4 "ip_address", name = 0x14cb90 "IP address", desc = 0x0, type = PT_STR, islist = 0 '\000', group = 0 '\000', off = 120, opts = 6, intextra = 0, get = 0x0, set = 0x0, list = 0x0, rend = 0x0, def = {i = 0, s = 0x0, u16 = 0, u32 = 0, s64 = 0, d = 0, tm = 0, list = 0x0}, get_opts = 0x0, doc = 0x0, notify = 0x0}
Updated by David jrm over 8 years ago
Set ti wrote:
Same error here with tvheadend-git-4.1.r1892.g616413f running on archlinuxarm on imx.6 socket with armv7h cpu.
[...]
Thanks @Set
@Jaroslav Kysela the above is enough for you? or do you still requiring the same for me?
I have an additional issue now, it seems when I try to run TVH manually a new config folder is created for hts in my user home directory, so /home/myuser/.hts/tvheadend/ instead the one I had as usual in /home/hts/.hts/tvheadend/. Even I manually delete this folder, it is created once again just when it is executed manually, but not from the service. So Im unable to make the gdb stuff as the config is not valid and cannot login etc....
Updated by J P over 8 years ago
Hello, I am experiencing the exact same problem. TVH crashes every time I want to open the DVB Input tab. I've looked back over the commits concerning the tvhdhomerun implementation that have been done between 11 april and today, and reverted them one by one. Eventually, when I reverted following commit, it all started working again; https://github.com/tvheadend/tvheadend/commit/7de84304d3f978fa565fbbdc44a0c9de642c2b5b.
So the problem seems to be introduced as of this commit. Hope this helps!
Updated by J P over 8 years ago
Quick-fix for anyone who wants to get up and running again:
git revert 7de84304d3f978fa565fbbdc44a0c9de642c2b5b
On your Git-installation of TVH, and then make. ;-)
Updated by David jrm over 8 years ago
Jorrit Pouw wrote:
Quick-fix for anyone who wants to get up and running again:
git revert 7de84304d3f978fa565fbbdc44a0c9de642c2b5b
On your Git-installation of TVH, and then make. ;-)
Im running the package version, so just back to v. 4.1.1859 and running properly
Updated by Set ti over 8 years ago
Jorrit Pouw wrote:
Quick-fix for anyone who wants to get up and running again:
git revert 7de84304d3f978fa565fbbdc44a0c9de642c2b5b
On your Git-installation of TVH, and then make. ;-)
Reverting that single commit did not help!
Updated by Set ti over 8 years ago
The commit causing the above issue is https://github.com/tvheadend/tvheadend/commit/58966cdf8c3c1e7cf88d056b05c6cd2ab4160b52
So
git revert -n 58966cdf8c3c1e7cf88d056b05c6cd2ab4160b52will do its job, when using master branch.
Updated by Jaroslav Kysela over 8 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|0e5fc7c396d280f90b2dd23a62f71ca103de153b.
Updated by Set ti over 8 years ago
Bug still exists.
(gdb) bt full #0 0x7562512e in strlen () from /usr/lib/libc.so.6 No symbol table info available. #1 0x00056198 in htsmsg_add_str (msg=0x71704da8, msg@entry=0x7561ffc8 <malloc+100>, name=name@entry=0x11f9f8 "value", str=0x2e323931 <error: Cannot access memory at address 0x2e323931>) at src/htsmsg.c:357 f = <optimized out> #2 0x00026508 in prop_read_value (obj=obj@entry=0x71702df8, p=p@entry=0x1b8ec0 <__compound_literal.0+72>, m=0x7561ffc8 <malloc+100>, m@entry=0x71704da8, name=name@entry=0x11f9f8 "value", optmask=optmask@entry=0, lang=lang@entry=0x71704430 "ger") at src/prop.c:339 s = <optimized out> val = <optimized out> u32 = <optimized out> buf = "\a\000\000\000\250Mpq\364]\005\000\004\000\000\000\001\000\000\000\300\216\033" __PRETTY_FUNCTION__ = "prop_read_value" #3 0x00026970 in prop_serialize_value (obj=0x71702df8, pl=0x1b8ec0 <__compound_literal.0+72>, msg=0x71704d90, optmask=0, lang=0x71704430 "ger") at src/prop.c:535 buf = '\000' <repeats 12 times>, "\003\000\000" opts = 6 m = 0x71704da8 lang = 0x71704430 "ger" optmask = 0 msg = 0x71704d90 pl = 0x1b8ec0 <__compound_literal.0+72> obj = 0x71702df8 f = <optimized out> #4 0x00027580 in prop_serialize (obj=obj@entry=0x71702df8, pl=0x1b8ec0 <__compound_literal.0+72>, msg=msg@entry=0x71704d90, list=0x0, optmask=0, lang=0x71704430 "ger") at src/prop.c:553 No locals. #5 0x000206bc in add_params (self=self@entry=0x71702df8, p=p@entry=0x71704d90, list=list@entry=0x0, optmask=1903182896, optmask@entry=0, lang=lang@entry=0x71704430 "ger", ic=0x1b8e28 <tvhdhomerun_device_class>, ic=0x1b8e28 <tvhdhomerun_device_class>) at src/idnode.c:1244 No locals. #6 0x00023224 in idnode_params (lang=0x71704430 "ger", optmask=0, list=0x0, self=0x71702df8, idc=0x1b8e28 <tvhdhomerun_device_class>) at src/idnode.c:1253 p = 0x71704d90 #7 idnode_serialize0 (self=0x71702df8, list=list@entry=0x0, optmask=optmask@entry=0, lang=0x71704430 "ger") at src/idnode.c:1501 idc = 0x1b8e28 <tvhdhomerun_device_class> ubuf = "704b63f9eea288ed49ddc727b0fdc199" m = 0x717044c8 #8 0x0007c2dc in api_idnode_tree (perm=perm@entry=0x717043a8, opaque=<optimized out>, op=<optimized out>, args=args@entry=0x7170c308, resp=resp@entry=0x677fe6f4) at src/api/api_idnode.c:566 in = 0x71702df8 m = <optimized out> i = 0 v = 0x717044b0 uuid = <optimized out> root = <optimized out> isroot = <optimized out> node = <optimized out> rootfn = <optimized out> #9 0x0007b750 in api_exec (perm=0x717043a8, subsystem=subsystem@entry=0x717012a2 "hardware/tree", args=args@entry=0x7170c308, resp=0x677fe6f4, resp@entry=0x677fe6ec) at src/api.c:97 ah = <optimized out> skel = {hook = <synthetic pointer>, link = {left = <optimized out>, right = <optimized out>, parent = <optimized out>, color = <optimized out>}} op = <optimized out> #10 0x000a8fe0 in webui_api_handler (hc=0x677fe910, remain=0x717012a2 "hardware/tree", opaque=<optimized out>) at src/webui/webui_api.c:43 r = <optimized out> ha = 0x0 args = 0x7170c308 resp = 0x717040d0 #11 0x00032458 in http_exec (hc=hc@entry=0x677fe910, hp=hp@entry=0x12d8a30, remain=0x717012a2 "hardware/tree") at src/http.c:891 err = <optimized out> #12 0x000332dc in http_cmd_post (spill=<optimized out>, hc=0x677fe910) at src/http.c:1027 hp = 0x12d8a30 remain = 0x717012a2 "hardware/tree" args = 0x0 v = <optimized out> #13 http_process_request (hc=0x677fe910, spill=<optimized out>) at src/http.c:1049 No locals. #14 0x000328dc in process_request (hc=hc@entry=0x677fe910, spill=0x677fe8d8, spill@entry=0x677fe8d0) at src/http.c:1160 v = <optimized out> argv = {0x756ea000 "\030\217\023", 0xae <error: Cannot access memory at address 0xae>} n = <optimized out> rval = -1 authbuf = "10.0.0.5\000\000pq\020\000pq\020\000\000\000\350\003\000\000\360\003\000\000 \242nu\022\000\000\000\212\000\000\000\000\000\000\000 \242nu\002\000\000\000\002", '\000' <repeats 23 times>, "\002\000\000\000\070\000\000\000[\000\000\000n\000\000\000w\000\000\000|\000\000\000\212\000\000\000\260Cpq\250Cpq\020\000pq\002\000\000\000\020\000\000\000\350\003\000\000PDpq\001\000\000\000\064\302\005\000\001\000\000\000\330\350\177gPD" #15 0x000334e4 in http_serve_requests (hc=hc@entry=0x677fe910) at src/http.c:1450 spill = {hq_q = {tqh_first = 0x0, tqh_last = 0x677fe8d8}, hq_size = 0, hq_maxsize = 2147483647} argv = {0x717043a8 "", 0x717043b0 "", 0x717012b0 "HTTP/1.1"} c = <optimized out> cmdline = 0x71701298 "POST" hdrline = 0x71704450 "" n = <optimized out> r = <optimized out> #16 0x0003360c in http_serve (fd=16, opaque=opaque@entry=0x728004a8, peer=peer@entry=0x728004b4, self=self@entry=0x72800534) at src/http.c:1498 hc = {hc_fd_lock = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 0, {__spins = 0, __list = {__next = 0x0}}}, __size = '\000' <repeats 23 times>, __align = 0}, hc_fd = 16, hc_peer = 0x728004b4, hc_peer_ipstr = 0x677fe778 "10.0.0.5", hc_self = 0x72800534, hc_representative = 0x677fe778 "10.0.0.5", hc_paths_mutex = 0x211154 <http_paths_mutex>, hc_paths = 0x21116c <http_paths>, hc_process = 0x3314c <http_process_request>, hc_url = 0x7170129d "/api/hardware/tree", hc_url_orig = 0x677fe788 "/api/hardware/tree", hc_keep_alive = 1, hc_reply = {hq_q = {tqh_first = 0x0, tqh_last = 0x677fe954}, hq_size = 0, hq_maxsize = 2147483647}, hc_args = {tqh_first = 0x717038d8, tqh_last = 0x71704328}, hc_req_args = {tqh_first = 0x71704088, tqh_last = 0x71704098}, hc_state = HTTP_CON_WAIT_REQUEST, hc_cmd = HTTP_CMD_POST, hc_version = HTTP_VERSION_1_1, hc_username = 0x0, hc_password = 0x0, hc_authhdr = 0x0, hc_nonce = 0x0, hc_access = 0x717043a8, hc_user_config = 0x0, hc_no_output = 0, hc_logout_cookie = 0, hc_shutdown = 0, hc_cseq = 0, hc_session = 0x0, hc_post_data = 0x717041b8 "uuid", hc_post_len = 9} #17 0x0002c7f0 in tcp_server_start (aux=0x72800490) at src/tcp.c:645 tsl = 0x72800490 to = {tv_sec = 30, tv_usec = 0} val = 1 c = 74 'J' #18 0x00028ba4 in thread_wrapper (p=0x72800470) at src/wrappers.c:159 ts = 0x72800470 set = {__val = {16388, 0 <repeats 31 times>}} r = <optimized out> #19 0x7578bf78 in start_thread () from /usr/lib/libpthread.so.0 No symbol table info available. #20 0x7567ea80 in ?? () from /usr/lib/libc.so.6 No symbol table info available. Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) frame 3 #3 0x00026970 in prop_serialize_value (obj=0x71702df8, pl=0x1b8ec0 <__compound_literal.0+72>, msg=0x71704d90, optmask=0, lang=0x71704430 "ger") at src/prop.c:535 535 prop_read_value(obj, pl, m, "value", optmask, lang); (gdb) print *pl $1 = {id = 0x1b921c "ip_address", name = 0x15aa8c "IP address", desc = 0x0, type = PT_STR, islist = 0 '\000', group = 0 '\000', off = 0, opts = 6, intextra = 0, get = 0xf9694 <tvhdhomerun_device_class_get_ip_address>, set = 0x0, list = 0x0, rend = 0x0, def = {i = 0, s = 0x0, u16 = 0, u32 = 0, s64 = 0, d = 0, tm = 0, list = 0x0}, get_opts = 0x0, doc = 0x0, notify = 0x0}
Updated by David jrm over 8 years ago
Jaroslav Kysela wrote:
Fixed in v4.1-1896-g0e5fc7c .
yep, just tested as well with the same outcome...