Project

General

Profile

Bug #4286

Updated by Mark Clarkstone over 7 years ago

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)

<pre>
root@WRT1200AC:~# 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)

root@WRT1200AC:~# 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)
</pre>



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

<pre>


root@WRT1200AC:~# uname -a
Linux WRT1200AC 4.9.13 #0 SMP Wed Mar 1 02:06:40 2017 armv7l GNU/Linux
root@WRT1200AC:~# 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==
==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==
==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==
==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==
==10970==
==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==
==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==
==10970== All heap blocks were freed -- no leaks are possible
==10970==
==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
</pre>

Back