To see the problem in Jack, this example from the Jack project can do
it:

https://github.com/jackaudio/example-clients/blob/master/simple_client.c

Just add the "static __thread anything[8 * 1048576]" to it and
previously-working code begins doing this instead:

Cannot create thread res = 22
JackMessageBuffer::Create cannot start thread
Cannot create message buffer
Cannot create thread res = 22
Cannot start Jack client listener
Cannot start channel
JackShmReadWritePtr1::~JackShmReadWritePtr1 - Init not done for 4294967295, 
skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, 
skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, 
skipping unlock
jack_client_open() failed, status = 0x21

At least on my system, to get that output, the size of the allocation
must be at least 514025 bytes.  Using one byte less, it successfully
connects, but then segfaults later in a call to jack_activate();

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1757517

Title:
  An unused thread-local memory allocation can cause library calls to
  segfault.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1757517/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to