Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8261354

SIGSEGV at MethodIteratorHost

    XMLWordPrintable

    Details

    • Subcomponent:
      jfr
    • Introduced In Version:
    • Resolved In Build:
      b24

      Backports

        Description

        This started happening in 11.0.7 and is still the case in 11.0.10

        The application is using solely the Java JFR Event API to create and register a dynamic event. The event is unregistered upon JVM exit and the recording is started with 'dumponexit=true'.

        The error is not happening in JDK 15 (haven't checked with 12, 13 or 14)

        ===
        Stack: [0x00007000054fe000,0x00007000055fe000], sp=0x00007000055fd9f0, free space=1022k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.dylib+0x3e78a2] MethodIteratorHost<JfrTypeWriterHost<JfrPredicatedTypeWriterImplHost<Method const*, SerializePredicate<Method const*>, &(write__method(JfrCheckpointWriter*, void const*))>, 39u>, Wrapper<Klass const*, EmptyStub>, BitMapFilter, false>::operator()(Klass const*)+0xac
        V [libjvm.dylib+0x3e7756] void JfrArtifactSet::iterate_klasses<CompositeFunctor<Klass const*, MethodIteratorHost<JfrTypeWriterHost<JfrPredicatedTypeWriterImplHost<Method const*, LeakPredicate<Method const*>, &(write__method__leakp(JfrCheckpointWriter*, void const*))>, 39u>, Wrapper<Klass const*, EmptyStub>, BitMapFilter, true>, MethodIteratorHost<JfrTypeWriterHost<JfrPredicatedTypeWriterImplHost<Method const*, SerializePredicate<Method const*>, &(write__method(JfrCheckpointWriter*, void const*))>, 39u>, Wrapper<Klass const*, EmptyStub>, BitMapFilter, false> > >(CompositeFunctor<Klass const*, MethodIteratorHost<JfrTypeWriterHost<JfrPredicatedTypeWriterImplHost<Method const*, LeakPredicate<Method const*>, &(write__method__leakp(JfrCheckpointWriter*, void const*))>, 39u>, Wrapper<Klass const*, EmptyStub>, BitMapFilter, true>, MethodIteratorHost<JfrTypeWriterHost<JfrPredicatedTypeWriterImplHost<Method const*, SerializePredicate<Method const*>, &(write__method(JfrCheckpointWriter*, void const*))>, 39u>, Wrapper<Klass const*, EmptyStub>, BitMapFilter, false> >&) const+0x2e
        V [libjvm.dylib+0x3e6127] JfrTypeSet::serialize(JfrCheckpointWriter*, JfrCheckpointWriter*, bool)+0x5f5
        V [libjvm.dylib+0x3bd9ff] JfrCheckpointManager::write_type_set()+0x75
        V [libjvm.dylib+0x3d877f] JfrRecorderService::post_safepoint_write()+0x15
        V [libjvm.dylib+0x3d8633] JfrRecorderService::write()+0x83
        V [libjvm.dylib+0x3d843f] JfrRecorderService::rotate(int)+0x81
        V [libjvm.dylib+0x3d94e9] recorderthread_entry(JavaThread*, Thread*)+0xbb
        V [libjvm.dylib+0x76f462] JavaThread::thread_main_inner()+0x82
        V [libjvm.dylib+0x76f2ac] JavaThread::run()+0x174
        V [libjvm.dylib+0x76d188] Thread::call_run()+0x68
        V [libjvm.dylib+0x61c663] thread_native_entry(Thread*)+0x139
        C [libsystem_pthread.dylib+0x6109] _pthread_start+0x94
        C [libsystem_pthread.dylib+0x1b8b] thread_start+0xf

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jbachorik Jaroslav Bachorík
                Reporter:
                jbachorik Jaroslav Bachorík
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: