-
Notifications
You must be signed in to change notification settings - Fork 0
Task 194243 #8
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
Open
balupillai
wants to merge
11
commits into
main
Choose a base branch
from
TASK-194243
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Task 194243 #8
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2450bc6
TASK-194243 debug double unlock
balupillai d5b2b1b
TASK-194243 fix double unlock
balupillai 8d60561
TASK-194243 fix logging
balupillai 6a8c24c
TASK-194243 fix logging
balupillai 4fbebf5
TASK-194243 tune logging
balupillai 657cda2
TASK-194243 tune logging
balupillai e1bf518
TASK-194243 tune logging
balupillai ca92e6c
TASK-194243 tune logging
balupillai 7f9f804
TASK-194243 tune logging
balupillai 1aa55d7
TASK-194243 tune logging
balupillai fbf904b
TASK-194243 tune logging
balupillai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,10 +69,23 @@ void luaD_throw (lua_State *L, int errcode) { | |
| LUAI_THROW(L, L->errorJmp); | ||
| } | ||
| else { | ||
| thrlua_log(L, DCRITICAL, | ||
| "luaD_throw: no error handler, errcode=%d, L=%p, invoking panic\n", | ||
| errcode, (void *)L); | ||
| L->status = cast_byte(errcode); | ||
| if (G(L)->panic) { | ||
| resetstack(L, errcode); | ||
| lua_unlock(L); | ||
| /* Do NOT call lua_unlock(L) here. When luaD_throw is reached | ||
| * via LUAI_TRY_END re-throw, the LUAI_TRY_FINALLY block has | ||
| * already run and the lock state depends on the call site: | ||
| * some FINALLY blocks call lua_unlock (lapi.c, lauxlib.c) while | ||
| * others call lua_lock (ldo.c callhook/precall). Unconditionally | ||
| * unlocking here caused a double-unlock that corrupted the | ||
| * pthread mutex on Linux/glibc, making every subsequent | ||
| * lua_lock() on this lua_State fail with EINVAL and abort(). | ||
| * All direct callers of luaD_throw (lmem.c, ldebug.c, lundump.c, | ||
| * llex.c) always have an outer errorJmp so they never reach | ||
| * this panic branch. */ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| G(L)->panic(L); | ||
| } | ||
| exit(EXIT_FAILURE); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Uh oh!
There was an error while loading. Please reload this page.