Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undocumented crash when using libjack and libjackserver #331

Closed
chris-kuhr opened this issue Mar 6, 2018 · 1 comment
Closed

Undocumented crash when using libjack and libjackserver #331

chris-kuhr opened this issue Mar 6, 2018 · 1 comment
Labels
hint Not a bug or feature, but giving a hint on something

Comments

@chris-kuhr
Copy link

Hi *,

I am dokumenting this behavior here, since it is known but undocumented.

I observed some strange behavior of libjack and libjackserver.

If I have a multiprocessing application with one jack server fork and one jack client fork, jack_client_open crashs.

Here the backtrace:
#0 __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:174
#1 0x00007f83dddb803f in jack_find_driver_descriptor(_JSList*, char const*) () from /usr/local/lib/libjackserver.so.0
#2 0x00007f83dddb9ef8 in Jack::JackServerGlobals::Init() () from /usr/local/lib/libjackserver.so.0
#3 0x00007f83dddb64f8 in jack_client_open_aux(char const*, JackOptions, JackStatus*, __va_list_tag*) () from /usr/local/lib/libjackserver.so.0
#4 0x00007f83dddb67b1 in jack_client_open () from /usr/local/lib/libjackserver.so.0
#5 0x0000000000414f04 in talker_Process (arguments=0x63f680 ) at ../src/net/avb/talker/talker_process.c:395
#6 0x000000000042d487 in avbruntime (arguments=0x63f680 ) at ../src/avbruntime.c:644
#7 0x000000000042e888 in main (argc=11, argv=0x7ffebee6f678) at ../src/main.c:144

The interesting thing is, jack_client_open keeps crashing if I remove all the jack server code.

It was neccessary to remove the -ljackserver linker option as well, because the client code linked against libjackserver.so instead of libjack.so.

If the order of linker option is changed, first link libjack and afterwards libjackserver, it works.

For anyone having the same issue.

BR,
Ck

@7890 7890 added the hint Not a bug or feature, but giving a hint on something label Jan 15, 2019
@7890
Copy link
Contributor

7890 commented Jan 15, 2019

Archiving this hint

@7890 7890 closed this as completed Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hint Not a bug or feature, but giving a hint on something
Projects
None yet
Development

No branches or pull requests

2 participants