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

runtime: show stacktrace when panic #930

Merged
merged 3 commits into from
Jan 3, 2025
Merged

Conversation

cpunion
Copy link
Contributor

@cpunion cpunion commented Jan 2, 2025

go run ./cmd/llgo run ./_demo/failed/stacktrace
# github.com/goplus/llgo/cmd/llgo
ld: warning: -ld_classic is deprecated and will be removed in a future release
In generic method
In generic function
In normal function
panic: panic occurs here

[0x0271D310 github.com/goplus/llgo/internal/runtime.Rethrow+0x2f, SP = 0x60]
[0x0271CF44 github.com/goplus/llgo/internal/runtime.Panic+0x2d, SP = 0x50]
[0x02719420 main.normalFunc+0xf, SP = 0xa8]
[0x02719564 main.genericFunc[string]+0x18, SP = 0x74]
[0x027194A8 main.(*MyStruct[string]).Method+0x1f, SP = 0x84]
[0x0271936C main+0x4, SP = 0x40]
exit status 2

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.65%. Comparing base (5131881) to head (9cb4800).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #930   +/-   ##
=======================================
  Coverage   97.65%   97.65%           
=======================================
  Files          22       22           
  Lines        6313     6313           
=======================================
  Hits         6165     6165           
  Misses        128      128           
  Partials       20       20           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xushiwei xushiwei merged commit 7f10bc2 into goplus:main Jan 3, 2025
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants