www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17956] New: core.memory unittest failure (possibly glibc 2.26

https://issues.dlang.org/show_bug.cgi?id=17956

          Issue ID: 17956
           Summary: core.memory unittest failure (possibly glibc 2.26
                    specific)
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

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?

--
Oct 31