Bug #4569
Mutex not held at src/input/mpegts/mpegts_mux.c:992
0%
Description
With the latest tvheadend 409524e965b530debc96b0fd35ae97796a8ec00c
I get a crash with the above message.
Using git bisect I found that the error first occurs for me in commit
b0cb887fc9e2526a02b2d6649fdbb8a860ec8087
whereas it does not happen in
5a965e850aac405724a5f4d9063a01329b73b45c
Below are the error messages for the first bad commit.
Looking at the code, there is no obvious explanation for the crash.
I suspect the real error is elsewhere
build.linux/tvheadend
2017-09-03 19:25:21.597 [ INFO] main: Log started
2017-09-03 19:25:21.597 [ INFO] http: Starting HTTP server 0.0.0.0:9981
2017-09-03 19:25:21.597 [ INFO] htsp: Starting HTSP server 0.0.0.0:9982
2017-09-03 19:25:21.677 [ INFO] config: backup: migrating config from 4.3-324~g5a965e850 (running 4.3-325~gb0cb887fc-dirty)
2017-09-03 19:25:21.677 [ INFO] config: backup: running, output file XXX/.hts/tvheadend/backup/4.3-324~g5a965e850.tar.bz2
2017-09-03 19:25:21.677 [ INFO] spawn: Executing "/bin/tar"
2017-09-03 19:25:26.175 [ INFO] config: backup: completed
2017-09-03 19:25:26.213 [ INFO] config: loaded
2017-09-03 19:25:26.215 [ INFO] config: scanfile (re)initialization with path <none>
2017-09-03 19:25:28.341 [ INFO] scanfile: DVB-S - loaded 1 regions with 112 networks
2017-09-03 19:25:28.341 [ INFO] scanfile: DVB-T - loaded 44 regions with 1112 networks
2017-09-03 19:25:28.341 [ INFO] scanfile: DVB-C - loaded 17 regions with 57 networks
2017-09-03 19:25:28.341 [ INFO] scanfile: ATSC-T - loaded 2 regions with 11 networks
2017-09-03 19:25:28.341 [ INFO] scanfile: ATSC-C - loaded 1 regions with 5 networks
2017-09-03 19:25:28.341 [ INFO] scanfile: ISDB-T - loaded 2 regions with 1297 networks
2017-09-03 19:25:28.796 [ INFO] linuxdvb: adapter added /dev/dvb/adapter3
2017-09-03 19:25:29.327 [ INFO] linuxdvb: adapter added /dev/dvb/adapter2
2017-09-03 19:25:29.856 [ INFO] linuxdvb: adapter added /dev/dvb/adapter1
2017-09-03 19:25:30.383 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0
Mutex not held at src/input/mpegts/mpegts_mux.c:992
2017-09-03 19:25:30.422 [ ALERT] CRASH: Signal: 6 in PRG: build.linux/tvheadend (4.3-325~gb0cb887fc-dirty) [7376ef3e9707c8a3adb570426a6d2d5bbbf7fb7e] CWD: /mnt/scratch/tvheadend
2017-09-03 19:25:30.422 [ ALERT] CRASH: Fault address 0x2f80000677f (N/A)
2017-09-03 19:25:30.422 [ ALERT] CRASH: Loaded libraries: linux-vdso.so.1 /lib64/libssl.so.1.1 /lib64/libcrypto.so.1.1 /lib64/libz.so.1 /lib64/libpcre.so.1 /lib64/libdbus-1.so.3 /lib64/libdl.so.2 /lib64/libpthread.so.0 /lib64/libm.so.6 /lib64/librt.so.1 /lib64/libvdpau.so.1 /lib64/libva-x11.so.1 /lib64/libX11.so.6 /lib64/libva-drm.so.1 /lib64/libva.so.1 /lib64/libxcb.so.1 /lib64/libxcb-shm.so.0 /lib64/libxcb-xfixes.so.0 /lib64/libxcb-shape.so.0 /lib64/libstdc++.so.6 /lib64/libgcc_s.so.1 /lib64/libcrystalhd.so.3 /lib64/liblzma.so.5 /lib64/libbz2.so.1 /lib64/libmvec.so.1 /lib64/libc.so.6 /lib64/libsystemd.so.0 /lib64/ld-linux-x86-64.so.2 /lib64/libXext.so.6 /lib64/libXfixes.so.3 /lib64/libdrm.so.2 /lib64/libXau.so.6 /lib64/libresolv.so.2 /lib64/libselinux.so.1 /lib64/libcap.so.2 /lib64/liblz4.so.1 /lib64/libgcrypt.so.20 /lib64/libgpg-error.so.0
2017-09-03 19:25:30.422 [ ALERT] CRASH: Register dump [23]: 000000000000000000007fff93b90920000000000000000800000000000002460000557aa20ded980000557a9df2bed80000557a9ae2b1000000557aacc6d260000000000000000200007fff93b909200000557aa20deb9000000000000000010000000000000000000000000000000000007f685f67469b00007fff93b9092000007f685f67469b0000000000000246002b00000000003300000000000000000000000000000000fffffffe7ffbfa170000000000000000
2017-09-03 19:25:30.422 [ ALERT] CRASH: STACKTRACE
2017-09-03 19:25:30.521 [ ALERT] CRASH: /mnt/scratch/tmp/tvheadend/src/trap.c:148 0x557a9ae1e37a 0x557a9ac20000
2017-09-03 19:25:30.546 [ ALERT] CRASH: ??:0 0x7f68620fc2c0 0x7f68620ea000
2017-09-03 19:25:30.546 [ ALERT] CRASH: gsignal+0xcb (/lib64/libc.so.6)
2017-09-03 19:25:30.546 [ ALERT] CRASH: abort+0x1b0 (/lib64/libc.so.6)
2017-09-03 19:25:30.567 [ ALERT] CRASH: /mnt/scratch/tvheadend/src/tvheadend.h:101 0x557a9adab51f 0x557a9ac20000
2017-09-03 19:25:30.588 [ ALERT] CRASH: /mnt/scratch/tvheadend/src/input/mpegts/mpegts_mux.c:1006 (discriminator 2) 0x557a9ae94e86 0x557a9ac20000
2017-09-03 19:25:30.609 [ ALERT] CRASH: /mnt/scratch/tmp/tvheadend/src/epggrab/otamux.c:142 0x557a9aeacece 0x557a9ac20000
2017-09-03 19:25:30.629 [ ALERT] CRASH: /mnt/scratch/tvheadend/src/service_mapper.c:188 0x557a9ae2b0f5 0x557a9ac20000
2017-09-03 19:25:30.649 [ ALERT] CRASH: /mnt/scratch/tvheadend/src/idnode.c:1813 0x557a9ade223b 0x557a9ac20000
2017-09-03 19:25:30.668 [ ALERT] CRASH: /mnt/scratch/tvheadend/src/prop.c:246 0x557a9ade3c94 0x557a9ac20000
2017-09-03 19:25:30.688 [ ALERT] CRASH: /mnt/scratch/tvheadend/src/idnode.c:1107 0x557a9addd2cf 0x557a9ac20000
2017-09-03 19:25:30.708 [ ALERT] CRASH: /mnt/scratch/tvheadend/src/idnode.c:1186 0x557a9ade1ce7 0x557a9ac20000
2017-09-03 19:25:30.728 [ ALERT] CRASH: /mnt/scratch/tvheadend/src/channels.c:1033 0x557a9ae03feb 0x557a9ac20000
2017-09-03 19:25:30.748 [ ALERT] CRASH: /mnt/scratch/tvheadend/src/channels.c:1174 0x557a9ae05517 0x557a9ac20000
2017-09-03 19:25:30.768 [ ALERT] CRASH: /mnt/scratch/tvheadend/src/main.c:1213 (discriminator 3) 0x557a9add85ce 0x557a9ac20000
2017-09-03 19:25:30.768 [ ALERT] CRASH: __libc_start_main+0xea (/lib64/libc.so.6)
Aborted
History
Updated by Jaroslav Kysela about 7 years ago
It looks like a wrong build or so. Compile tvh with --enable-ccdebug (to see the real crash lines) and do 'make clean' before your build.
Updated by Deep Thought about 7 years ago
After a "mak clean" the problem disappeared. So this points to a problem in the Makefiles.