Bug #4764
Crash TVHeadend server with hw transcode vaapi
Start date:
2017-12-04
Due date:
% Done:
0%
Estimated time:
Found in version:
4.3-741~g0b24fb8
Affected Versions:
Description
Versions are:
OS: CentOS Linux release 7.4.1708 (Core)
tvheadend : 4.3-741~g0b24fb8
tvh build args:
--program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-lockowner --enable-bundle --enable-ffmpeg_static --enable-libx265 --enable-vaapi
vaapi info:
libva info: VA-API version 1.0.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_0 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.0 (libva 2.0.1.pre1) vainfo: Driver version: Intel i965 driver for Intel(R) Bay Trail - 2.0.1.pre1 (2.0.0-20-g76d9e59) vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264StereoHigh : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc VAProfileJPEGBaseline : VAEntrypointVLD
cpuinfo:
processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 55 model name : Intel(R) Celeron(R) CPU J1800 @ 2.41GHz stepping : 8 microcode : 0x831 cpu MHz : 1332.881 cache size : 1024 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm ida arat bogomips : 4825.60 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:
Crash log:
Dec 4 12:08:56 localhost tvheadend[15951]: htsp: Got connection from ::ffff:83.219.143.110 Dec 4 12:08:56 localhost tvheadend[15951]: htsp: ::ffff:83.219.143.110: Identified as user 'car' (unverified) Dec 4 12:08:56 localhost tvheadend[15951]: htsp: ::ffff:83.219.143.110 [ car ]: Welcomed client software: org.tvheadend.tvhclient (HTSPv23) Dec 4 12:08:56 localhost tvheadend[15951]: htsp: ::ffff:83.219.143.110 [ car | org.tvheadend.tvhclient ]: Identified as user 'car' Dec 4 12:08:56 localhost tvheadend[15951]: htsp: ::ffff:83.219.143.110 [ car | org.tvheadend.tvhclient ]: Privileges updated Dec 4 12:09:07 localhost tvheadend[15951]: http: ::ffff:83.219.143.110: using ticket CDDD987FA280B8C1C8D709507AD833385122A59B for /stream/channelid/838321601 Dec 4 12:09:07 localhost tvheadend[15951]: subscription: 0017: "HTTP" subscribing on channel "Первый канал HD", weight: 100, adapter: "Tmax TAS2101 #0 : DVB-S #0", network: "NTVPlus", mux: "12130.26R", provider: "HTB+", service: "Первый канал HD", profile="webtv-h264-vaapi-matroska", hostname="::ffff:83.219.143.110", username="car", client="LG-D405/V20b Player/LG Player 1.0 for Android 5.0.2 (stagefright alternative)" Dec 4 12:09:09 localhost tvheadend[15951]: http: ::ffff:83.219.143.110: using ticket CDDD987FA280B8C1C8D709507AD833385122A59B for /stream/channelid/838321601 Dec 4 12:09:09 localhost tvheadend[15951]: subscription: 0018: "HTTP" subscribing on channel "Первый канал HD", weight: 100, adapter: "Tmax TAS2101 #0 : DVB-S #0", network: "NTVPlus", mux: "12130.26R", provider: "HTB+", service: "Первый канал HD", profile="webtv-h264-vaapi-matroska", hostname="::ffff:83.219.143.110", username="car", client="Mozilla/5.0 (Linux; Android 5.0.2; ru-RU; LG-D405 Build/LRX22G.A1455269631) MXPlayer/1.8.16" Dec 4 12:09:09 localhost tvheadend[15951]: subscription: 0017: "HTTP" unsubscribing from "Первый канал HD", hostname="::ffff:83.219.143.110", username="car", client="LG-D405/V20b Player/LG Player 1.0 for Android 5.0.2 (stagefright alternative)" Dec 4 12:09:41 localhost tvheadend[15951]: subscription: 0018: "HTTP" unsubscribing from "Первый канал HD", hostname="::ffff:83.219.143.110", username="car", client="Mozilla/5.0 (Linux; Android 5.0.2; ru-RU; LG-D405 Build/LRX22G.A1455269631) MXPlayer/1.8.16" Dec 4 12:09:47 localhost tvheadend[15951]: http: ::ffff:83.219.143.110: using ticket 11D8C84D25963C8C2CBD16C445F46E2A594CEBBB for /stream/channelid/1038703848 Dec 4 12:09:47 localhost tvheadend[15951]: mpegts: 12015.18R in NTVPlus - tuning on Tmax TAS2101 #2 : DVB-S #0 Dec 4 12:09:48 localhost tvheadend[15951]: capmt: shara: Starting CAPMT server for service "МАТЧ! HD" on adapter 2 Dec 4 12:09:48 localhost tvheadend[15951]: subscription: 0019: "HTTP" subscribing on channel "МАТЧ! HD", weight: 100, adapter: "Tmax TAS2101 #2 : DVB-S #0", network: "NTVPlus", mux: "12015.18R", provider: "HTB+", service: "МАТЧ! HD", profile="webtv-h264-vaapi-matroska", hostname="::ffff:83.219.143.110", username="car", client="LG-D405/V20b Player/LG Player 1.0 for Android 5.0.2 (stagefright alternative)" Dec 4 12:09:48 localhost tvheadend[15951]: transcode: 0002: 01:H264: ==> Using profile webtv-h264-vaapi Dec 4 12:09:48 localhost tvheadend[15951]: transcode: 0002: 02:MPEG2AUDIO: ==> Copy Dec 4 12:09:48 localhost tvheadend[15951]: transcode: 0002: 03:MPEG2AUDIO: ==> Copy Dec 4 12:09:48 localhost tvheadend[15951]: transcode: 0002: 05:TEXTSUB: ==> Filtered out Dec 4 12:09:50 localhost tvheadend[15951]: http: ::ffff:83.219.143.110: using ticket 11D8C84D25963C8C2CBD16C445F46E2A594CEBBB for /stream/channelid/1038703848 Dec 4 12:09:50 localhost tvheadend[15951]: subscription: 001A: "HTTP" subscribing on channel "МАТЧ! HD", weight: 100, adapter: "Tmax TAS2101 #2 : DVB-S #0", network: "NTVPlus", mux: "12015.18R", provider: "HTB+", service: "МАТЧ! HD", profile="webtv-h264-vaapi-matroska", hostname="::ffff:83.219.143.110", username="car", client="Mozilla/5.0 (Linux; Android 5.0.2; ru-RU; LG-D405 Build/LRX22G.A1455269631) MXPlayer/1.8.16" Dec 4 12:09:51 localhost tvheadend[15951]: subscription: 0019: "HTTP" unsubscribing from "МАТЧ! HD", hostname="::ffff:83.219.143.110", username="car", client="LG-D405/V20b Player/LG Player 1.0 for Android 5.0.2 (stagefright alternative)" Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-741~g0b24fb8) [255f5ba75d6572e27c112f260f5d6328ee43eb5d] CWD: / Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: Fault address 0x20 (Address not mapped) Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: Loaded libraries: /lib/libdvben50221.so /lib/libdvbapi.so /lib/libucsi.so /lib64/libssl.so.10 /lib64/libcrypto.so.10 /lib64/libz.so.1 /lib64/libpcre2-8.so.0 /lib64/liburiparser.so.1 /lib64/libavahi-common.so.3 /lib64/libavahi-client.so.3 /lib/libva.so.2 /lib/libva-x11.so.2 /lib/libva-drm.so.2 /lib64/libdbus-1.so.3 /lib64/libdl.so.2 /lib64/libpthread.so.0 /lib64/libm.so.6 /lib64/librt.so.1 /lib64/libX11.so.6 /lib64/libxcb.so.1 /lib64/libxcb-shm.so.0 /lib64/libxcb-xfixes.so.0 /lib64/libxcb-shape.so.0 /lib64/libstdc++.so.6 /lib64/libnuma.so.1 /lib64/liblzma.so.5 /lib64/libc.so.6 /lib64/libgssapi_krb5.so.2 /lib64/libkrb5.so.3 /lib64/libcom_err.so.2 /lib64/libk5crypto.so.3 /lib64/libXext.so.6 /lib64/libXfixes.so.3 /lib64/libdrm.so.2 /lib64/ld-linux-x86-64.so.2 /lib64/libXau.so.6 /lib64/libgcc_s.so.1 /lib64/libkrb5support.so.0 /lib64/libkeyutils.so.1 /lib64/libresolv.so.2 /lib64/libselinux.so.1 /lib64/libpcre.so.1 /lib64/libnss_files.so.2 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: Register dump [23]: 00000000000001e00000000000000440000000000000044000000000000002060000557087648e5000007fe1543e26f0000000000000044000000000000001e0000000000000000000007fe14a9f2fe80000000000000000000000000000000000007fe14a9f2fec00000000000001e0000000000000000000007fe14a9f2fc800007fe148f243c0000000000001020200000000000000330000000000000004000000000000000efffffffe7ffbba130000000000000020 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: STACKTRACE Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/src/trap.c:148 0x5570823a98ba 0x55708214a000 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: ??:0 0x7fe1669c15e0 0x7fe1669b2000 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: drm_intel_bo_get_tiling+0x0 (/lib64/libdrm_intel.so.1) Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: ??:0 0x7fe1491c4b72 0x7fe149145000 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: ??:0 0x7fe1491c9d31 0x7fe149145000 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: ??:0 0x7fe1491c3967 0x7fe149145000 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: ??:0 0x7fe1491caf3d 0x7fe149145000 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: vaEndPicture+0x5f (/lib/libva.so.2) Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/build.linux/ffmpeg/ffmpeg-3.4/libavfilter/vf_deinterlace_vaapi.c:534 0x5570824a2ff0 0x55708214a000 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/build.linux/ffmpeg/ffmpeg-3.4/libavfilter/avfilter.c:1142 0x5570824992da 0x55708214a000 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/build.linux/ffmpeg/ffmpeg-3.4/libavfilter/buffersrc.c:181 0x55708249d770 0x55708214a000 Dec 4 12:10:07 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/build.linux/ffmpeg/ffmpeg-3.4/libavfilter/buffersrc.c:170 0x55708249d937 0x55708214a000 Dec 4 12:10:08 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/src/transcoding/transcode/context.c:366 0x557082474247 0x55708214a000 Dec 4 12:10:08 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/src/transcoding/transcode/context.c:420 0x557082474351 0x55708214a000 Dec 4 12:10:08 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/src/transcoding/transcode/context.c:435 0x5570824751d3 0x55708214a000 Dec 4 12:10:08 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/src/transcoding/transcode/stream.c:125 0x55708247564d 0x55708214a000 Dec 4 12:10:08 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/src/transcoding/transcode/transcoder.c:93 0x55708247620c 0x55708214a000 Dec 4 12:10:08 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/src/plumbing/tsfix.c:318 0x5570823e51c9 0x55708214a000 Dec 4 12:10:08 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/src/profile.c:896 0x5570823c26e4 0x55708214a000 Dec 4 12:10:08 localhost tvheadend[15951]: CRASH: /home/dist_tvheadend/tvheadend/src/wrappers.c:161 0x55708236e9e2 0x55708214a000 Dec 4 12:10:08 localhost kernel: tvh:sharer[16137]: segfault at 20 ip 00007fe148f243c0 sp 00007fe14a9f2fc8 error 4 in libdrm_intel.so.1.0.0[7fe148f21000+22000] Dec 4 12:10:08 localhost systemd: tvheadend.service: main process exited, code=killed, status=11/SEGV Dec 4 12:10:08 localhost systemd: Unit tvheadend.service entered failed state.
Files
History
Updated by Jaroslav Kysela almost 7 years ago
The crash is deeply in the libdrm_intel.so, so you should probably report the issue there: https://01.org/linuxgraphics/community/libdrm
Updated by Andrey Orlin almost 7 years ago
The problem occurs when I watch two streams simultaneously
Updated by Andrey Orlin almost 7 years ago
Ok. Thanks.
If this is not tvheadend problem, then you can close this issue