Skip to content

implement lua traceback on crash, when possible - #6000

Open
ab9rf wants to merge 2 commits into
DFHack:developfrom
ab9rf:lua-traceback
Open

ab9rf wants to merge 2 commits into
DFHack:developfrom
ab9rf:lua-traceback

Conversation

@ab9rf

@ab9rf ab9rf commented Oct 8, 2026

Copy link
Copy Markdown
Member

added a WIndows crash handler (loaded in front of bay12's) that will attempt to produce a lua traceback if a crash occurs while running a lua script. this is also added to the linux crashlogger

in addition, a small addition is made to the Lua engine itself to attempt to catch a possible cause of misoperation that some recent crash logs indicated as a possibility that we want to protect against

added a WIndows crash handler (loaded in front of bay12's) that will attempt to produce a lua traceback if a crash occurs while running a lua script. this is also added to the linux crashlogger

in addition, a small addition is made to the Lua engine itself to attempt to catch a possible cause of misoperation that some recent crash logs indicated as a possibility that we want to protect against

@SilasD SilasD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm particularly interested/concerned with Crashlog-windows.cpp line 104.

Comment thread depends/lua/src/ldo.c Outdated
Comment thread depends/lua/src/ldo.c
Comment thread library/Crashlog-windows.cpp Outdated
Comment thread library/Crashlog-windows.cpp
Comment thread library/Crashlog-windows.cpp Outdated
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