Re: [OpenWrt-Devel] Alsa-lib (libasound) segfaults on TLS variable (musl on mips)

2015-06-24 Thread Szabolcs Nagy
* Szabolcs Nagy [2015-06-24 22:57:54 +0200]: > the bug is that mips tls access uses a hard coded -32768 > offset relative to whatever __tls_get_addr returned. > > and musl did not account for this offset. > only affects mips shared objects with 'static __thread' variables, extern __thread vari

Re: [OpenWrt-Devel] Alsa-lib (libasound) segfaults on TLS variable (musl on mips)

2015-06-24 Thread Szabolcs Nagy
* Ted Hess [2015-06-23 18:04:35 -0400]: > Segfault in 'snd_lib_error_set_local' (error.c) referencing > static __thread snd_local_error_handler_t local_error; > > Program received signal SIGSEGV, Segmentation fault. > 0x0041b164 in snd_lib_error_set_local () > (gdb) bt > #0 0x0041b164 in snd_lib_

[OpenWrt-Devel] Alsa-lib (libasound) segfaults on TLS variable (musl on mips)

2015-06-23 Thread Ted Hess
I believe this to be an independent problem from the pthread_detach() discussion: "musl breaks python". I’m re-posting this to openwrt-devel to get more devos aware of the issue. Note that I am using the latest musl/gcc patches as of today (23-Jun). FWIW -- Here's what I know... To easily repr