Tvheadend Hangs (tar) on startup - https://tvheadend.org/issues/2766
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker logs --tail=3000 tvh.debug | |
| Current default time zone: 'Europe/London' | |
| Local time is now: Thu Apr 9 12:48:33 BST 2015. | |
| Universal Time is now: Thu Apr 9 11:48:33 UTC 2015. | |
| Waiting for pipework to bring up eth0... | |
| Set: ulimit -c unlimited | |
| Set: core_pattern=/crash/%e-3.9.2679~g995aaf8~trusty.t%t.core.new | |
| uname -a: | |
| Linux 73b2992628d8 3.16.0-33-generic #44-Ubuntu SMP Thu Mar 12 12:19:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux | |
| Saved: dmesg --> /crash/dmesg.new | |
| /usr/bin/tvheadend -u hts -g video -c /config --fork --dump --logfile /crash/tvheadend.log --satip_xml http://192.168.1.22:8080/desc.xml --bindaddr 192.168.2.3 | |
| 2015-04-09 12:48:39.985 [ INFO]:main: Log started | |
| 2015-04-09 12:48:40.055 [ INFO]:config: backup: migrating config from unknown (running 3.9.2679~g995aaf8~trusty) | |
| 2015-04-09 12:48:40.055 [ INFO]:config: backup: running, output file /config/backup/unknown.tar.bz2 | |
| 2015-04-09 12:48:40.058 [ INFO]:spawn: Executing "/bin/tar" | |
| <------ hangs here | |
| id@emachines-e520:/usr/lib/locale$ docker exec -it tvh.debug stacktrace | |
| *********************************************************************** | |
| uname -a | |
| Linux 73b2992628d8 3.16.0-33-generic #44-Ubuntu SMP Thu Mar 12 12:19:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux | |
| *********************************************************************** | |
| ps -aux | |
| USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
| root 1 0.0 0.0 192 4 ? Ss 12:48 0:00 s6-svscan -t0 /var/run/s6/services | |
| root 17 0.0 0.0 180 4 ? S 12:48 0:00 foreground if /etc/s6/init/init-stage2-redirfd foreground if | |
| root 18 0.0 0.0 196 4 ? S 12:48 0:00 s6-supervise s6-fdholderd | |
| root 22 0.0 0.0 180 4 ? S 12:48 0:00 foreground s6-setsid -gq -- with-contenv /debug.sh -u hts -g | |
| root 67 0.0 0.0 17984 3024 ? S 12:48 0:00 /bin/bash /debug.sh -u hts -g video -c /config --fork --dump --logfil | |
| hts 116 0.1 0.1 196384 4476 ? Ssl 12:48 0:00 /usr/bin/tvheadend -u hts -g video -c /config --fork --dump --logfile | |
| root 122 0.0 0.0 4388 684 ? S 12:48 0:00 tail -n 99999 -F --pid=116 /crash/tvheadend.log | |
| root 127 0.0 0.0 17972 2916 ? Ss+ 12:50 0:00 /bin/bash /usr/sbin/stacktrace | |
| root 139 0.0 0.0 15572 2092 ? R+ 12:50 0:00 ps -aux | |
| *********************************************************************** | |
| GDB Backtrace | |
| *********************************************************************** | |
| GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 | |
| Copyright (C) 2014 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 "x86_64-linux-gnu". | |
| 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 /usr/bin/tvheadend...Reading symbols from /usr/lib/debug//usr/bin/tvheadend...done. | |
| done. | |
| Attaching to program: /usr/bin/tvheadend, process 116 | |
| Reading symbols from /lib/x86_64-linux-gnu/libssl.so.1.0.0...(no debugging symbols found)...done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libssl.so.1.0.0 | |
| Reading symbols from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0...(no debugging symbols found)...done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 | |
| Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging symbols found)...done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libz.so.1 | |
| Reading symbols from /usr/lib/liburiparser.so.1...(no debugging symbols found)...done. | |
| Loaded symbols for /usr/lib/liburiparser.so.1 | |
| Reading symbols from /usr/lib/x86_64-linux-gnu/libavahi-common.so.3...(no debugging symbols found)...done. | |
| Loaded symbols for /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 | |
| Reading symbols from /usr/lib/x86_64-linux-gnu/libavahi-client.so.3...(no debugging symbols found)...done. | |
| Loaded symbols for /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 | |
| Reading symbols from /lib/x86_64-linux-gnu/libdbus-1.so.3...(no debugging symbols found)...done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libdbus-1.so.3 | |
| Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libdl-2.19.so...done. | |
| done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libdl.so.2 | |
| Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libpthread-2.19.so...done. | |
| done. | |
| [New LWP 124] | |
| [New LWP 123] | |
| [New LWP 117] | |
| [Thread debugging using libthread_db enabled] | |
| Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". | |
| Loaded symbols for /lib/x86_64-linux-gnu/libpthread.so.0 | |
| Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libm-2.19.so...done. | |
| done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libm.so.6 | |
| Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/librt-2.19.so...done. | |
| done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/librt.so.1 | |
| Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.19.so...done. | |
| done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libc.so.6 | |
| Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/ld-2.19.so...done. | |
| done. | |
| Loaded symbols for /lib64/ld-linux-x86-64.so.2 | |
| Reading symbols from /lib/x86_64-linux-gnu/libnss_compat.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_compat-2.19.so...done. | |
| done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libnss_compat.so.2 | |
| Reading symbols from /lib/x86_64-linux-gnu/libnsl.so.1...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnsl-2.19.so...done. | |
| done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libnsl.so.1 | |
| Reading symbols from /lib/x86_64-linux-gnu/libnss_nis.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_nis-2.19.so...done. | |
| done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libnss_nis.so.2 | |
| Reading symbols from /lib/x86_64-linux-gnu/libnss_files.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_files-2.19.so...done. | |
| done. | |
| Loaded symbols for /lib/x86_64-linux-gnu/libnss_files.so.2 | |
| 0x00007fb96b5f7f3d in nanosleep () at ../sysdeps/unix/syscall-template.S:81 | |
| 81 ../sysdeps/unix/syscall-template.S: No such file or directory. | |
| (gdb) Copying output to /crash/tvheadend-3.9.2679~g995aaf8~trusty.gdb.stacktrace.txt. | |
| (gdb) (gdb) | |
| Thread 4 (Thread 0x7fb96acfa700 (LWP 117)): | |
| #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 | |
| No locals. | |
| #1 0x000000000040ab57 in tvhlog_thread (p=<optimized out>) at src/tvhlog.c:235 | |
| options = <optimized out> | |
| path = 0x7fb96acf9730 "/crash/tvheadend.log" | |
| buf = "/crash/tvheadend.log", '\000' <repeats 491 times> | |
| fp = 0x0 | |
| msg = 0x0 | |
| #2 0x000000000041209f in thread_wrapper (p=0x1a26000) at src/wrappers.c:145 | |
| ts = 0x1a26000 | |
| set = {__val = {16388, 0 <repeats 15 times>}} | |
| r = <optimized out> | |
| #3 0x00007fb96be12182 in start_thread (arg=0x7fb96acfa700) at pthread_create.c:312 | |
| __res = <optimized out> | |
| pd = 0x7fb96acfa700 | |
| now = <optimized out> | |
| unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140434337670912, -6208673425137555113, 0, 0, 140434337671616, 140434337670912, 6243266668869757271, 6243268539040311639}, 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" | |
| #4 0x00007fb96b63147d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 | |
| No locals. | |
| Thread 3 (Thread 0x7fb96a4f9700 (LWP 123)): | |
| #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 | |
| No locals. | |
| #1 0x000000000040d177 in idnode_thread (p=<optimized out>) at src/idnode.c:1432 | |
| node = <optimized out> | |
| m = <optimized out> | |
| q = <optimized out> | |
| f = <optimized out> | |
| event = <optimized out> | |
| #2 0x000000000041209f in thread_wrapper (p=0x1a401a0) at src/wrappers.c:145 | |
| ts = 0x1a401a0 | |
| set = {__val = {16388, 0 <repeats 15 times>}} | |
| r = <optimized out> | |
| #3 0x00007fb96be12182 in start_thread (arg=0x7fb96a4f9700) at pthread_create.c:312 | |
| __res = <optimized out> | |
| pd = 0x7fb96a4f9700 | |
| now = <optimized out> | |
| unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140434329278208, -6208673425137555113, 0, 0, 140434329278912, 140434329278208, 6243265569895000407, 6243268539040311639}, 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" | |
| #4 0x00007fb96b63147d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 | |
| No locals. | |
| Thread 2 (Thread 0x7fb969cf8700 (LWP 124)): | |
| #0 0x00007fb96b631b13 in epoll_wait () at ../sysdeps/unix/syscall-template.S:81 | |
| No locals. | |
| #1 0x000000000043de70 in tvhpoll_wait (tp=tp@entry=0x7fb95c0008c0, evs=evs@entry=0x7fb969cf79f0, num=num@entry=2, ms=ms@entry=500) at src/tvhpoll.c:178 | |
| nfds = 0 | |
| i = <optimized out> | |
| #2 0x00000000004251bd in spawn_pipe_thread (aux=<optimized out>) at src/spawn.c:131 | |
| ev = {{fd = 8, events = 1, data = {ptr = 0x73ed80 <spawn_pipe_info>, u64 = 7597440, u32 = 7597440, fd = 7597440}}, {fd = 10, events = 1, data = {ptr = 0x73ed78 <spawn_pipe_error>, u64 = 7597432, u32 = 7597432, fd = 7597432}}} | |
| efd = 0x7fb95c0008c0 | |
| nfds = <optimized out> | |
| #3 0x00007fb96be12182 in start_thread (arg=0x7fb969cf8700) at pthread_create.c:312 | |
| __res = <optimized out> | |
| pd = 0x7fb969cf8700 | |
| now = <optimized out> | |
| unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140434320885504, -6208673425137555113, 0, 0, 140434320886208, 140434320885504, 6243273264865782103, 6243268539040311639}, 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" | |
| #4 0x00007fb96b63147d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 | |
| No locals. | |
| Thread 1 (Thread 0x7fb96d510c40 (LWP 116)): | |
| #0 0x00007fb96b5f7f3d in nanosleep () at ../sysdeps/unix/syscall-template.S:81 | |
| No locals. | |
| #1 0x00007fb96b6294a4 in usleep (useconds=useconds@entry=20000) at ../sysdeps/unix/sysv/linux/usleep.c:32 | |
| ts = {tv_sec = 0, tv_nsec = 20000000} | |
| #2 0x000000000044046a in dobackup (oldver=oldver@entry=0x4dc01a "unknown") at src/config.c:1218 | |
| outfile = "/config/backup/unknown.tar.bz2", '\000' <repeats 498 times>... | |
| cwd = "/tmp", '\000' <repeats 148 times>, "\371\v0m\271\177", '\000' <repeats 67 times>... | |
| argv = {0x4dbbcb "/bin/tar", 0x4dbba4 "cjf", 0x7fffbe3efa80 "/config/backup/unknown.tar.bz2", 0x4dbba8 "--exclude", 0x4dbbf2 "backup", 0x4dbba8 "--exclude", 0x4dbbb2 "epggrab/*.sock", 0x4ee4f5 ".", 0x0} | |
| root = 0x1a24f80 "/config" | |
| errtxt = '\000' <repeats 127 times> | |
| arg = <optimized out> | |
| code = -11 | |
| #3 0x0000000000442520 in config_migrate (backup=1) at src/config.c:1289 | |
| v = 16 | |
| s = 0x4dc01a "unknown" | |
| #4 config_init (backup=1) at src/config.c:1441 | |
| path = <optimized out> | |
| #5 0x0000000000408590 in main (argc=<optimized out>, argv=0x7fffbe3f2698) at src/main.c:820 | |
| i = <optimized out> | |
| set = {__val = {18446744067267100671, 18446744073709551615 <repeats 15 times>}} | |
| adapter_mask = 4294967295 | |
| log_level = <optimized out> | |
| log_options = <optimized out> | |
| log_debug = <optimized out> | |
| log_trace = <optimized out> | |
| gid = <optimized out> | |
| uid = <optimized out> | |
| buf = "(\255Sk\271\177\000\000\260$?\276\377\177\000\000\250&Tk\271\177\000\000\202\035\376\003\000\000\000\000\240$?\276\377\177\000\000\320#?\276\377\177\000\000\000\000\000\000\000\000\000\000\b<Qm\271\177\000\000\000\060Qm\271\177\000\000G\327\315l\271\177\000\000x}Tk\271\177\000\000\234>0m\271\177\000\000\000\000\000\000\001\000\000\000.N=\366\000\000\000\000\f\000\000\000\000\000\000\000\016\000\000\000\000\000\000\000\330\067Qm\271\177\000\000\026H0m\271\177\000\000\001\000\000\000\000\000\000\000@$?\276\377\177\000\000(\255Sk\271\177\000\000P%?\276\377\177\000\000\250qTk\271\177\000\000\070\365\330\003\000\000\000\000@%?\276\377\177", '\000' <repeats 18 times>... | |
| pidfile = <optimized out> | |
| opt_help = 0 | |
| opt_version = 0 | |
| opt_fork = 1 | |
| opt_firstrun = 0 | |
| opt_stderr = 0 | |
| opt_syslog = 0 | |
| opt_uidebug = 0 | |
| opt_abort = 0 | |
| opt_noacl = 0 | |
| opt_fileline = 0 | |
| opt_threadid = 0 | |
| opt_ipv6 = 0 | |
| opt_satip_rtsp = 0 | |
| opt_tsfile_tuner = 0 | |
| opt_dump = 1 | |
| opt_xspf = 0 | |
| opt_dbus = 0 | |
| opt_dbus_session = 0 | |
| opt_nobackup = 0 | |
| opt_nobat = 0 | |
| opt_config = 0x7fffbe3f2dff "/config" | |
| opt_user = 0x7fffbe3f2def "hts" | |
| opt_group = 0x7fffbe3f2df6 "video" | |
| opt_logpath = 0x7fffbe3f2e1f "/crash/tvheadend.log" | |
| opt_log_debug = 0x0 | |
| opt_log_trace = 0x0 | |
| opt_pidpath = 0x4d3ccc "/var/run/tvheadend.pid" | |
| opt_dvb_adapters = 0x0 | |
| opt_bindaddr = 0x7fffbe3f2e6d "192.168.2.3" | |
| opt_subscribe = 0x0 | |
| opt_user_agent = 0x0 | |
| opt_satip_xml = {max = 10, num = 1, str = 0x1a21010} | |
| opt_tsfile = {max = 10, num = 0, str = 0x1a21070} | |
| cmdline_opts = {{sopt = 0 '\000', lopt = 0x0, desc = 0x4d3ce3 "Generic Options", type = OPT_BOOL, param = 0x0}, {sopt = 104 'h', lopt = 0x4d3cf3 "help", desc = 0x4d3cf8 "Show this page", type = OPT_BOOL, param = 0x7fffbe3f1b88}, {sopt = 118 'v', lopt = 0x4e7c77 "version", desc = 0x4d3d07 "Show version infomation", type = OPT_BOOL, param = 0x7fffbe3f1b8c}, {sopt = 0 '\000', lopt = 0x0, desc = 0x4d3d1f "Service Configuration", type = OPT_BOOL, param = 0x0}, {sopt = 99 'c', lopt = 0x4ece8b "config", desc = 0x4d3d35 "Alternate config path", type = OPT_STR, param = 0x7fffbe3f1bd8}, {sopt = 66 'B', lopt = 0x4d3d4b "nobackup", desc = 0x4d3870 "Do not backup config tree at upgrade", type = OPT_BOOL, param = 0x7fffbe3f1bd0}, {sopt = 102 'f', lopt = 0x4d3d54 "fork", desc = 0x4d3d59 "Fork and run as daemon", type = OPT_BOOL, param = 0x7fffbe3f1b90}, {sopt = 117 'u', lopt = 0x4d3d77 "user", desc = 0x4d3d70 "Run as user", type = OPT_STR, param = 0x7fffbe3f1be0}, {sopt = 103 'g', lopt = 0x4d3d83 "group", desc = 0x4d3d7c "Run as group", type = OPT_STR, param = 0x7fffbe3f1be8}, {sopt = 112 'p', lopt = 0x4d3cdf "pid", desc = 0x4d3d89 "Alternate pid path", type = OPT_STR, param = 0x7fffbe3f1c08}, {sopt = 67 'C', lopt = 0x4d3d9c "firstrun", desc = 0x4d3898 "If no user account exists then create one with\nno username and no password. Use with care as\nit will allow world-wide administrative access\nto your Tvheadend installation until you edit\nthe access-con"..., type = OPT_BOOL, param = 0x7fffbe3f1b94}, {sopt = 85 'U', lopt = 0x4d3da5 "dbus", desc = 0x4d3daa "Enable DBus", type = OPT_BOOL, param = 0x7fffbe3f1bc8}, {sopt = 101 'e', lopt = 0x4d3db6 "dbus_session", desc = 0x4d3988 "DBus - use the session message bus instead system one", type = OPT_BOOL, param = 0x7fffbe3f1bcc}, {sopt = 97 'a', lopt = 0x4d431d "adapters", desc = 0x4d39c0 "Only use specified DVB adapters (comma separated)", type = OPT_STR, param = 0x7fffbe3f1c10}, {sopt = 0 '\000', lopt = 0x4d3dc3 "satip_rtsp", desc = 0x4d39f8 "SAT>IP RTSP port number for server\n(default: -1 = disable, 0 = webconfig, standard port is 554)", type = OPT_INT, param = 0x7fffbe3f1bb8}, {sopt = 0 '\000', lopt = 0x4d3dce "satip_xml", desc = 0x4d3a58 "URL with the SAT>IP server XML location", type = OPT_STR_LIST, param = 0x7fffbe3f1c30}, {sopt = 0 '\000', lopt = 0x0, desc = 0x4d3dd8 "Server Connectivity", type = OPT_BOOL, param = 0x0}, {sopt = 54 '6', lopt = 0x4d3dec "ipv6", desc = 0x4d3df1 "Listen on IPv6", type = OPT_BOOL, param = 0x7fffbe3f1bb4}, {sopt = 98 'b', lopt = 0x4d3e00 "bindaddr", desc = 0x4d3e09 "Specify bind address", type = OPT_STR, param = 0x7fffbe3f1c18}, {sopt = 0 '\000', lopt = 0x4d3e1e "http_port", desc = 0x4d3e28 "Specify alternative http port", type = OPT_INT, param = 0x7447dc <tvheadend_webui_port>}, {sopt = 0 '\000', lopt = 0x4d3e46 "http_root", desc = 0x4d3a80 "Specify alternative http webroot", type = OPT_STR, param = 0x7447c8 <tvheadend_webroot>}, {sopt = 0 '\000', lopt = 0x4d3e50 "htsp_port", desc = 0x4d3e5a "Specify alternative htsp port", type = OPT_INT, param = 0x7447d8 <tvheadend_htsp_port>}, {sopt = 0 '\000', lopt = 0x4d3e78 "htsp_port2", desc = 0x4d3e83 "Specify extra htsp port", type = OPT_INT, param = 0x7447e0 <tvheadend_htsp_port_extra>}, {sopt = 0 '\000', lopt = 0x4d3e9b "useragent", desc = 0x4d3aa8 "Specify User-Agent header for the http client", type = OPT_STR, param = 0x7fffbe3f1c28}, {sopt = 0 '\000', lopt = 0x4d3ea5 "xspf", desc = 0x4d3eaa "Use xspf playlist instead M3U", type = OPT_BOOL, param = 0x7fffbe3f1bc4}, {sopt = 0 '\000', lopt = 0x0, desc = 0x4d3ec8 "Debug Options", type = OPT_BOOL, param = 0x0}, {sopt = 100 'd', lopt = 0x4d3ee6 "stderr", desc = 0x4d3ed6 "Enable debug on stderr", type = OPT_BOOL, param = 0x7fffbe3f1b98}, {sopt = 115 's', lopt = 0x4d3efd "syslog", desc = 0x4d3eed "Enable debug to syslog", type = OPT_BOOL, param = 0x7fffbe3f1b9c}, {sopt = 108 'l', lopt = 0x4d3f04 "logfile", desc = 0x4d3f0c "Enable debug to file", type = OPT_STR, param = 0x7fffbe3f1bf0}, {sopt = 0 '\000', lopt = 0x4d3f78 "debug", desc = 0x4d3f21 "Enable debug subsystems", type = OPT_STR, param = 0x7fffbe3f1bf8}, {sopt = 0 '\000', lopt = 0x4eea49 "trace", desc = 0x4d3f39 "Enable trace subsystems", type = OPT_STR, param = 0x7fffbe3f1c00}, {sopt = 0 '\000', lopt = 0x4d3f51 "fileline", desc = 0x4d3ad8 "Add file and line numbers to debug", type = OPT_BOOL, param = 0x7fffbe3f1bac}, {sopt = 0 '\000', lopt = 0x4d3f5a "threadid", desc = 0x4d3f63 "Add the thread ID to debug", type = OPT_BOOL, param = 0x7fffbe3f1bb0}, {sopt = 0 '\000', lopt = 0x4d3f7e "uidebug", desc = 0x4d3b00 "Enable webUI debug (non-minified JS)", type = OPT_BOOL, param = 0x7fffbe3f1ba0}, {sopt = 65 'A', lopt = 0x4d3f92 "abort", desc = 0x4d3f86 "Immediately abort", type = OPT_BOOL, param = 0x7fffbe3f1ba4}, {sopt = 68 'D', lopt = 0x4d3f98 "dump", desc = 0x4d3f9d "Enable coredumps for daemon", type = OPT_BOOL, param = 0x7fffbe3f1bc0}, {sopt = 0 '\000', lopt = 0x4d3fb9 "noacl", desc = 0x4d3b28 "Disable all access control checks", type = OPT_BOOL, param = 0x7fffbe3f1ba8}, {sopt = 0 '\000', lopt = 0x4d3fbf "nobat", desc = 0x4d3fc5 "Disable DVB bouquets", type = OPT_BOOL, param = 0x7fffbe3f1bd4}, {sopt = 106 'j', lopt = 0x4d3fda "join", desc = 0x4d3b50 "Subscribe to a service permanently", type = OPT_STR, param = 0x7fffbe3f1c20}, {sopt = 0 '\000', lopt = 0x0, desc = 0x4d3fdf "TODO: testing", type = OPT_BOOL, param = 0x0}, {sopt = 0 '\000', lopt = 0x4d3fed "tsfile_tuners", desc = 0x4d3ffb "Number of tsfile tuners", type = OPT_INT, param = 0x7fffbe3f1bbc}, {sopt = 0 '\000', lopt = 0x4d4013 "tsfile", desc = 0x4d401a "tsfile input (mux file)", type = OPT_STR_LIST, param = 0x7fffbe3f1c40}} | |
| (gdb) warning: target file /proc/116/cmdline contained unexpected null characters | |
| warning: Memory read failed for corefile section, 8192 bytes at 0x7fffbe3fb000. | |
| Saved corefile core file | |
| (gdb) quit | |
| A debugging session is active. | |
| Inferior 1 [process 116] will be detached. | |
| Quit anyway? (y or n) [answered Y; input not from terminal] | |
| Detaching from program: /usr/bin/tvheadend, process 116 | |
| *********************************************************************** | |
| Tvheadend Debugging Guide | |
| ----> https://tvheadend.org/projects/tvheadend/wiki/Debugging | |
| Tvheadend Issue Tracker | |
| ----> https://tvheadend.org/projects/tvheadend/issues | |
| Tvheadend New Issue | |
| ----> https://tvheadend.org/projects/tvheadend/issues/new | |
| id@emachines-e520:/usr/lib/locale$ docker exec -it tvh.debug bash | |
| root@73b2992628d8:/# TERM=xterm top -H -p 116 | |
| top - 12:53:12 up 1 day, 12:13, 0 users, load average: 0.58, 0.37, 0.24 | |
| Threads: 4 total, 0 running, 4 sleeping, 0 stopped, 0 zombie | |
| %Cpu(s): 2.4 us, 1.6 sy, 0.5 ni, 94.4 id, 0.5 wa, 0.0 hi, 0.5 si, 0.0 st | |
| KiB Mem: 3976324 total, 3126788 used, 849536 free, 407892 buffers | |
| KiB Swap: 5254000 total, 405968 used, 4848032 free. 1407576 cached Mem | |
| PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
| 116 hts 20 0 196384 4488 3848 S 0.3 0.1 0:00.43 tvheadend | |
| 117 hts 20 0 196384 4488 3848 S 0.0 0.1 0:00.00 tvhlog_thread | |
| 123 hts 20 0 196384 4488 3848 S 0.0 0.1 0:00.00 idnode_thread | |
| 124 hts 20 0 196384 4488 3848 S 0.0 0.1 0:00.01 tvheadend |
The tvheadend process in spawn is left waiting. Yet the it seems the tar command already completed successfully. When I run the tar command manually. It works. And produces exactly same file as tvheadend itself made:
root@73b2992628d8:/config# /bin/tar cjf /config/backup/unknown.tar.bz2.new --exclude backup --exclude epggrab/*.sock .
root@73b2992628d8:/config# ls -ls backup/
total 712
352 -rw-rw-rw- 1 hts video 356860 Apr 9 12:48 unknown.tar.bz2
352 -rw-r--r-- 1 root root 356860 Apr 9 13:42 unknown.tar.bz2.new
root@73b2992628d8:/config# md5sum backup/*
9c00eecae3ac382c6b173d846b5ab642 backup/unknown.tar.bz2
9c00eecae3ac382c6b173d846b5ab642 backup/unknown.tar.bz2.new
root@73b2992628d8:/config# So for some reason tvheadend spawn.c did not regognize that tar program had finished.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ls -lsa /config/backup/
total 360
4 drwx------ 2 hts video 4096 Apr 9 12:48 .
4 drwxr-xr-x 15 hts video 4096 Apr 9 12:48 ..
352 -rw-rw-rw- 1 hts video 356860 Apr 9 12:48 unknown.tar.bz2
root@73b2992628d8:/# tar -t /config/unknown.tar.bz2