[ 
https://issues.apache.org/jira/browse/HDFS-4384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13550581#comment-13550581
 ] 

Eli Collins commented on HDFS-4384:
-----------------------------------

Given that the error case also returns null (and free(cl) is safe when cl is 
null), the DeleteLocalRefs are causing the segv? If so should they be guarded 
instead since other error cases would hit the same?
                
> test_libhdfs_threaded gets SEGV if JNIEnv cannot be initialized
> ---------------------------------------------------------------
>
>                 Key: HDFS-4384
>                 URL: https://issues.apache.org/jira/browse/HDFS-4384
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: libhdfs
>    Affects Versions: 2.0.3-alpha
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>            Priority: Minor
>         Attachments: HDFS-4384.001.patch
>
>
> test_libhdfs_threaded gets a SEGV if JNIEnv cannot be initialized.  This is 
> incorrect; it should instead exit with a nice error message in this case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to