steep-balloon-41261
05/16/2023, 5:04 AMambitious-lunch-95812
05/16/2023, 5:04 AMboundless-energy-78552
05/16/2023, 6:27 AMboundless-energy-78552
05/16/2023, 9:28 AMambitious-lunch-95812
05/16/2023, 11:41 AMboundless-energy-78552
05/16/2023, 11:43 AMsudo apt install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev
inside the containerambitious-lunch-95812
05/16/2023, 11:49 AMambitious-lunch-95812
05/16/2023, 1:40 PMambitious-lunch-95812
05/16/2023, 1:41 PMambitious-lunch-95812
05/16/2023, 2:04 PMambitious-lunch-95812
05/16/2023, 2:06 PMdocker build --build-arg=ARCH=amd64 --tag gst-livekit --target gst-livekit
^edited: fixedambitious-lunch-95812
05/16/2023, 2:07 PMambitious-lunch-95812
05/16/2023, 8:00 PMstrace
on it.ambitious-lunch-95812
05/17/2023, 2:47 AMldd
output of the binary on your machine where it was working?boundless-energy-78552
05/17/2023, 10:11 AMlinux-vdso.so.1 (0x00007fff123a5000)
libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fbaa536e000)
libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fbaa5097000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbaa5091000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbaa506e000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbaa4f1f000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbaa4d3b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbaa4d20000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbaa4b2e000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbaa6b30000)
boundless-energy-78552
05/17/2023, 10:13 AMboundless-energy-78552
05/17/2023, 10:31 AMboundless-energy-78552
05/17/2023, 11:03 AMboundless-energy-78552
05/17/2023, 11:15 AMboundless-energy-78552
05/17/2023, 12:08 PMambitious-lunch-95812
05/17/2023, 1:38 PMbasic_room
example, so I'll test around with that. I wasn't able to get your branch to compile -- I get:
error: invalid instruction `cargo:rustc-link-arg-bins` from build script of `webrtc-sys v0.1.1 (/home/spiegela/client-sdk-rust/webrtc-sys)`
The package webrtc-sys v0.1.1 (/home/spiegela/client-sdk-rust/webrtc-sys) does not have a bin target.
So I modified it with:
- println!("cargo:rustc-link-arg-bins=-pthread");
+ println!("cargo:rustc-link-arg=-pthread");
With or without that change, I get the same result in `gdb`:
Starting program: /home/spiegela/client-sdk-rust/examples/target/debug/basic_room
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
...
Thread 1 "basic_room" received signal SIGSEGV, Segmentation fault.
___pthread_rwlock_wrlock (rwlock=0x0) at ./nptl/pthread_rwlock_wrlock.c:26
26 ./nptl/pthread_rwlock_wrlock.c: No such file or directory.
here are my pthread pakages:
$ dpkg -l |grep pthread
ii libevent-pthreads-2.1-7:amd64 2.1.12-stable-1build3 amd64 Asynchronous event notification library (pthreads)
ii libpthread-stubs0-dev:amd64 0.4-1build2 amd64 pthread stubs not provided by native libc, development files
ambitious-lunch-95812
05/17/2023, 1:39 PMboundless-energy-78552
05/17/2023, 1:42 PMambitious-lunch-95812
05/17/2023, 2:05 PMboundless-energy-78552
05/17/2023, 2:10 PMambitious-lunch-95812
05/17/2023, 2:38 PMcpp
from a rust binary -- gdb only list .rs
and .h
files in the available. It looks like there was a rwlock change starting in focal -- I'm going to test a bionic container just to see. It looks like this thread may apply: https://sourceware.org/bugzilla/show_bug.cgi?id=14958incalculable-ambulance-68856
05/17/2023, 6:02 PMambitious-lunch-95812
05/19/2023, 12:34 AM18.04/bionic
is not an answer (at least not without some deps changes)... bionic
only ships with libssl1.0 - libssl1.1
which are incompatible with recent versions of reqwest
I'm experimenting with LD_LIBRARY_PATH
and RUSTFLAGS
to try and get libpthread
to linkambitious-lunch-95812
05/19/2023, 1:38 AMlibpthread
installing libpthread-stubs0-dev
did change the error message somewhat...
Thread 1 "basic_room" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=548547805216, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
ambitious-lunch-95812
05/19/2023, 1:42 AM