Skip to content

[ARC] segmentation fault #13240

Closed
Closed
@zevv

Description

@zevv

The snippet below crashes with a SIGSEGV on arc:

nim c -d:useMalloc --os:any --gc:arc -r test.nim
type
  Thing = object
    s1: string
    s2: string
  
var box: seq[Thing]

box.add Thing(s1: "")

Does not crash when changing the type to:

type
  Thing = object
    s1: string
    s2: int

but does crash when making it

type
  Thing = object
    s1: string
    s2: int
    s3: int

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