[
https://issues.apache.org/jira/browse/HDFS-14482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16839691#comment-16839691
]
Hudson commented on HDFS-14482:
-------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #16549 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/16549/])
HDFS-14482: Crash when using libhdfs with bad classpath (todd: rev
e2dfdaee7c23cf18bdd2a6dacc979c248407c23a)
* (edit)
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/jni_helper.c
> Crash when using libhdfs with bad classpath
> -------------------------------------------
>
> Key: HDFS-14482
> URL: https://issues.apache.org/jira/browse/HDFS-14482
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Todd Lipcon
> Assignee: Sahil Takiar
> Priority: Major
> Fix For: 3.3.0
>
>
> HDFS-14304 added a call to initCachedClasses in getJNIEnv after creating the
> env but before checking whether it's null. In the case that getJNIEnv() fails
> to create an env, it returns NULL, and then we crash when calling
> initCachedClasses() on line 555
> {code}
> 551 state->env = getGlobalJNIEnv();
> 552 mutexUnlock(&jvmMutex);
> 553
> 554 jthrowable jthr = NULL;
> 555 jthr = initCachedClasses(state->env);
> 556 if (jthr) {
> 557 printExceptionAndFree(state->env, jthr, PRINT_EXC_ALL,
> 558 "initCachedClasses failed");
> 559 goto fail;
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]