Comments (2)
It seems that the problem is indeed with libsandbox.so
being preloaded.
Maybe you are more familiar with running application in Gentoo's sandbox. When running tests, in bluez-alsa, I'm preloading custom library to catch calls to ALSA library in order not to use system-wide ALSA configuration. This works fine outside of the sandbox, but when running ebuild bluez-alsa-9999.ebuild test
it fails to work. The flow is as follows:
- Run test application.
- The
getenv(LD_PRELOAD)
shows:libsandbox.so
- Customize LD_PRELOAD (prepend
.libs/aloader.so
to it) - Call
execve()
on self with modified env. - The
getenv(LD_PRELOAD)
shows:.libs/aloader.so:libsandbox.so
- The
aloader.so
is detected in LD_PRELOAD, so test application proceeds with tests - Run
ldd
on self (i.e.:sprintf(command, "ldd %s", argv[0])
), which shows:linux-vdso.so.1 (0x00007ffdcb7e8000) libsandbox.so => /usr/lib64/libsandbox.so (0x00007f7ee4320000) libasound.so.2 => /usr/lib64/libasound.so.2 (0x00007f7ee4237000) libcheck.so.0 => /usr/lib64/libcheck.so.0 (0x00007f7ee4229000) libc.so.6 => /usr/lib64/libc.so.6 (0x00007f7ee404a000) libm.so.6 => /usr/lib64/libm.so.6 (0x00007f7ee3f69000) /lib64/ld-linux-x86-64.so.2 (0x00007f7ee435a000)
The custom library is not preloaded.... So, the test will fail if the bluez-alsa is already installed on the system.
@pacho2, have you even seen similar issues when installing packages from portage?
EDIT:
It seems that the issue is within bluez-alsa code.
from bluez-alsa.
Related Issues (20)
- build/install: LC3Plus libraries?? HOT 2
- HSP HS profile: "arecord -d" duration is ignored HOT 1
- Routing audio to bluealsa from hw:0,1 HOT 31
- Test all deps with pkgconfig HOT 10
- arecord Unable to install hw params, record from bluetooth failed HOT 3
- Error compiling with aptx HOT 1
- Audio cut off in the beginning of the file HOT 3
- how can an SCO link be reestablished after it has been disconnected by the HF device? HOT 2
- How to pipe bluealsa PCM to fifo? HOT 18
- aplay Unable to install hw params HOT 1
- Can't get the A2DP profile to use LDAC codec HOT 11
- LDAC shows only 96KHz as sample rate | support for other sampling rates HOT 14
- Configuring asoundrc for default bluetooth ignored for Internet Browsers? HOT 2
- LE Audio support in bluez-alsa HOT 1
- Audio volume does not go to 100% on Raspberry Pi HOT 19
- Can't detect libsystemd-dev on debian trixie HOT 2
- test-alsa-midi fails due to permission errors HOT 2
- Build failure: undeclared variables HOT 9
- Distorted recording with certain mic (but not in pulseaudio) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluez-alsa.