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

Possible crasher in Date class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      generic

      Description

      Arthur thinks this might be a bug in the Date class.

      The speakingclock applet seems to crash HotJava. The last time (see
      console messages below), I had started up HotJava, got the time in
      every language, and then went away for a while. As soon as I returned
      to the page, HotJava crashed.

      The time before, I think HotJava crashed after I clicked one of the
      speakingclock applets -- I don't remember which one. It seemed kind
      of random.

      The speakingclock applet is at:
      http://www/java.sun.com/applets/applets/speakingclock/

      Oh, another bug I noticed (might be the class, might be the program)
      is that once the time kept changing from 12:31 (the true time) to 19:31.


      yojimbo% !35
      java browser.hotjava &
      [2] 4361
      yojimbo% Warning:
          Cannot allocate colormap entry for default background

      AWT WServer Thread find class DateItem
      Opening stream to: http://www/java.sun.com/applets/applets/speakingclock/classes/DateItem.class to get DateItem
      AWT WServer Thread find class EnglishTime
      Opening stream to: http://www/java.sun.com/applets/applets/speakingclock/classes/EnglishTime.class to get EnglishTime
      AWT WServer Thread find class TimeTranslator
      Opening stream to: http://www/java.sun.com/applets/applets/speakingclock/classes/TimeTranslator.class to get TimeTranslator
      AWT WServer Thread find class SpeakingClock
      Opening stream to: http://www/java.sun.com/applets/applets/speakingclock/classes/SpeakingClock.class to get SpeakingClock
      AWT WServer Thread find class DutchTime
      Opening stream to: http://www/java.sun.com/applets/applets/speakingclock/classes/DutchTime.class to get DutchTime
      AWT WServer Thread find class GermanTime
      Opening stream to: http://www/java.sun.com/applets/applets/speakingclock/classes/GermanTime.class to get GermanTime
      AWT WServer Thread find class CantoneseTime
      Opening stream to: http://www/java.sun.com/applets/applets/speakingclock/classes/CantoneseTime.class to get CantoneseTime
      SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_ACCERR [addr: 0x698023f8]

      stackbase=403AF000, stackpointer=403ACE18

      Full thread dump:
          "Thread-49" (0x402ea6d8): priority=3
      java.util.Date.<init>(Date.java)
      DateItem.run(DateItem.java:267)
      java.lang.Thread.run(Thread.java)
          "Thread-48" (0x402ea6a0): priority=3
      java.util.Date.<init>(Date.java)
      DateItem.run(DateItem.java:267)
      java.lang.Thread.run(Thread.java)
          "Thread-47" (0x402ea668): priority=3 *current thread*
      java.util.Date.<init>(Date.java)
      DateItem.run(DateItem.java:267)
      java.lang.Thread.run(Thread.java)
          "Thread-46" (0x402ea620): priority=3
      DateItem.run(DateItem.java:279)
      java.lang.Thread.run(Thread.java)
          "Thread-45" (0x402e5c88): priority=4
      java.lang.Object.wait(Object.java)
      awt.DIWUpdaterThread.getRequest(DisplayItemWindow.java:564)
      awt.DIWUpdaterThread.run(DisplayItemWindow.java:589)
          "Audio Player" (0x40276df0): priority=10
      java.lang.Object.wait(Object.java)
      browser.audio.AudioPlayer.waitForData(AudioPlayer.java:343)
      browser.audio.AudioPlayer.run(AudioPlayer.java:378)
          "Background Image Reader" (0x40274040): priority=2
      browser.ImageReader.waitForRequest(ImageReader.java:82)
      browser.ImageReader.run(ImageReader.java:164)
          "History Updater" (0x4026ca40): priority=5
      java.lang.Object.wait(Object.java)
      browser.HistoryWindow.run(hotjava.java:2140)
      java.lang.Thread.run(Thread.java)
          "Progress Reporter" (0x4026ab38): priority=6
      browser.StatusWindow.run(hotjava.java:604)
      java.lang.Thread.run(Thread.java)
          "AWT WServer Thread" (0x40267ee0): priority=5
      awt.WServer.run(WServer.java:66)
          "Async Garbage Collector" (0x40267730): priority=1
          "Finalizer thread" (0x402676d8): priority=1
          "Idle thread" (0x402676c8): priority=0
          "clock handler" (0x402676b8): priority=11
          "main" (0x402676b0): priority=5
      Monitor Cache Dump:
          DateItem@40274B70/40040398 (key=0x40274b70): monitor owner: "Thread-48" (0x403bede8)
          unknown key (key=0xef7332c0): monitor owner: "Thread-47" (0x403aede8)
      Waiting to enter:
      "Thread-48" (0x402ea6a0): priority=3
      "Thread-49" (0x402ea6d8): priority=3
          DateItem@402781B0/4005D0F0 (key=0x402781b0): monitor owner: "Thread-47" (0x403aede8)
          DateItem@40269AF8/4002BC90 (key=0x40269af8): unowned
      Waiting to be notified:
      "Thread-46" (0x402ea620): priority=3
          browser.audio.AudioPlayer@40276DF0/40058110 (key=0x40276df0): unowned
      Waiting to be notified:
      "Audio Player" (0x40276df0): priority=10
          awt.DIWUpdaterThread@402E5C88/40125210 (key=0x402e5c88): unowned
      Waiting to be notified:
      "Thread-45" (0x402e5c88): priority=4
          DateItem@4027AC20/400618E0 (key=0x4027ac20): monitor owner: "Thread-49" (0x403cede8)
          unknown key (key=0x4031ede8): unowned
      Waiting to be notified:
      "Async Garbage Collector" (0x40267730): priority=1
          unknown key (key=0x4033ede8): monitor owner: "Progress Reporter" (0x4033ede8)
          browser.HistoryWindow@4026C7C0/40010538 (key=0x4026c7c0): unowned
      Waiting to be notified:
      "History Updater" (0x4026ca40): priority=5
          browser.ImageReader@40274040/4006F1D0 (key=0x40274040): unowned
      Waiting to be notified:
      "Background Image Reader" (0x40274040): priority=2
          unknown key (key=0xef3222a0): monitor owner: "AWT WServer Thread" (0x4032ede8)
      Registered Monitor Dump:
          Has finalization queue lock: unowned
          Finalize me queue lock: unowned
      Waiting to be notified:
      "Finalizer thread" (0x402676d8): priority=1
          Thread queue lock: unowned
      Waiting to be notified:
      "main" (0x402676b0): priority=5
          Class lock: unowned
          Java stack lock: unowned
          Code rewrite lock: unowned
          Heap lock: unowned
          Allocation lock: unowned
          Monitor registry: monitor owner: "Thread-47" (0x403aede8)
          Monitor cache lock: unowned
          Event monitor: unowned
          I/O monitor: unowned
      Waiting to be notified:
      "AWT WServer Thread" (0x40267ee0): priority=5
          Alarm monitor: unowned
      Waiting to be notified:
      "clock handler" (0x402676b8): priority=11
      Thread Alarm Q:
          sys_thread_t 0x4032ede8 [Timeout in 25 ms]
          sys_thread_t 0x4037ede8 [Timeout in 358 ms]
          sys_thread_t 0x4033ede8 [Timeout in 418 ms]
          sys_thread_t 0x4031ede8 [Timeout in 522 ms]

        Attachments

          Activity

            People

            Assignee:
            ahoffsunw Arthur Hoff (Inactive)
            Reporter:
            kwalrathsunw Kathy Walrath (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: