mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Howell (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-1056) JNI wrapper does not check for exceptions
Date Wed, 05 Mar 2014 01:54:46 GMT
Nathan Howell created MESOS-1056:
------------------------------------

             Summary: JNI wrapper does not check for exceptions
                 Key: MESOS-1056
                 URL: https://issues.apache.org/jira/browse/MESOS-1056
             Project: Mesos
          Issue Type: Bug
          Components: java api
    Affects Versions: 0.16.0
            Reporter: Nathan Howell
            Priority: Minor


If you run a Java framework built against Protocol Buffers 2.5.0 but compiled Mesos against
2.4.1 it will cause segfault in jni_GetByteArrayElements.

This is triggered if org.apache.mesos.Protos.FrameworkInfo.toByteArray throws an exception,
which is (unfortunately) by-design according to https://code.google.com/p/protobuf/issues/detail?id=493.
The JNI wrapper, most notably construct<FrameworkInfo>(...), does not check if an env->ExceptionOccurred
after invoking FrameworkInfo.toByteArray and this angers the JVM.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message