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

Array error crash fix #46

Merged
merged 4 commits into from
Jun 18, 2024
Merged

Array error crash fix #46

merged 4 commits into from
Jun 18, 2024

Conversation

Tishj
Copy link
Collaborator

@Tishj Tishj commented Jun 18, 2024

We were using elog(ERROR, ...) inside DuckDB worker threads, this appears to cause a crash when two or more threads run into an error in parallel.

Another attempt was made to synchronize the elog calls, but even with that the crash was still present.
I assume the elog(ERROR, ..) invalidates some internal state and does not expect to be called more than once.

By throwing DuckDB exceptions, we instead throw the elog(ERROR, ..) from the main thread when result->HasError() is true, indicating that one or more worker threads stumbled upon an error.

@mkaruza mkaruza self-requested a review June 18, 2024 11:34
@Tishj Tishj merged commit d8b024f into main Jun 18, 2024
2 checks passed
@Tishj Tishj deleted the array_error_crash_fix branch June 18, 2024 11:40
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