[Bug 1757517] [NEW] An unused thread-local memory allocation can cause library calls to segfault.

2018-03-21 Thread Moosfet
Public bug reported: I've discovered that adding "static __thread anything[8 * 1048576]" to otherwise working programs will cause them to segfault. I've attached a short example that demonstrates the problem. Compile the attached program like this: gcc -o test test.c -lpthread -lasound When ru

[Bug 1757517] Re: An unused thread-local memory allocation can cause library calls to segfault.

2018-03-21 Thread Moosfet
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 JackM