[Issue 16506] segfaults in std.experimental.allocator: FreeTree with GCAllocator or Mallocator

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Sep 18 03:45:32 PDT 2016


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

Lodovico Giaretta <lodovico at giaretart.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lodovico at giaretart.net
            Summary|segfaults with              |segfaults in
                   |std.experimental.allocator. |std.experimental.allocator:
                   |{gc_allocator,mallocator}   |FreeTree with GCAllocator
                   |                            |or Mallocator

--- Comment #1 from Lodovico Giaretta <lodovico at giaretart.net> ---
With the malloc version, I got this output:

malloc.c:2369: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *)
&((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd))))
&& old_size == 0) || ((unsigned long) (old_size) >= (unsigned
long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *
(sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size &
0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.


To me, it looks like the problem is specific to FreeTree. Changing the title to
reflect this.

--


More information about the Digitalmars-d-bugs mailing list