with useNimRtl, unhandled exception cause SIGSEGV
Description
proc call() =
raise newException(ValueError, "no value")
call()
When compiled with --d:useNimRtl, The program crashed while printing the unhandled exception information.
*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: 62d8ca43063197272968b4acf8c7a1ef27874c54 active boot switches: -d:release -d:danger
Current Output
No response
Expected Output
No response
Possible Solution
No response
Additional Information
No response