diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-03-02 15:20:55 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-03-03 15:10:20 +0900 |
commit | 84c871f70e71b6435ad4beea851e74c423c667eb (patch) | |
tree | 7e254aa358d76d2ef50e8c18a22fbc9ad806c9a7 | |
parent | 6eb5802177f7314b4c553f04cf2c62eb58761b2a (diff) | |
download | glibc-84c871f70e71b6435ad4beea851e74c423c667eb.tar.gz |
Brutal workaround pthread initialization issue
Without this hack, running a program linked to pthreads
results in:
allocatestack.c:470: allocate_stack: Assertion `size != 0' failed.
This horrid patch was found by others whom experienced the same issue:
https://sourceware.org/ml/libc-help/2012-07/msg00058.html
and:
http://www.poared.com/wordpress/?p=79 (Japanese)
-rw-r--r-- | nptl/nptl-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 1ad41c5bb3..ab61a38924 100644 --- a/nptl/nptl-init.c +++ b/nptl/nptl-init.c @@ -294,7 +294,7 @@ extern void **__libc_dl_error_tsd (void) __attribute__ ((const)); /* This can be set by the debugger before initialization is complete. */ static bool __nptl_initial_report_events __attribute_used__; -void +void __attribute__((constructor)) __pthread_initialize_minimal_internal (void) { #ifndef SHARED |