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

(tz) SEGV on solaris if TZ variable not set

    Details

    • Subcomponent:
    • Introduced In Version:
      7u2
    • Resolved In Build:
      b40
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: