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

LogTagSet::set_output_level() should not accept NULL as LogOutput

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 11, 17, 21, 22
    • hotspot
    • b24

    Description

      See JDK-8319104

      `LogTagSet::set_output_level()` and `LogOutputList::set_output_level` should not accept NULL as LogOutput* argument.

      They do, currently, which leads to delayed crashes later since the NULL output is registered in the output list.

      That triggered JDK-8319104, where - due to a fluke in C++ initialization order and a mislabeling of LogTagSet tests as "TEST", without "_VM" - `LogTagSet::set_output_level()` was called with `LogConfiguration::StdoutLog` which was still uninitialized (null).

      Attachments

        Issue Links

          Activity

            People

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: