Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 1.0.0-beta3
-
Component/s: Liquidsoap
-
Labels:None
Description
Bug when i start liquidsoap (gentoo hardner)
I thinks it's coming from clone()
{{{
Thread 2 (Thread 0x7f43a8604950 (LWP 4278)):
#0 0x00007f43a905c4a2 in select () from /lib/libc.so.6
#1 0x00000000005267bf in caml_thread_tick ()
#2 0x00007f43ab113087 in start_thread () from /lib/libpthread.so.0
#3 0x00007f43a906277d in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7f43abdc4700 (LWP 4274)):
#0 0x0000000000000000 in ?? ()
#1 0x0000000000820278 in camlMap__5 ()
#2 0x00000000004e1ffb in camlPcre__entry ()
#3 0x00007f43abdbe9a8 in ?? ()
#4 0x000000000040bdfa in caml_startup__code_begin ()
#5 0x000000000032c421 in ?? ()
#6 0x000000000053e1f2 in caml_start_program ()
#7 0x0000000000000000 in ?? ()
}}}
I thinks it's coming from clone()
{{{
Thread 2 (Thread 0x7f43a8604950 (LWP 4278)):
#0 0x00007f43a905c4a2 in select () from /lib/libc.so.6
#1 0x00000000005267bf in caml_thread_tick ()
#2 0x00007f43ab113087 in start_thread () from /lib/libpthread.so.0
#3 0x00007f43a906277d in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7f43abdc4700 (LWP 4274)):
#0 0x0000000000000000 in ?? ()
#1 0x0000000000820278 in camlMap__5 ()
#2 0x00000000004e1ffb in camlPcre__entry ()
#3 0x00007f43abdbe9a8 in ?? ()
#4 0x000000000040bdfa in caml_startup__code_begin ()
#5 0x000000000032c421 in ?? ()
#6 0x000000000053e1f2 in caml_start_program ()
#7 0x0000000000000000 in ?? ()
}}}
Is gentoo "hardner" a security hardened version? If so, do you have any explanation or link to why clone() is considered unsafe?
yes bug is segfault (sorry i'm missing to tell that)
I thinks it's clone() because strace en gdb stop juste avec clone()
The thread 2 is locked on a select. The segfault is more likely to occur in thread 1, where ocaml-pcre is used. Could you please try to rebuild ocaml-pcre and then liquidsoap?
confirm this. i've rebuild my pcre-ocaml(5.15.0) package and liquidsoap and nothing changes. i cant install liquidsoap with "make install", because liqi crashes(i think with pcre too).
{{{
$ make install
make -C liquidsoap-0.9.0 install
make[1]: Entering directory `/home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0'
make -C doc doc-install
make[2]: Entering directory `/home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0/doc'
make[3]: Entering directory `/home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0/doc/content'
make[3]: Leaving directory `/home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0/doc/content'
make[3]: Entering directory `/home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0/doc/liqi'
make[4]: Entering directory `/home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0/doc/liqi'
make[4]: `liqi' is up to date.
make[4]: Leaving directory `/home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0/doc/liqi'
make[3]: Leaving directory `/home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0/doc/liqi'
Converting content/advanced.txt to html/advanced.html...
/bin/sh: line 1: 18999 Segmentation fault ../liqi/liqi -i ../content/advanced.txt -o ../html/advanced.html
make[2]: *** [html/advanced.html] Error 139
make[2]: Leaving directory `/home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0/doc'
make[1]: *** [doc-install] Error 2
make[1]: Leaving directory `/home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0'
}}}
{{{
$ gdb ./liquidsoap-0.9.0/doc/liqi/liqi
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
(no debugging symbols found)
(gdb) run
Starting program: /home/somebody/Desktop/liquidsoap-full-0.9.0/liquidsoap-0.9.0/doc/liqi/liqi
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0x7f6e5074a6f0 (LWP 19003)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f6e5074a6f0 (LWP 19003)]
0x0000000000000000 in ?? ()
(gdb) thread apply all bt
Thread 1 (Thread 0x7f6e5074a6f0 (LWP 19003)):
#0 0x0000000000000000 in ?? ()
#1 0x00007f6e50747e88 in ?? ()
#2 0x000000000041538b in camlPcre__entry ()
#3 0x00007f6e507475c8 in ?? ()
#4 0x0000000000404bbb in caml_startup__code_begin ()
#5 0x00000000000a350a in ?? ()
#6 0x000000000044b47a in caml_start_program ()
#7 0x0000000000000000 in ?? ()
(gdb)
}}}