[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: m4-1.4.11: assert failure in two self tests on NetBSD
From: |
Bruno Haible |
Subject: |
Re: m4-1.4.11: assert failure in two self tests on NetBSD |
Date: |
Sat, 12 Apr 2008 19:33:14 +0200 |
User-agent: |
KMail/1.5.4 |
Hi,
Thomas Klausner reported:
> | m4-1.4.11 fails two selftests on NetBSD-4.99.48/amd64.
> | The first one is in test-frexpl:
> |
> | # gdb test-frexpl test-frexpl.core
> | GNU gdb 6.5
> | Copyright (C) 2006 Free Software Foundation, Inc.
> ...
> | Core was generated by `test-frexpl'.
> | Program terminated with signal 6, Aborted.
> | #0 0x00007f7ffd93269a in kill () from /usr/lib/libc.so.12
> | (gdb) bt
> | #0 0x00007f7ffd93269a in kill () from /usr/lib/libc.so.12
> | #1 0x00007f7ffd9d7a99 in abort () from /usr/lib/libc.so.12
> | #2 0x00000000004013ae in main () at test-frexpl.c:166
> | (gdb) fr 2
> | #2 0x00000000004013ae in main () at test-frexpl.c:166
> | 166 ASSERT (mantissa == 0.505L);
> | (gdb) p mantissa
> | $1 = 0.505
Can you provide two more bits of information:
- In gdb of this test, compiled with CFLAGS=-g (no optimization):
print mantissa
print i
print x
print *(void*(*)[4])&mantissa
print *(void*(*)[4])&x
- What is the expansion of BEGIN_LONG_DOUBLE_ROUNDING resulting from
fpucw.h? You can see this by looking at the output of
"gcc ... -E -dM test-frexpl.c". Does the failure disappear if you change
the #if test in fpucw.h from __i386__ to __x86_64__ and rebuild?
Bruno