-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[R][C++] segfault when writing to ParquetFileWriter after closing #37969
Labels
Component: C++
Component: Parquet
Component: R
Critical Fix
Bugfixes for security vulnerabilities, crashes, or invalid data.
Priority: Critical
Type: bug
Milestone
Comments
Have replicated this on Ubuntu 23.04 with R 4.3.1 and arrow 13.0.0.1 too. Here's gdb output:
|
thisisnic
changed the title
[R] segfault when writing to ParquetFileWriter after closing
[R][C++] segfault when writing to ParquetFileWriter after closing
Oct 1, 2023
Hi @thisisnic and @amoeba |
Yep, nobody's assigned and there's no open PR, so it's free. Thanks @quanghgx! |
pitrou
pushed a commit
that referenced
this issue
Nov 16, 2023
…riter (#38390) ### Rationale for this change Operations on closed ParquetFileWriter are not allowed, but should not segfault. Somehow, ParquetFileWriter::Close() also reset its pimpl, so after that, any operators, those need this pointer will lead to segfault ### What changes are included in this PR? Adding more checks for closed file. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * Closes: #37969 Authored-by: Quang Hoang <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
amoeba
added
the
Critical Fix
Bugfixes for security vulnerabilities, crashes, or invalid data.
label
Jan 13, 2024
dgreiss
pushed a commit
to dgreiss/arrow
that referenced
this issue
Feb 19, 2024
…tFileWriter (apache#38390) ### Rationale for this change Operations on closed ParquetFileWriter are not allowed, but should not segfault. Somehow, ParquetFileWriter::Close() also reset its pimpl, so after that, any operators, those need this pointer will lead to segfault ### What changes are included in this PR? Adding more checks for closed file. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * Closes: apache#37969 Authored-by: Quang Hoang <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component: C++
Component: Parquet
Component: R
Critical Fix
Bugfixes for security vulnerabilities, crashes, or invalid data.
Priority: Critical
Type: bug
Describe the bug, including details regarding any error messages, version, and platform.
Writing to a closed writer causes a segfault rather than an error. I ran into this while testing something unrelated, evaluating portions of a larger script in a REPL. Writing to a closed output errors as expected so the key here is
writer$Close()
and the subsequentwriter$WriteTable
call:Result:
Component(s)
R
The text was updated successfully, but these errors were encountered: