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

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

XMLWordPrintable

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

      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).

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

              Created:
              Updated:
              Resolved: