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

(tz) SEGV on solaris if TZ variable not set

XMLWordPrintable

    • 7u2
    • b40
    • generic
    • generic
    • Verified

        SHORT SUMMARY: SEGV on solaris when referencing TZ variable
        INDICATORS: Crash seen if no $TZ variable on system (solaris only)
        COUNTER INDICATORS:
        TRIGGERS: No $TZ variable set
        KNOWN WORKAROUND: Mentioned in bugDB report.
        PRESENT SINCE: CR 7092679 fix.
        HOW TO VERIFY:
        NOTES FOR SE: Most likely due to one line where we don't make a null
        check when referencing TZ variable. Will confirm shortly.

        http://opengrok.ie.oracle.com:8080/opengrok/xref/jdk7u-dev/jdk/src/solaris/nat
        ive/java/util/TimeZone_md.c#649 looks suspicious.

        i.e
            648 #ifdef __solaris__
            649 if (strcmp(tz, "localtime") == 0) {
            650 tz = getSolarisDefaultZoneID();


        REGRESSION: yes - since 7092679

              coffeys Sean Coffey
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: