Bug 18013 – DMD test suite assertion failure in test_cdvecfill.d

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-11-26T06:26:04Z
Last change time
2017-12-30T03:03:51Z
Keywords
pull
Assigned to
No Owner
Creator
Mike Franklin

Comments

Comment #0 by slavo5150 — 2017-11-26T06:26:04Z
cd dmd make -C test -f Makefile ... runnable/test_cdvecfill.d -O (-mcpu=avx -mcpu=avx2) Test failed. The logged output: ../src/dmd -conf= -m64 -Irunnable -O -odtest_results/runnable -oftest_results/runnable/test_cdvecfill_0 runnable/test_cdvecfill.d test_results/runnable/test_cdvecfill_0 Expected code sequence for load!(ubyte, 16) not found. Expected: 0x50 0x66 0x0f 0x6e 0xc7 0x66 0x0f 0x60 0xc0 0x66 0x0f 0x61 0xc0 0x66 0x0f 0x70 0xc0 0x00 0x59 0xc3 Actual: 0x55 0x48 0x8b 0xec 0x66 0x0f 0x6e 0xc7 0x66 0x0f 0x60 0xc0 0x66 0x0f 0x61 0xc0 0x66 0x0f 0x70 0xc0 0x00 0x5d 0xc3 0x00 0x55 0x48 0x8b 0xec 0x0f 0xb6 0x07 0x66 0x0f 0x6e 0xc0 0x66 0x0f 0x60 0xc0 0x66 0x0f 0x61 0xc0 0x66 0x0f 0x70 0xc0 0x00 0x5d 0xc3 0x00 0x00 0x55 0x48 0x8b 0xec 0x66 0x0f 0x6e 0xc7 0x66 0x0f 0x60 0xc0 core.exception.AssertError@runnable/test_cdvecfill.d(895): Assertion failure ---------------- ??:? _d_assertp [0xd9faa4f1] ??:? [0x84bcd81c] ??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().__lambda1() [0xd9fc7d5f] ??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0xd9fc7c8f] ??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() [0xd9fc7d08] ??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0xd9fc7c8f] ??:? _d_run_main [0xd9fc7bfa] ??:? [0x84bd1057] ??:? __libc_start_main [0xd8eaaf69] Arch Linux 64-bit VirtualBox guest on a Windows 10 host. Also, I had to add -fPIC to the DFLAGS in test/Makefile to get a build. Running the test suite in a 32-bit Ubuntu Linux 16.04 VirtualBox guest on the same host works fine. -fPIC was not required to get a build.
Comment #1 by greensunny12 — 2017-12-12T05:34:46Z
Comment #2 by greensunny12 — 2017-12-12T05:43:33Z
> Running the test suite in a 32-bit Ubuntu Linux 16.04 VirtualBox guest on the same host works fine. -fPIC was not required to get a build. Ubuntu introduced PIE-hardening in 16.10: https://wiki.ubuntu.com/Security/Features#Built_as_PIE So you won't have any issues with 16.04
Comment #3 by github-bugzilla — 2017-12-22T08:25:01Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/345c9ddaef5e769673ccaf32f8c5d47e88685e4c Fix Issue 18013 - DMD test suite assertion failure in test_cdvecfill.d https://github.com/dlang/dmd/commit/c145cdc440332262dc4c6d0406458d24be5ea194 Merge pull request #7454 from JinShil/cdvecfill_pic Fix Issue 18013 - DMD test suite assertion failure in test_cdvecfill.d merged-on-behalf-of: Sebastian Wilzbach <[email protected]>
Comment #4 by github-bugzilla — 2017-12-30T03:03:51Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/345c9ddaef5e769673ccaf32f8c5d47e88685e4c Fix Issue 18013 - DMD test suite assertion failure in test_cdvecfill.d https://github.com/dlang/dmd/commit/c145cdc440332262dc4c6d0406458d24be5ea194 Merge pull request #7454 from JinShil/cdvecfill_pic