Skip to content

Create runtime stacktraces #772

Open
@certik

Description

@certik

The generated LLVM code needs the ability to create Python stacktraces. So that when bounds check error, or string->int conversion error happens, we print a runtime stacktrace. So we need to get the stack addresses, convert them to LLVM functions, then use LLVM debugging information to find ASR functions that they correspond to, and finally ASR location information (that we need to store in the binary) to find the original Python file and line/column number where the error comes from. Then we can print Python style stacktraces at runtime.

Metadata

Metadata

Labels

enhancementNew feature or requestllvmLLVM related changes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions