Subject: Re: Debugging core dumps from Linux-emulated apps
To: Christos Zoulas <christos@zoulas.com>
From: Brian de Alwis <bsd@cs.ubc.ca>
List: netbsd-users
Date: 04/17/2007 13:01:31
On 2007.04.17 14:33:06 -0400, Christos Zoulas wrote:
> I'll try again. I have to find and i386 box that has java on it...
> It seems that x86_64 perhaps behaves differently.

It may be something to do with java or fancier use of signals as
I can use gdb and run other apps, like a Qt3 based Linux app.

I can run a native Sun JVM under gdb, though I also get a SIGTRAP
right away:

    (gdb) run
    Starting program: /usr/pkg/java/jdk-1.5.0/bin/java 
    (no debugging symbols found)...(no debugging symbols found)...(no
    debugging symbols found)...(no debugging symbols found)...
    Program received signal SIGTRAP, Trace/breakpoint trap.
    0xbbbf549c in .rtld_start () from /usr/libexec/ld.elf_so
    (gdb) c
    Continuing.
    (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Usage: java [-options] class [args...]
	       (to execute a class)
       or  java [-options] -jar jarfile [args...]
	       (to execute a jar file)
    [etc]

Brian.

-- 
  Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/
      "Amusement to an observing mind is study." - Benjamin Disraeli