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

VMError::report_and_die() hangs during malloc call

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: