Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1056

JNI wrapper does not check for exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Accepted
    • Minor
    • Resolution: Unresolved
    • 0.16.0
    • None
    • java api

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              NathanHowell Nathan Howell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: