segfault on gc.impl.conservative.gc.Gcx.smallAlloc
Mengu
mengukagan at gmail.com
Tue Sep 26 08:09:44 UTC 2017
On Tuesday, 26 September 2017 at 00:36:36 UTC, Vladimir Panteleev
wrote:
> On Monday, 25 September 2017 at 21:34:40 UTC, Mengu wrote:
>> delete fileContents;
>
> This looks suspicious - it is a slice of the memory-mapped
> file, not memory on the GC-managed heap, so "delete" is
> inapplicable to it. The GC ought to throw an exception when
> attempting to delete things not on the GC heap though.
>
> I think the stack trace itself looks like something that should
> only happen when the GC's internal data structures are
> corrupted, so you may want to investigate in that direction.
thanks vladimir, i'll look into that.
i also should mention that everything works as expected on mac os
x.
More information about the Digitalmars-d-learn
mailing list