Skip to content

gc:arc - Illegal storage access #15954

@SFR0815

Description

@SFR0815

Hi!

First of all I have to apologize that I can not actually provide a simple code example causing the issue - the code I am running is a bit too large to be documented here. I have not yet been able to identify where this below mentioned behavior actually originates form.

What I observe is that "nim c -r some_file.nim" does not cause any issue

while "nim c -r --gc:arc some_file.nim" fails with

..\nim-1.4.0\lib\system\alloc.nim(955) alloc ..\nim-1.4.0\lib\system\alloc.nim(787) rawAlloc SIGSEGV: Illegal storage access. (Attempt to read from nil?)
with line of my code mentioned to fail just does some trivial stuff (like: result = result & "x")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions