GithubHelp home page GithubHelp logo

test-alsa-ctl fails with bluealsa-mock: W: Couldn't get HCI device info: Address family not supported by protocol about bluez-alsa HOT 2 CLOSED

pacho2 avatar pacho2 commented on July 2, 2024
test-alsa-ctl fails with bluealsa-mock: W: Couldn't get HCI device info: Address family not supported by protocol

from bluez-alsa.

Comments (2)

arkq avatar arkq commented on July 2, 2024

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:

  1. Run test application.
  2. The getenv(LD_PRELOAD) shows: libsandbox.so
  3. Customize LD_PRELOAD (prepend .libs/aloader.so to it)
  4. Call execve() on self with modified env.
  5. The getenv(LD_PRELOAD) shows: .libs/aloader.so:libsandbox.so
  6. The aloader.so is detected in LD_PRELOAD, so test application proceeds with tests
  7. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.