Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with useNimRtl, unhandled exception cause SIGSEGV #23183

Open
tommo opened this issue Jan 8, 2024 · 0 comments
Open

with useNimRtl, unhandled exception cause SIGSEGV #23183

tommo opened this issue Jan 8, 2024 · 0 comments

Comments

@tommo
Copy link

tommo commented Jan 8, 2024

Description

proc call() =
    raise newException(ValueError, "no value")

call()

When compiled with --d:useNimRtl, The program crashed while printing the unhandled exception information.
image

*maybe related:
Also, I encountered a problem that looks like some memory corruption when using --d:useNimRtl. My program consistently crashed at some string operations, after I replaced strutil.% with strformat.&, the problem went away. The same code runs well without --d:useNimRtl. I don't have time to extract the minimal reproducible example at the moment, will revisit this sometime later.

Nim Version

Nim Compiler Version 2.1.1 [MacOSX: arm64]
Compiled at 2024-01-07
Copyright (c) 2006-2024 by Andreas Rumpf

git hash: 62d8ca4
active boot switches: -d:release -d:danger

Current Output

No response

Expected Output

No response

Possible Solution

No response

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant