I've been having some random crashes of the JDK 1.1.5_v7. I believe
they're related to a window being disposed. This never happened with
sbb's JDK 1.1.3, but it happens maybe 15% of the time when I call
dispose on a Frame with 1.1.5. 

Anything else I can do to pin this down? I'll try to see if I can
catch out the same bug in java_g, but since it's notdeterministic it's
hard to reproduce.


Here's the segfault from java:

SIGSEGV   11*  segmentation violation
        stackbase=0x4156b000, stackpointer=0x4156ac74

and the thread that looks to be the guilty party.

 *current thread*
        sun.awt.motif.MComponentPeer.dispose(MComponentPeer.java:215)
        sun.awt.motif.MFramePeer.dispose(MFramePeer.java:101)
        java.awt.Component.removeNotify(Component.java:2526)
        java.awt.Container.removeNotify(Container.java:1149)
        java.awt.Window.dispose(Window.java:177)
        java.awt.Frame.dispose(Frame.java:372)
        
edu.mit.media.nelson.straum.agent.CreateAgentUI.createAgent(CreateAgentUI.java:70)
        
edu.mit.media.nelson.straum.agent.CreateAgentUI$2.actionPerformed(CreateAgentUI.java:45)
        java.awt.Button.processActionEvent(Button.java:254)
        java.awt.Button.processEvent(Button.java:227)
        java.awt.Component.dispatchEventImpl(Component.java:1764)
        java.awt.Component.dispatchEvent(Component.java:1704)
        java.awt.EventDispatchThread.run(EventDispatchThread.java:63)

And the relevant method in my application (line 70 of CreateAgentUI.java) 
newAgentWindow is a Frame that was created by this same class - the
idea is that the CreateAgentUI class puts up a form (newAgentWindow),
waits for the user to click a button, then destroys the newAgentWindow.

  public void createAgent() {
    String remoteHost = 
server.getServerDirectory().resolveToAddress(serverNameField.getText());
    BaseAgent newAgent = null;

    try {
      newAgent = (BaseAgent)agentClass.newInstance();
    } catch (Exception e) {
      Debug.println(Debug.CRITICAL, "Agent could not be created: " + e);
      return;
    }

    ((MonitoringOneHost)newAgent).setHostToMonitor(remoteHost);
    newAgent.launch(Global.localServer());
    newAgentWindow.dispose();                  // THIS IS LINE 70
  }

--PAA27523.895607981/pinotnoir.media.mit.edu--

--QAA24419.895608000/aleve.media.mit.edu--

Reply via email to