Bug 17956 – core.memory unittest failure (possibly glibc 2.26 specific)

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-10-31T13:55:40Z
Last change time
2017-12-18T22:54:54Z
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2017-10-31T13:55:40Z
Unittester started failing locally, the only change is that I upgraded to the newest Ubuntu OS release. Which bumped the glibc version from 2.24 to 2.26. --- │ void* z = pureMalloc(size_t.max - 2); // won't affect `errno` │ assert(errno == fakePureGetErrno()); // errno shouldn't change ├───> assert(z is null); --- I've raised a bug against glibc (https://sourceware.org/bugzilla/show_bug.cgi?id=22375) However this test should be fixed, pureMalloc(long.max-2) maybe?
Comment #1 by ibuclaw — 2017-10-31T14:41:07Z
Someone from glibc maintainers added a security flag to the upstream bug report. This seems to be at least an acknowledgement that its an external problem.
Comment #2 by greensunny12 — 2017-12-13T09:00:59Z
I can reproduce this on my machine with glibc 2.26-8 :/
Comment #3 by greensunny12 — 2017-12-13T09:02:18Z
> However this test should be fixed, pureMalloc(long.max-2) maybe? Let's see what the auto-tester says: https://github.com/dlang/druntime/pull/1991
Comment #4 by github-bugzilla — 2017-12-15T11:39:33Z
Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/52d7e9475ab40a61054e79a1a7cec46d02bb1c81 Fix Issue 17956 - core.memory unittest failure (possibly glibc 2.26 specific) https://github.com/dlang/druntime/commit/ff04e96da53da68b795496879382bf7bd4f74694 Merge pull request #1991 from wilzbach/fix-17956 Fix Issue 17956 - core.memory unittest failure (possibly glibc 2.26 s… merged-on-behalf-of: Petar Kirov <[email protected]>
Comment #5 by github-bugzilla — 2017-12-18T22:54:54Z
Commits pushed to stable at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/52d7e9475ab40a61054e79a1a7cec46d02bb1c81 Fix Issue 17956 - core.memory unittest failure (possibly glibc 2.26 specific) https://github.com/dlang/druntime/commit/ff04e96da53da68b795496879382bf7bd4f74694 Merge pull request #1991 from wilzbach/fix-17956