Skip to content

ARROW-10499: [C++][Java] Fix ORC Java JNI Crash#8595

Closed
terencehonles wants to merge 1 commit into
apache:masterfrom
terencehonles:arrow-10499
Closed

ARROW-10499: [C++][Java] Fix ORC Java JNI Crash#8595
terencehonles wants to merge 1 commit into
apache:masterfrom
terencehonles:arrow-10499

Conversation

@terencehonles

@terencehonles terencehonles commented Nov 5, 2020

Copy link
Copy Markdown
Contributor

OrcStripeReaderJniWrapper::getSchema previously used nullptr for the memory pool parameter to arrow::ipc::SerializeSchema to implicitly call arrow::default_memory_pool().

As part of ARROW-10080 (#8533), a check was placed to fail on nullptr being provided. This change removes the check, but also explicitly calls arrow::default_memory_pool() which is used elsewhere in the JNI wrapper.

`OrcStripeReaderJniWrapper::getSchema` previously used `nullptr` for the
memory pool parameter to `arrow::ipc::SerializeSchema` to implicitly
call `arrow::default_memory_pool()`.

As part of https://issues.apache.org/jira/browse/ARROW-10080, a check
was placed to fail on `nullptr` being provided. This change removes the
check, but also explicitly calls `arrow::default_memory_pool()` which is
used elsewhere in the JNI wrapper.
@github-actions

github-actions Bot commented Nov 5, 2020

Copy link
Copy Markdown

@kiszk

kiszk commented Nov 5, 2020

Copy link
Copy Markdown
Member

LGTM

@terencehonles

Copy link
Copy Markdown
Contributor Author

@kiszk you mind merging this in? Not sure if anything else needs to happen, but I don't have write access to the repo 🙂

@kiszk

kiszk commented Nov 5, 2020

Copy link
Copy Markdown
Member

I do not have the grant to merge it, too. I expect that others will look at this.

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

I'll merge this.

@bkietz You can try re-adding the DCHECK_NE again later if you want.

@kou kou closed this in cb4f26d Nov 5, 2020
@terencehonles terencehonles deleted the arrow-10499 branch November 5, 2020 21:36
@BryanCutler

Copy link
Copy Markdown
Member

Thanks for fixing this @terencehonles !

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.

4 participants