Bug #3851
tvheadend sometimes crashes
0%
Description
[New Thread 0x7fff9cff9700 (LWP 24714)]
2016-06-10 22:27:55.302 [ ERROR] http: 192.168.240.11: HTTP/1.1 HEAD /imagecache/5016 -- 404
[Thread 0x7fff9cff9700 (LWP 24714) exited]
[New Thread 0x7fff9cff9700 (LWP 24715)]
2016-06-10 22:27:55.307 [ ERROR] http: 192.168.240.11: HTTP/1.1 HEAD /imagecache/6275 -- 404
[Thread 0x7fff9cff9700 (LWP 24715) exited]
[New Thread 0x7fff9cff9700 (LWP 24724)]
2016-06-10 22:27:56.384 [ ERROR] http: 192.168.240.11: HTTP/1.1 HEAD /imagecache/5016 -- 404
[Thread 0x7fff9cff9700 (LWP 24724) exited]
2016-06-10 22:27:57.071 [ INFO] subscription: 00B6: "192.168.240.11 [ naskodi | Kodi Media Center ]" unsubscribing from "Vivid", hostname="192.168.240.11", username="naskodi", client="Kodi Media Center"
Thread 123 "tvh:tcp-start" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffabfff700 (LWP 866)]
0x0000555555776483 in mpegts_mux_stop (mm=0x55555797f430, force=<optimized out>, reason=<optimized out> at src/input/mpegts/mpegts_mux.c:858
858 RB_REMOVE(&mp->mp_subs, mps, mps_link);
(gdb)
(gdb) bt
#0 0x0000555555776483 in mpegts_mux_stop (mm=0x55555797f430, force=<optimized out>, reason=<optimized out> at src/input/mpegts/mpegts_mux.c:858
#1 0x000055555577998c in mpegts_service_stop (t=0x55555798b770) at src/input/mpegts/mpegts_service.c:402
#2 0x00005555556ed703 in service_stop (t=t@entry=0x55555798b770) at src/service.c:359
#3 0x00005555556ea415 in subscription_unlink_service0 (s=s@entry=0x7fffa439a1c0, reason=reason@entry=0, stop=stop@entry=1) at src/subscriptions.c:166
#4 0x00005555556eb41a in subscription_unlink_service (s=s@entry=0x7fffa439a1c0, reason=reason@entry=0) at src/subscriptions.c:173
#5 0x00005555556ed7f0 in service_remove_subscriber (t=t@entry=0x55555798b770, s=s@entry=0x7fffa439a1c0, reason=reason@entry=0) at src/service.c:401
#6 0x00005555556eb6c9 in subscription_unsubscribe (s=s@entry=0x7fffa439a1c0, flags=flags@entry=2) at src/subscriptions.c:653
#7 0x00005555556f1629 in htsp_subscription_destroy (htsp=htsp@entry=0x7fffabffe720, hs=hs@entry=0x7fffa4159000) at src/htsp_server.c:366
#8 0x00005555556f46ce in htsp_method_unsubscribe (htsp=0x7fffabffe720, in=0x7fffa4557e30) at src/htsp_server.c:2466
#9 0x00005555556f70ec in htsp_read_loop (htsp=0x7fffabffe720) at src/htsp_server.c:3113
#10 htsp_serve (fd=16, opaque=0x7fffb4000f28, source=<optimized out>, self=<optimized out> at src/htsp_server.c:3249
#11 0x00005555556cf89d in tcp_server_start (aux=0x7fffb4000f00) at src/tcp.c:645
#12 0x00005555556cb183 in thread_wrapper (p=0x7fffb4000a40) at src/wrappers.c:159
#13 0x00007ffff685b6fa in start_thread (arg=0x7fffabfff700) at pthread_create.c:333
#14 0x00007ffff5cfeb5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb)
Files
History
Updated by Jaroslav Kysela over 8 years ago
Could you run tvh under valgrind ? It seems that this is a consequence of something else.
Updated by Thomas Smith over 8 years ago
another crash:
Thread 43 "tvh:satip-front" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffa3fff700 (LWP 25538)]
0x00007ffff5c2d418 in GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0 0x00007ffff5c2d418 in __GI_raise (sig=sig@entry=6)
at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff5c2f01a in __GI_abort () at abort.c:89
#2 0x00007ffff5c6f72a in __libc_message (do_abort=do_abort@entry=2,
fmt=fmt@entry=0x7ffff5d886b0 "*** Error in `%s': %s: 0x%s ***\n")
at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff5c77f4a in malloc_printerr (ar_ptr=<optimized out>,
ptr=<optimized out>, str=0x7ffff5d8548f "free(): invalid pointer",
---Type <return> to continue, or q <return> to quit---
action=3) at malloc.c:5007
#4 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0)
at malloc.c:3868
#5 0x00007ffff5c7babc in __GI_libc_free (mem=<optimized out>)
at malloc.c:2969
#6 0x000055555576b371 in mpegts_pid_done (pids=pids@entry=0x7fffa80130c8)
at src/input/mpegts/mpegts_pid.c:67
#7 0x00005555557a76f0 in satip_frontend_request_cleanup (
---Type <return> to continue, or q <return> to quit---
_tr=_tr@entry=0x7fffa3ffdfc8, lfe=0x7fffb0006b70, lfe=0x7fffb0006b70)
at src/input/mpegts/satip/satip_frontend.c:1082
#8 0x00005555557a84df in satip_frontend_input_thread (aux=0x7fffb0006b70)
at src/input/mpegts/satip/satip_frontend.c:1449
#9 0x00005555556cb183 in thread_wrapper (p=0x7fffb00036f0)
at src/wrappers.c:159
#10 0x00007ffff685b6fa in start_thread (arg=0x7fffa3fff700)
at pthread_create.c:333
---Type <return> to continue, or q <return> to quit---
#11 0x00007ffff5cfeb5d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
ok - will try valgrind
Updated by Jaroslav Kysela over 8 years ago
It seems like a memory corruption. Valgrind might detect the wrong memory access.
Updated by Thomas Smith over 8 years ago
starting valgrind in a screen-session and waiting for crash:
valgrind --leak-check=full --show-reachable=yes /home/hts/case-xxxx/tvheadend/build.linux/tvheadend -D
some output:
....
2016-06-15 13:49:19.686 [ INFO] epgdb: channels 0
2016-06-15 13:49:19.686 [ INFO] epgdb: brands 0
2016-06-15 13:49:19.686 [ INFO] epgdb: seasons 0
2016-06-15 13:49:19.686 [ INFO] epgdb: episodes 91025
2016-06-15 13:49:19.686 [ INFO] epgdb: broadcasts 91024
8832 Conditional jump or move depends on uninitialised value(s)
8832 at 0x6D27DC3: re_compile_fastmap_iter.isra.26 (regcomp.c:328)
8832 by 0x6D370D5: re_compile_fastmap (regcomp.c:280)
8832 by 0x6D377D1: regcomp (regcomp.c:509)
8832 by 0x2FD823: dvr_autorec_entry_class_title_set (dvr_autorec.c:530)
8832 by 0x27D384: prop_write_values (prop.c:229)
8832 by 0x27665C: idnode_class_write_values.isra.5 (idnode.c:1107)
8832 by 0x27B2E6: idnode_write0 (idnode.c:1186)
8832 by 0x2FEC03: dvr_autorec_create (dvr_autorec.c:297)
8832 by 0x2FF058: dvr_autorec_init (dvr_autorec.c:1307)
8832 by 0x303932: dvr_init (dvr_config.c:1343)
8832 by 0x271B49: main (main.c:1220)
8832
8832 Conditional jump or move depends on uninitialised value(s)
8832 at 0x6D27DC3: re_compile_fastmap_iter.isra.26 (regcomp.c:328)
8832 by 0x6D370F7: re_compile_fastmap (regcomp.c:282)
8832 by 0x6D377D1: regcomp (regcomp.c:509)
8832 by 0x2FD823: dvr_autorec_entry_class_title_set (dvr_autorec.c:530)
8832 by 0x27D384: prop_write_values (prop.c:229)
8832 by 0x27665C: idnode_class_write_values.isra.5 (idnode.c:1107)
8832 by 0x27B2E6: idnode_write0 (idnode.c:1186)
8832 by 0x2FEC03: dvr_autorec_create (dvr_autorec.c:297)
8832 by 0x2FF058: dvr_autorec_init (dvr_autorec.c:1307)
8832 by 0x303932: dvr_init (dvr_config.c:1343)
8832 by 0x271B49: main (main.c:1220)
8832
2016-06-15 13:49:49.008 [ INFO] dvr: entry b9bf5d7813b693001cc1dcfef66c0ce4 "Elementary" on "AXN HD" starting at 2016-06-15 13:24:30, scheduled for recording by "serien"
2016-06-15 13:50:36.438 [ INFO] AVAHI: Service 'NAS' successfully established.
2016-06-15 13:51:29.635 [ NOTICE] START: HTS Tvheadend version 4.1-2116~gf59669c started, running as PID:8832 UID:117 GID:129, CWD:/home/hts/case-xxxx/tvheadend/build.linux CNF:/home/hts/.hts/tvheadend
2016-06-15 13:51:29.857 [ INFO] htsp: Got connection from 192.168.240.11
2016-06-15 13:51:29.882 [ INFO] htsp: Got connection from 192.168.240.11
2016-06-15 13:51:29.888 [ INFO] htsp: 192.168.240.11: Welcomed client software: Kodi Media Center (HTSPv25)
2016-06-15 13:51:29.899 [ INFO] htsp: 192.168.240.11: Welcomed client software: Kodi Media Center (HTSPv25)
Updated by Thomas Smith over 8 years ago
- File top.JPG top.JPG added
- File valgrind-output.txt valgrind-output.txt added
i dont know why, but valgrind doesnt work on my nas (with a putty-session or in a screen-session)
after starting tvh in valgrind, webserver is working :9981 but when i start a htsp-stream, tvh crashes immediatly
in my opinion, my nas is too weak for valgrind
any other possibilities to find the problem?
Updated by Thomas Smith over 8 years ago
no crashes seen anymore with version 4.1-2141
please close this ticket