Subject: VRwave debugging...
To: None <port-i386@NetBSD.ORG>
From: Nathan Gelbard <gelbard@ENGR.ORST.EDU>
List: port-i386
Date: 03/31/1998 01:06:08
In my attempts to get VRwave (the VRML-97 all java browser for Linux),
I'm ktracing the exec of the programs.

I'm not quite sure what to look for, and its a 3mb file. I apologize if
this is more than anyone wanted to know :)

Here's what happens;

3jane> ./vrwave

--- VRwave 0.9 of Sep 29, 1997 ---
Copyright (c) 1997 IICM, Graz University of Technology, Austria.

initializing Canvas ...
initializing Frame ...
SIGSEGV   11*  segmentation violation
        stackbase=0xefbfd4a8, stackpointer=0xefbfd1b4

Full thread dump:
    "Screen Updater" (TID:0x487b4850, sys_thread_t:0x495d3f28, state:R) prio=4
        java.lang.Thread.setPriority(Thread.java)
        sun.awt.ScreenUpdater.run(ScreenUpdater.java:97)

[ snip - it goes off for a bit ]

Thread Alarm Q:
    sys_thread_t 0x495b2f28   [Timeout in 1216 ms]
    sys_thread_t 0x49591f28   [Timeout in 1500 ms]
Abort trap (core dumped)

I looked through the ktrace output, and am running across a couple
SIG exceptions;

  5247 java     CALL  sigprocmask(0,0,0x494aaf84)
  5247 java     RET   sigprocmask 0
  5247 java     CALL  sigprocmask(0,0,0x4950df84)
  5247 java     RET   sigprocmask 0
  5247 java     CALL  pause
  5247 java     PSIG  SIGIO caught handler=0x481c5c44 mask=0x0 code=0x0
  5247 java     RET   pause -1 errno -4 Unknown error: 4294967292


And LOT more with the same handler= `code`

Then, a LOT of SIGALRM all through the trace...is this normal?

  5247 java     CALL  open(0xefbfc99c,0,0)
  5247 java    NAMI  "/emul/linux/usr/local/jdk/lib/i18n.jar/sun/awt/motif/Input
                      Thread.class"   
  5247 java    NAMI "/usr/local/jdk/lib/i18n.jar/sun/awt/motif/InputThread.
                     class"     
  5247 java     PSIG  SIGALRM caught handler=0x481c5c44 mask=0x0 code=0x0
  5247 java     RET   open JUSTRETURN

Also,

  5247 java     RET   read -1 errno -11 Unknown error: 4294967285
  5247 java     CALL  read(0x5,0xefbfc51c,0x20)
  5247 java     RET   read -1 errno -11 Unknown error: 4294967285
  5247 java     CALL  gettimeofday(0xefbfc3e0,0)
  5247 java     RET   gettimeofday 0
  5247 java     CALL  sigprocmask(0,0,0x81a1f5c)
  5247 java     RET   sigprocmask 0
  5247 java     CALL  sigprocmask(0x2,0x494aaf84,0)
  5247 java     RET   sigprocmask 0
  5247 java     CALL  gettimeofday(0x494aae38,0)
  5247 java     RET   gettimeofday 0
  5247 java     CALL  setitimer(0,0x494aae2c,0)
  5247 java     RET   setitimer 0
 
[ gettimeofday - setprocmask - gettimeofday - setitmer ad nasuam ]

  5247 java     PSIG  SIGALRM caught handler=0x481c5c44 mask=0x0 code=0x0

This program works very well under Linux, and I've got all the linux libs
installed (from the working machine), and the MESA libraries installed
and working too.

Ideas?

        Thanx a million,

                Nate