Here the program for test:test.c
Compile with: gcc -g -lpthread test.c

Bug solved. Was gdb 5.0 and 5.1 related. Use 5.1.1 instead

debug (no bug):
gdb a.out
... snip ...
(gdb) b 6
Breakpoint 1 at 0x804846b: file test.c, line 6.
(gdb) r
Starting program: a.out
[New Thread 1024 (LWP 2159)]
[Switching to Thread 1024 (LWP 2159)]
Breakpoint 1, main () at test.c:6
6 d=strtod(t,(char **)NULL);
(gdb) p d
$1 = 0
(gdb) n
7 return(0);
(gdb) p d
$2 = 1
(gdb)
debug (bug present):
gdb a.out
... snip ...
(gdb) b 6
Breakpoint 1 at 0x804848b: file test.c, line 6.
(gdb) r
Starting program: a.out
[New Thread 1024 (LWP 10936)]
[Switching to Thread 1024 (LWP 10936)]
Breakpoint 1, main () at test.c:6
6 d=strtod(t,(char **)NULL);
(gdb) p d
$1 = 0
(gdb) n
7 return(0);
(gdb) p d
$2 = -nan(0x8000000000000)
(gdb)
Results:
distrib
libc
libthread
gdb
noyau
gcc
bug present
cpu
nom
remarques
Debian testing
2.2.4
0.9 5.0.90-cvs
2.4.14 compiled from source
2.95.4 20011006
yes
PII 450
extasia
gdb 20010813
RH 6.1
2.1.3
0.8
4.18
2.2.12-20 rpm
egcs-2.91.66 19990314
no
PII 266
ns3
gdb 4.18 is old
mdk 8.1
2.2.4
0.9
5.0-17
2.4.8smp rpm
2.96 20000731
yes
bi PII 350
juliette

rh 7.0
2.2.4
0.9
5.0-7
2.2.19 compiled from source
2.96 20000731
no
AMD 1.1
atia

rh 7.2
2.2.4
0.9
5.0rh-5
2.4.7-10 rpm
2.96 20000731
yes
PII 350
vmware2
vmware 3
N/A
2.2.4
0.9
5.0 cvs
2.4.16 compiled from source

yes
N/A
canard

N/A
2.2.4
0.9
5.0 cvs
2.2.14
2.95.4 20011006
no
motorola
jb

N/A
2.2.4
0.9
5.0.90
2.2.19pre (from apt-get?)

no
6x86
vb

slack
2.2.3
0.9
5.0
2.4.14smp compiled from source
2.95.3
no
bi Athlon 1200
dilbert

slack
2.2.3
0.9
5.0
2.4.10 compiled from source
2.95.3
no
athlon 750
dilbert

suse


5.0
2.2.19
2.95.2
no
k6 233
dilbert

Debian unstable
2.2.4
0.9
5.0.90cvs
2.2.17 debian package
2.95-4 20011006
no
PII 350
vmware
vmware 3
rh 7.0
2.2
0.9
5.0-7
2.2.16smp rpm
2.96 20000731
no
Bi PII 375
hydria
2.2 glibc no more info rfrom executing libc.so.6
rh 7.2 2.2.4
0.9
5.0rh-15
2.4.13 compiled from source

yes
PIII 650
glop

Debian unstable
2.2.4
0.9
5.0.90cvs
2.4.16 compiled from source

yes
Duron
tomasera

MacOsX


5.0 cvs apple

2.95.2 19991024
no

Ol
bsd
rh 7.1
2.2.4-19
0.9
5.0rh-5
2.4.9-12smp rpm
2.96 20000731
no
biPIII 500
Ol

mandrake 8.1
2.2.4
0.9
gdb 20010813
2.4.16 compiled from source
2.96 20000731
yes
PIII 600
boris

debian unstable
2.2.4
0.9
gdb 5.0.90-cvs
2.4.13-xfs (base + patch XFS)compiled from source
2.95.4 20011006
no
K6-2 350
dilbert

debian unstable
2.2.4
0.9
gdb 5.0.90-cvs
2.4.14 compiled from source
2.95.4 20011006
yes
AMD AThlon 600 MHz
kwyxz


Last update: 2001-12-02 15h40