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

SIGSEGV during reshape

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1
    • 0.9
    • 1.0
    • core-libs
    • 0.9internal
    • sparc
    • generic
    • Not verified

    Description

      1) start up webrunner at http://town.hall.org/patent/patent.html
      2) select the first link on the page - "Search Patent Database"
      3) go back to previous page using GoBack button.
      4) reshape window.

      You should get this message:



      SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_ACCERR [addr: 0x14]

      stackbase=402890, stackpointer=400BB8

      Full thread dump:
          "Thread-12" (0x2cd470): priority=4
      oak.lang.Object.wait(Object.oak)
      awt.DIWChildUpdater.getNextClient(DisplayItemWindow.oak:468)
      awt.DIWChildUpdater.run(DisplayItemWindow.oak:489)
          "Thread-3" (0x2c0d38): priority=4
      oak.lang.Object.wait(Object.oak)
      awt.DIWChildUpdater.getNextClient(DisplayItemWindow.oak:468)
      awt.DIWChildUpdater.run(DisplayItemWindow.oak:489)
          "Thread-1" (0x2beb90): priority=5
      webrunner.StatusWindow.run(webrunner.oak:366)
      oak.lang.Thread.run(Thread.oak)
          "Background Image Reader" (0x2be6f0): priority=2
      oak.lang.Object.wait(Object.oak)
      webrunner.ImageReader.waitForRequest(ImageReader.oak:56)
      webrunner.ImageReader.run(ImageReader.oak:114)
          "AWT WServer Thread" (0x2bde10): priority=5 *current thread*
      awt.TextField.reshape(TextField.oak:47)
      awt.FlowLayout.layout(FlowLayout.oak:145)
      awt.DisplayItemWindow.handleResize(DisplayItemWindow.oak:53)
      awt.Window.reshape(Window.oak:196)
      awt.BorderLayout.layout(BorderLayout.oak:141)
      awt.Container.layout(Container.oak:157)
      awt.Frame.resize(Frame.oak:41)
          "Async Garbage Collector" (0x2bdb38): priority=1
          "Idle thread" (0x2bdae0): priority=0
          "clock handler" (0x2bdad0): priority=11
          "main" (0x2bdac8): priority=5

      [Tim: Fri Dec 9 09:53:58 PST 1994]

      Trying this just now I don't get a SEGV, but each time get a pair of exceptions:

      Exception in thread "AWT WServer Thread" oak.lang.NullPointerException
      at awt.TextField.reshape(TextField.oak:57)
      at awt.FlowLayout.layout(FlowLayout.oak:155)
      at awt.DisplayItemWindow.handleResize(DisplayItemWindow.oak:66)
      at awt.Window.reshape(Window.oak:206)
      at awt.BorderLayout.layout(BorderLayout.oak:152)
      at awt.Container.layout(Container.oak:167)
      at awt.Frame.resize(Frame.oak:51)
      Exception in thread "AWT WServer Thread" oak.lang.NullPointerException
      at awt.TextField.reshape(TextField.oak:57)
      at awt.FlowLayout.layout(FlowLayout.oak:155)
      at awt.Container.layout(Container.oak:167)
      at awt.Window.reshape(Window.oak:207)
      at awt.BorderLayout.layout(BorderLayout.oak:152)
      at awt.Container.layout(Container.oak:167)
      at awt.Frame.resize(Frame.oak:51)

      The description field as copied from bug report 1184381 follows:

      1) start up webrunner.
      2) in "Document URL" text field type "http://cwis.usc.edu/dept/raiders/"
      3) now position your cursor to the bottom-right resize handle of the window.
      4) type return
      5) resize the window; keep doing it until it crashes or the "NullPointerException"
          message is displayed.
      6) if it didn't crash goto (1)





      oak.lang.NullPointerException
      at oak.io.BufferedInputStream.read(BufferedInputStream.oak:64)
      at webrunner.AdvertizingWindow.run(AdvertizingWindow.oak:130)
      at oak.lang.Thread.run(Thread.oak:194)
      Opening stream to: URL[protocol=file, host=~webrunner, file=/demo/AudioItem.class] to get AudioItem
      Opening stream to: URL[protocol=file, host=~webrunner, file=/demo/classes/AudioItem.class] to get AudioItem
      SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_ACCERR [addr: 0x14]

      stackbase=404208, stackpointer=402558

      Full thread dump:
          "Thread-41" (0x2d7858): priority=3
      net.SocketInputStream.read(SocketInputStream.oak:35)
      oak.io.BufferedInputStream.read(BufferedInputStream.oak:64)
      oak.io.DataInputStream.readLine(DataInputStream.oak)
      net.www.http.HttpClient.processRequest(HttpClient.oak:148)
      net.www.http.HttpClient.get(HttpClient.oak:142)
      net.www.http.HttpClient.<init>(HttpClient.oak:204)
      net.www.html.httpHandler.openStream(httpHandler.oak:28)
      net.www.html.URL.openStream(URL.oak:309)
      webrunner.DocumentInfo.fetch(DocumentInfo.oak:77)
      webrunner.FetcherThread.run(DocumentManager.oak:136)
          "Thread-40" (0x2d4d68): priority=4
      oak.lang.Object.wait(Object.oak:124)
      awt.DIWChildUpdater.getNextClient(DisplayItemWindow.oak:468)
      awt.DIWChildUpdater.run(DisplayItemWindow.oak:489)
          "Thread-12" (0x2cadf8): priority=10
      oak.lang.Object.wait(Object.oak:124)
      webrunner.audio.AudioPlayer.waitForData(AudioPlayer.oak:278)
      webrunner.audio.AudioPlayer.run(AudioPlayer.oak:312)
          "Thread-3" (0x2c0d28): priority=4
      oak.lang.Object.wait(Object.oak:124)
      awt.DIWChildUpdater.getNextClient(DisplayItemWindow.oak:468)
      awt.DIWChildUpdater.run(DisplayItemWindow.oak:489)
          "Thread-1" (0x2beb80): priority=5
      webrunner.StatusWindow.run(webrunner.oak:366)
      oak.lang.Thread.run(Thread.oak:194)
          "Background Image Reader" (0x2be6e0): priority=2
      oak.lang.Object.wait(Object.oak:124)
      webrunner.ImageReader.waitForRequest(ImageReader.oak:56)
      webrunner.ImageReader.run(ImageReader.oak:114)
          "AWT WServer Thread" (0x2bde00): priority=5 *current thread*
      awt.TextField.reshape(TextField.oak:47)
      awt.FlowLayout.layout(FlowLayout.oak:145)
      awt.DisplayItemWindow.handleResize(DisplayItemWindow.oak:53)
      awt.Window.reshape(Window.oak:196)
      awt.BorderLayout.layout(BorderLayout.oak:121)
      awt.Container.layout(Container.oak:157)
      awt.Frame.resize(Frame.oak:41)
          "Async Garbage Collector" (0x2bdb38): priority=1
          "Idle thread" (0x2bdae0): priority=0
          "clock handler" (0x2bdad0): priority=11
          "main" (0x2bdac8): priority=5
      Monitor Cache Dump
          unknown key (key=0x383148): monitor owner: "Async Garbage Collector" (0x383148)
          oak.io.BufferedInputStream@2D7988/FEC90 (key=0x2d7988): monitor owner: "Thread-41" (0x7358b0)
          awt.DIWChildUpdater@2D4D68/F6F68 (key=0x2d4d68): unowned
      Waiting to be notified:
      "Thread-40" (0x2d4d68): priority=4
          awt.DIWChildUpdater@2C0D28/83BB0 (key=0x2c0d28): unowned
      Waiting to be notified:
      "Thread-3" (0x2c0d28): priority=4
          awt.WServer@2BDE00/580E8 (key=0x2bde00): monitor owner: "AWT WServer Thread" (0x403ff0)
          unknown key (key=0x50a6f0): unowned
      Waiting to be notified:
      "Thread-1" (0x2beb80): priority=5
          webrunner.audio.AudioPlayer@2CADF8/B0648 (key=0x2cadf8): unowned
      Waiting to be notified:
      "Thread-12" (0x2cadf8): priority=10
          webrunner.ImageReader@2BE6E0/5B018 (key=0x2be6e0): unowned
      Waiting to be notified:
      "Background Image Reader" (0x2be6e0): priority=2
          unknown key (key=0xef3a22a0): monitor owner: "main" (0x371c18)
      registered monitor dump:
          Thread queue lock: unowned
      Waiting to be notified:
      "main" (0x2bdac8): priority=5
          Class resolution lock: unowned
          Code rewrite lock: unowned
          Heap lock: unowned
          Monitor registry: monitor owner: "AWT WServer Thread" (0x403ff0)
          Monitor cache lock: unowned
          Event monitor: unowned
          I/O monitor: unowned
      Waiting to be notified:
      "Thread-41" (0x2d7858): priority=3
          Alarm monitor: unowned
      Waiting to be notified:
      "clock handler" (0x2bdad0): priority=11
      Thread Alarm Q:
          sys_thread_t 0x50a6f0 [Timeout in 134 ms]
      Abort (core dumped)

      Attachments

        Activity

          People

            sshaiosunw Sami Shaio (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: