Bug #5389
Valgrind: Invalid write of size 8; tvh_mutex
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-12-02
Due date:
% Done:
0%
Estimated time:
Found in version:
4.3-1616
Affected Versions:
Description
Attached valgrind log of invalid reads, tvheadend_4.3-1616~g39b74cbd8
Files
History
Updated by Pablo R. almost 6 years ago
Pablo R. wrote:
Attached valgrind log of invalid
reads, tvheadend_4.3-1616~g39b74cbd8
writes
Updated by Pablo R. almost 6 years ago
I tried with gdb but it does not seem like I got too much...
[New Thread 0x7fff8bbfd700 (LWP 397)] munmap_chunk(): invalid pointer Thread 95 "tvh:tcp-start" received signal SIGABRT, Aborted. [Switching to Thread 0x7fff8b3f9700 (LWP 394)] __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) print global_lock $1 = {mutex = pthread_mutex_t = {Type = Normal, Status = Not acquired, Robust = No, Shared = No, Protocol = None}, thread = 0, filename = 0x0, lineno = 0, tstamp = 91885608106, link = {tqe_next = 0x0, tqe_prev = 0x0}} (gdb) bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff6fe6535 in __GI_abort () at abort.c:79 #2 0x00007ffff704d516 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7171c00 "%s\n") at ../sysdeps/posix/libc_fatal.c:181 #3 0x00007ffff70543aa in malloc_printerr (str=str@entry=0x7ffff7173848 "munmap_chunk(): invalid pointer") at malloc.c:5336 #4 0x00007ffff70554cc in munmap_chunk (p=<optimized out>) at malloc.c:2830 #5 0x0000555555733f0c in access_destroy (a=0x5555569ee7f0 <thrwatch_mutexes>) at src/access.c:337 #6 0x0000555555734d1a in access_destroy (a=<optimized out>) at src/access.c:335 #7 0x000055555573deb8 in http_exec (hc=hc@entry=0x7fff8b3f87d0, hp=hp@entry=0x7fff8b3f8440, remain=0x7fff740031ba "idnode/load") at src/http.c:1173 #8 0x000055555573f329 in http_cmd_post (spill=<optimized out>, hc=0x7fff8b3f87d0) at src/http.c:1308 #9 http_process_request (hc=0x7fff8b3f87d0, spill=<optimized out>) at src/http.c:1330 #10 0x000055555573e553 in process_request (hc=hc@entry=0x7fff8b3f87d0, spill=spill@entry=0x7fff8b3f8750) at src/http.c:1463 #11 0x000055555573f80b in http_serve_requests (hc=hc@entry=0x7fff8b3f87d0) at src/http.c:1948 #12 0x000055555573fa09 in http_serve (fd=28, opaque=0x7fffd0001fa0, peer=0x7fffd0001fb8, self=0x7fffd0002038) at src/http.c:1999 #13 0x000055555573601e in tcp_server_start (aux=0x7fffd0001f70) at src/tcp.c:709 #14 0x000055555573131d in thread_wrapper (p=0x7fffd00025b0) at src/tvh_thread.c:93 #15 0x00007ffff7505164 in start_thread (arg=<optimized out>) at pthread_create.c:486 #16 0x00007ffff70dedef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Updated by Joe User almost 6 years ago
I have a fix for the tvhcsa.c errors, but I have not had time to create a pull request. Maybe later today...
Updated by Pablo R. almost 6 years ago
Joe User wrote:
I have a fix for the tvhcsa.c errors, but I have not had time to create a pull request. Maybe later today...
=) It would be great.
Jaroslav Kysela wrote:
v4.3-1617-g80ea669a5
It is not crashing anymore !