[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

Mark Dickinson report at bugs.python.org
Fri Jul 22 17:14:49 CEST 2011


Mark Dickinson <dickinsm at gmail.com> added the comment:

The '1.06...e-314' number in the gdb output is interesting:  it indicates a byte-ordering issue, though maybe that issue is only pertinent to gdb itself.

On a little-endian machine:

>>> struct.pack('<d', 1.0604798301039825e-314)
'\x00\x00\xf0\x7f\x00\x00\x00\x00'
>>> struct.pack('<d', float('inf'))
'\x00\x00\x00\x00\x00\x00\xf0\x7f'

Same bytes, different order.  This may indicate some kind of float / double mismatch somewhere, or a byte-ordering issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12589>
_______________________________________


More information about the Python-bugs-list mailing list