https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124733
Bug ID: 124733
Summary: libphobos.phobos/std_digest_murmurhash.d FAILs
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ro at gcc dot gnu.org
Target Milestone: ---
Target: sparc*-sun-solaris2.11, sparc64-unknown-linux-gnu,
hppa-unknown-linux-gnu, s390x-ibm-linux-gnu
The libphobos.phobos_shared/std/digest/murmurhash.d test FAILs on SPARC
(Solaris
and Linux, 32 and 64-bit):
FAIL: libphobos.phobos_shared/std/digest/murmurhash.d execution test
core.exception.AssertError@/vol/gcc/src/hg/master/local/libphobos/testsuite/libphobos.phobos/std_digest_murmurhash.d(10):
unittest failure
----------------
/vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/dmain2.d:231
_d_traceContext [0x96473]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/deh.d:47 _d_createTrace
[0xa39c3]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/gcc/deh.d:484 _d_throw
[0x9528f]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/exception.d:607
onAssertErrorMsg [0x9e03b]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/exception.d:624
onUnittestErrorMsg [0x9e073]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/exception.d:841
_d_unittest_msg [0x9e0b3]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/exception.d:846
_d_unittest [0x9e10f]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/exception.d:836
_d_unittestp [0x9e14b]
/vol/gcc/src/hg/master/local/libphobos/testsuite/libphobos.phobos/std_digest_murmurhash.d:10
@safe void std_digest_murmurhash.__unittest_L1_C7() [0x94557]
/vol/gcc/src/hg/master/local/libphobos/testsuite/libphobos.phobos/std_digest_murmurhash.d:80
void std_digest_murmurhash.__modtest() [0x9498b]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/runtime.d:663
__foreachbody_L651_C5 [0xbdcdf]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/object.d:2519
__lambda_L2519_C13 [0xac2b3]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/minfo.d:592
__foreachbody_L585_C5 [0xa4eef]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/gcc/sections/elf.d:106 int
gcc.sections.elf.DSO.opApply(scope int delegate(ref gcc.sections.elf.DSO))
[0x988a7]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/minfo.d:585 int
rt.minfo.moduleinfos_apply(scope int delegate(immutable(object.ModuleInfo*)))
[0xa64c3]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/object.d:2518 int
object.ModuleInfo.opApply(scope int delegate(object.ModuleInfo*)) [0xade47]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/runtime.d:651
runModuleUnitTests [0xbed3b]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/dmain2.d:511 runAll
[0x97563]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/dmain2.d:478 tryExec
[0x9780f]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/dmain2.d:549 _d_run_main2
[0x9780f]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/dmain2.d:323 _d_run_main
[0x9796f]
??:? _start [0x92e03]
1/1 modules FAILED unittests
#6 0x000934f0 in std_digest_murmurhash.__unittest_L1_C7() ()
at
/vol/gcc/src/hg/master/local/libphobos/testsuite/libphobos.phobos/std_digest_murmurhash.d:10
10 assert(hashed == [0, 173, 69, 68]);
(gdb) p hashed
$1 = "DE\255"
Obviously and endianess issue: hashed is just the expected value reversed.