[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#339827: linuxthreads crashes when using user stacks



On Sat, Nov 19, 2005 at 01:59:22AM +0000, David Given wrote:
> The reason: because 2.4 kernels don't support thread local storage, 

That's not, in fact, true.  LinuxThreads uses thread local storage when
configured for i686.  The only i686-configured C libraries we ship for
x86 at this point in time use NPTL and require a 2.6 kernel.

> This bug is causing the application to be unusable on Debian systems with a 
> 2.4 kernel. The current workaround I'm suggesting is to compile a private 
> copy of the Sqlite library without pthreads enabled, and statically linking 
> against that; this is not really satisfactory.
> 
> Unfortunately, I can't suggest a fix --- this appears to be a fundamental 
> design problem with linuxthreads.
> 
> This appears on current Debian unstable systems. The application in question 
> is Spey, available from http://spey.sf.net; this can be reliably reproduced 
> on 2.4 kernel systems. Is there any more information that would be useful?

We could ship a fourth variant of fifth variant of glibc for i686 using
LinuxThreads.  I am not particularly motivated to do this considering
how rarely anyone encounters this problem, and the corresponding cost
in archive space, build time, and maintenance.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Reply to: