Bug #4286

Tvheadend latested git Segmentation fault

Added by Harry Lau 14 days ago. Updated 14 days ago.

Status:NewStart date:2017-03-17
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Found in version:4.1-2409~g4db3eec Affected Versions:


build lastested git for router wrt1200ac LEDE (using musl C library) found Segmentation fault when executed command tvheadend -v

No problem with version 4.0 (https://github.com/tvheadend/tvheadend/tree/release/4.0)
No problem with lastested git for openwrt 15.05.1(using uclibc C library)

[email protected]:~# ldd /tmp/syscfg/bin/tvheadend   (openwrt 15.05.1)
        /lib/ld-uClibc.so.0 (0x7f5ef000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb642c000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb62eb000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb62c9000)
        libdl.so.0 => /lib/ld-uClibc.so.0 (0x7f5ef000)
        libpthread.so.0 => /lib/ld-uClibc.so.0 (0x7f5ef000)
        libm.so.0 => /lib/ld-uClibc.so.0 (0x7f5ef000)
        librt.so.0 => /lib/ld-uClibc.so.0 (0x7f5ef000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb62af000)
        libc.so.0 => /lib/ld-uClibc.so.0 (0x7f5ef000)

[email protected]:~# ldd /tmp/syscfg/bin/tvheadend.lede.new  (latested LEDE)
        /lib/ld-musl-armhf.so.1 (0x7f56a000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb63b0000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb626f000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb624d000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6233000)
        libc.so => /lib/ld-musl-armhf.so.1 (0x7f56a000)

LEDE forum also reported this problem (https://forum.lede-project.org/t/tvheadend-latested-git-segfault/2268)

[email protected]:~# uname -a
Linux WRT1200AC 4.9.13 #0 SMP Wed Mar 1 02:06:40 2017 armv7l GNU/Linux
[email protected]:~# valgrind --trace-children=yes --track-origins=yes --leak-check=full --show-reachable=yes /tmp/syscfg/bin/tvheadend.lede.new -v
==10970== Memcheck, a memory error detector
==10970== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==10970== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==10970== Command: /tmp/syscfg/bin/tvheadend.lede.new -v
==10970== Conditional jump or move depends on uninitialised value(s)
==10970==    at 0x404B800: ??? (in /lib/libc.so)
==10970==  Uninitialised value was created by a stack allocation
==10970==    at 0x4056330: ??? (in /lib/libc.so)
==10970== Use of uninitialised value of size 4
==10970==    at 0x404B804: ??? (in /lib/libc.so)
==10970==  Uninitialised value was created by a stack allocation
==10970==    at 0x4056330: ??? (in /lib/libc.so)
==10970== Conditional jump or move depends on uninitialised value(s)
==10970==    at 0x404B218: ??? (in /lib/libc.so)
==10970==  Uninitialised value was created by a stack allocation
==10970==    at 0x4056330: ??? (in /lib/libc.so)
==10970== Process terminating with default action of signal 11 (SIGSEGV)
==10970==  Bad permissions for mapped region at address 0x36961C
==10970==    at 0x4055760: ??? (in /lib/libc.so)
==10970== HEAP SUMMARY:
==10970==     in use at exit: 0 bytes in 0 blocks
==10970==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==10970== All heap blocks were freed -- no leaks are possible
==10970== For counts of detected and suppressed errors, rerun with: -v
==10970== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
Segmentation fault


#1 Updated by Mark Clarkstone 14 days ago

  • Description updated (diff)

Added <\pre> formatting.

#2 Updated by Harry Lau 14 days ago

strings /tmp/syscfg/bin/tvheadend.lede.new

Configure arguments:
--target=arm-openwrt-linux --host=arm-openwrt-linux --build=i686-pc-linux-gnu --program-prefix= --program-suffix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --disable-cwc --disable-v4l --disable-avahi --disable-dvbcsa --disable-tvhcsa --disable-dbus_1 --disable-capmt --disable-constcw --disable-iptv --disable-satip_server --disable-satip_client --disable-imagecache --disable-uriparser --disable-libx264_static --disable-libmfx_static --disable-libx265_static --disable-hdhomerun_static --release --enable-bundle --enable-trace --enable-dvbconv --disable-libav --disable-libffmpeg_static --disable-ffmpeg --disable-ffmpeg_static
Using C compiler: ccache arm-openwrt-linux-muslgnueabi-gcc
Using C flags: -Os -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap/hd1/lede/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/tvheadend-master:tvheadend-master -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro
Using LD flags: -L/hd1/lede/source/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/lib -L/hd1/lede/source/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/lib -L/hd1/lede/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl_eabi/usr/lib -L/hd1/lede/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl_eabi/lib -znow -zrelro
Build for arch: arm
Using PYTHON: python
Using GZIP: gzip
Using BZIP2: bzip2
pie yes
ccdebug no
cwc no
capmt no
constcw no
linuxdvb yes
satip_server no
satip_client no
hdhomerun_client no
hdhomerun_static no
iptv no
tsfile yes
dvbscan yes
timeshift yes
trace yes
imagecache no
avahi no
zlib yes
libav no
ffmpeg_static no
libx264 yes
libx264_static no
libx265 yes
libx265_static no
libvpx yes
libvpx_static yes
libtheora yes
libtheora_static yes
libvorbis yes
libvorbis_static yes
libfdkaac yes
libfdkaac_static yes
nvenc no
qsv no
libmfx_static no
inotify yes
epoll yes
uriparser no
ccache yes
tvhcsa no
bundle yes
dvbcsa no
dvben50221 no
kqueue no
dbus_1 no
android no
tsdebug no
gtimer_check no
slow_memoryinfo no
libsystemd_daemon no
bintray_cache yes
W_unused_result yes
getloadavg yes
atomic64 yes
atomic_time_t yes
bitops64 yes
stime yes
gmtoff yes
recvmmsg yes
sendmmsg yes
ifnames yes
py_gzip yes
bin_pkg_config yes
bin_xgettext yes
bin_msgmerge yes
bin_gzip yes
bin_bzip2 yes
ssl yes
linuxdvbapi yes
inotify_h yes
mpegts yes
mpegts_dvb yes
openssl 1.0.2k
zlib 1.2.11
Installation paths:
Prefix: /usr
Binaries: /usr/bin
Libraries: ${prefix}/lib
Data files: /usr/share
Man pages: /usr/man

Also available in: Atom PDF