> Date: Sat, 7 Oct 2000 13:21:14 +0800
> From: Petter Reinholdtsen <[EMAIL PROTECTED]>

> > The stupid question of the week is how to debug it. GDB is of no use
> > (just because... RH6.2 and multithreaded programs). Ergo, I must
> > insert printfs in good places. Any ideas where you would insert
> > them?
> 
> You chould try to turn on debug loggin to get an idea where this
> happends.  Set the environment NSPR_LOG_MODULES to reflect your needs.
> Check INSTALL for the details.

I used NSPR_LOG_MODULES=Exception:5,Interp:5,Method:5,Native:5 and it
produces a trace ending with the following:

...................
1024[804fb70]:  Popping java frame: 808789c
1024[804fb70]:    now at depth 3
1024[804fb70]: in throw_exception()
1024[804fb70]: Exception java/awt/AWTError thrown from 
java/awt/Toolkit.getDefaultToolkit - at pc 86
1024[804fb70]: ... we're at a java frame (java/awt/Toolkit.getDefaultToolkit pc 86)
1024[804fb70]: Exception java/lang/Object caught by java/awt/Toolkit.getDefaultToolkit 
- at pc 120
1024[804fb70]: in throw_exception()
1024[804fb70]: Exception java/awt/AWTError thrown from 
java/awt/Toolkit.getDefaultToolkit - at pc 123
1024[804fb70]: ... we're at a java frame (java/awt/Toolkit.getDefaultToolkit pc 123)
1024[804fb70]:  Popping java frame: 80878ec
1024[804fb70]:    now at depth 2
1024[804fb70]: ... we're at a java frame (java/awt/Window.getToolkit pc 3)
1024[804fb70]:  Popping java frame: 8087948
1024[804fb70]:    now at depth 1
1024[804fb70]: ... we're at a java frame (de/mud/jta/Main.main pc 240)
1024[804fb70]:  Popping java frame: 808798c
1024[804fb70]:    now at depth 0

It seems that the program is broken or depends on some aspect of Sun
implementation that we do not reproduce faithfuly enough. Japhar may
be not at fault, though I would appreciate if we did not break and
printed some message instead.

--Pete

Reply via email to