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

VMError::report_and_die() hangs during malloc call

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • hotspot
    • None

      One of the failures in JDK-8156223 is a SIGSEGV, but no hs_err file is produced, and the WatcherThread reports:

         [ timer expired, abort... ]

      I looked at the core file and the crashing thread had crashed while doing a malloc. The signal handler called VMError::report_and_die(), which eventually leads to another malloc(), which seems to be deadlocked. Most likely the first malloc is holding a (non-reentrant) lock that the 2nd malloc also wants to grab.

      Moral of the story is we need to be careful about what type of services we rely on after we catch a crash originating from libc or OS code. We might need a timer in VMError to quickly timeout and move to the next stage before the WatcherThread times out.

            cjplummer Chris Plummer
            cjplummer Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: