Skip to content

SIGSEGV exiting nested try/except when using walkDir iterator #391

@gradha

Description

@gradha

The example at https://gist.github.com/gradha/5408302 runs without problems when whisky = false. However, when whisky = true the output is:

Doing retry
We love crashing!
Traceback (most recent call last)
weird.nim(29)            weird
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Error: execution of an external program failed

I expected it to keep walking. It is fun that the problem is the walkDir iterator, actually the last try/except block doesn't need to call removeFile, just having it echo a string is enough for the example to crash.

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