public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* what happened with thread, from 2.2 to 2.4 ?!
@ 2001-12-02 14:33 Blindauer Emmanuel
  2001-12-02 16:31 ` David Relson
  2001-12-04 18:37 ` Gerold Jury
  0 siblings, 2 replies; 4+ messages in thread
From: Blindauer Emmanuel @ 2001-12-02 14:33 UTC (permalink / raw)
  To: Linux Kernel

Hi
what happenned with thread from 2.2 to 2.4?
I have some problems with threaded programs, working under 2.2 and no more 
under 2.4
The test program is short:
----
#include <stdlib.h>
void main() {
  char *t="1.0";
  double d=0;
  d=strtod(t,(char **)NULL);
}
---
this program compiled with "gcc -g -lpthread test.c" has strange behaviour. 
The problem only appear using gdb to see the value of d
In most case, the value returned by strtod under a 2.4 kernel is nan.
I say most, because some 2.4 kernels don't fail other this line.
I have done some test with differents distributions, and so differents 
version of kernel, gcc, gdb and libc.
http://manu.agat.net/bug.html

When it was possible, for the computer with the bug, under an 2.4 kernel, 
I've recompiled a 2.2.20, and the bug has disappeared!

Does someone have an idea about that ?

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: what happened with thread, from 2.2 to 2.4 ?!
@ 2001-12-02 15:42 Manfred Spraul
  0 siblings, 0 replies; 4+ messages in thread
From: Manfred Spraul @ 2001-12-02 15:42 UTC (permalink / raw)
  To: Blindauer Emmanuel; +Cc: linux-kernel

>
> When it was possible, for the computer with the bug, under an 2.4 kernel, 
> I've recompiled a 2.2.20, and the bug has disappeared!
>
Could you strace a gdb session for the same executable, with 2.2.20 and 2.4?

--
    Manfred



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-12-04 18:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-02 14:33 what happened with thread, from 2.2 to 2.4 ?! Blindauer Emmanuel
2001-12-02 16:31 ` David Relson
2001-12-04 18:37 ` Gerold Jury
  -- strict thread matches above, loose matches on Subject: below --
2001-12-02 15:42 Manfred Spraul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox