Skip to content

Dangling pointers in stack traces with -d:nimStackTraceOverride #25306

@arnetheduck

Description

@arnetheduck

Nim Version

2.2.4

Description

With nimStackTraceOverride:

When StackTrace is copied, the procname/filename fields point to procnameStr/filenameStr memory which makes the type non-copyable since the pointers must be updated - copies happen however and garbage stack traces, UB and crashes happen as result, when the GC runs as part of copying.

Current Output


Expected Output


Known Workarounds

No response

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions