[Bug 233] crash in memory allocator

via D.gnu d.gnu at puremagic.com
Mon Aug 22 10:15:20 PDT 2016


http://bugzilla.gdcproject.org/show_bug.cgi?id=233

--- Comment #5 from Sebastien Alaiwan <sebastien.alaiwan at gmail.com> ---
I was hoping recent phobos updates that made their way in debian-gdc would
solve these issues.
They don't ; I can still reproduce this crash with recent debian-gdc compilers.

It's not deterministic, sometimes it doesn't seem to happen at all ; sometimes
it gets killed by OOM killer ...
By the way, we might have found a workaround: by rounding all of our
allocations to the next multiple of 64, it seems not to happen.

$ gdc fuzzalloc.d -o fuzzalloc && ./fuzzalloc 12345
0
100000
200000
300000
400000
500000
[1]    9162 segmentation fault  ./fuzzalloc 12345

$ gdc fuzzalloc.d -o fuzzalloc && ./fuzzalloc 12345
0
100000
200000
300000
400000
500000
600000
700000
800000
900000
1000000
1100000
1200000
1300000
1400000
1500000
1600000
1700000
1800000
1900000
2000000
2100000
2200000
2300000
2400000
2500000
2600000
2700000
2800000
2900000
3000000
3100000
[1]    9196 segmentation fault  ./fuzzalloc 12345
Real: 24,57s User: 7,86s System: 15,35s Percent: 94% Cmd: ./fuzzalloc 12345

$ gdc --version
gdc (Debian 6.1.1-11) 6.1.1 20160802
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the D.gnu mailing list