From: Blindauer Emmanuel <manu@agat.net>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: what happened with thread, from 2.2 to 2.4 ?!
Date: Sun, 2 Dec 2001 15:33:43 +0100 [thread overview]
Message-ID: <01120215334302.00742@extasia> (raw)
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 ?
next reply other threads:[~2001-12-02 14:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-02 14:33 Blindauer Emmanuel [this message]
2001-12-02 16:31 ` what happened with thread, from 2.2 to 2.4 ?! 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=01120215334302.00742@extasia \
--to=manu@agat.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.