On Friday 04 June 2004 14:18, firstname.lastname@example.org wrote:
i do not remember the configure options for my glibc 2.3.3. I replaced it this
weekend with a brand new version 2.3.4 (nptl). And it now works! So i believe
it was a glibc problem on my system.
Googling around i found the following information about glibc and %gs usage
in the thread implementation:
"In order for our m-to-n threading scheme to work, we need to be able to swap
stacks for a single pthread. This only works if glibc is built with an option
to use the GS segment register to address certain pthread-specific state.
Otherwise, glibc attempts to use stack-pointer arithmetic to find
pthread-specific state, which fails once we bash the stack.
On Red Hat? Linux and SuSE® Linux, glibc is built with this option by default.
On Debian® GNU/Linux, as of this writing (6 May 2004), the version of x86
in the Debian Woody distribution does not use GS-segment addressing.
will use GS-segment addressing on 2.6 Linux kernels, but will not use it on
2.4 and 2.2 kernels."