Skip to content

Possible background thread crash fix - #895

Merged
HalFrgrd merged 4 commits into
masterfrom
background_thread_crash
Aug 9, 2026
Merged

HalFrgrd merged 4 commits into
masterfrom
background_thread_crash

Conversation

@HalFrgrd

@HalFrgrd HalFrgrd commented Aug 9, 2026 •

Copy link
Copy Markdown
Owner

The crash might occur inside bash's vlist_add() during all_shell_functions(), when STREQ(var->name, ...) dereferences an uninitialized or NULL function name pointer.

I wasnt able to reproduce the bug locally. But I have implemented a manual walk of the shell functions hash table. This allows us to bypass bash's code. Hopefully this fixes it.

get_envvar_value didnt hold the bash lock. So this could cause a problem.

@HalFrgrd
HalFrgrd merged commit 09d8580 into master Aug 9, 2026
6 checks passed
@HalFrgrd
HalFrgrd deleted the background_thread_crash branch August 9, 2026 18:02
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.

1 participant