Subject: Re: java on current?
To: Christos Zoulas <christos@astron.com>
From: George Michaelson <ggm@apnic.net>
List: pkgsrc-users
Date: 12/18/2006 13:51:16
sure. Here is the kdump output over the ktrace of java -jar

 25114      1 ktrace   EMUL  "netbsd"
 25114      1 ktrace   CALL  execve(0xbfbfe3ec,0xbfbfe8a0,0xbfbfe8ac)
 25114      1 ktrace   NAMI  "/home/ggm/bin/java"
 25114      1 ktrace   RET   execve -1 errno 2 No such file or directory
 25114      1 ktrace   CALL  execve(0xbfbfe3ec,0xbfbfe8a0,0xbfbfe8ac)
 25114      1 ktrace   NAMI  "/usr/games/java"
 25114      1 ktrace   RET   execve -1 errno 2 No such file or directory
 25114      1 ktrace   CALL  execve(0xbfbfe3ec,0xbfbfe8a0,0xbfbfe8ac)
 25114      1 ktrace   NAMI  "/home/ggm/bin/java"
 25114      1 ktrace   RET   execve -1 errno 2 No such file or directory
 25114      1 ktrace   CALL  execve(0xbfbfe3ec,0xbfbfe8a0,0xbfbfe8ac)
 25114      1 ktrace   NAMI  "/usr/games/java"
 25114      1 ktrace   RET   execve -1 errno 2 No such file or directory
 25114      1 ktrace   CALL  execve(0xbfbfe3ec,0xbfbfe8a0,0xbfbfe8ac)
 25114      1 ktrace   NAMI  "/usr/pkg/xorg/bin/java"
 25114      1 ktrace   RET   execve -1 errno 2 No such file or directory
 25114      1 ktrace   CALL  execve(0xbfbfe3ec,0xbfbfe8a0,0xbfbfe8ac)
 25114      1 ktrace   NAMI  "/sbin/java"
 25114      1 ktrace   RET   execve -1 errno 2 No such file or directory
 25114      1 ktrace   CALL  execve(0xbfbfe3ec,0xbfbfe8a0,0xbfbfe8ac)
 25114      1 ktrace   NAMI  "/usr/sbin/java"
 25114      1 ktrace   RET   execve -1 errno 2 No such file or directory
 25114      1 ktrace   CALL  execve(0xbfbfe3ec,0xbfbfe8a0,0xbfbfe8ac)
 25114      1 ktrace   NAMI  "/usr/pkg/bin/java"
 25114      1 ktrace   RET   execve -1 errno 2 No such file or directory
 25114      1 ktrace   CALL  execve(0xbfbfe3ec,0xbfbfe8a0,0xbfbfe8ac)
 25114      1 ktrace   NAMI  "/usr/pkg/sbin/java"
 25114      1 ktrace   RET   execve -1 errno 2 No such file or directory
 25114      1 ktrace   CALL  execve(0xbfbfe3ec,0xbfbfe8a0,0xbfbfe8ac)
 25114      1 ktrace   NAMI  "/usr/pkg/java/sun-1.5/bin/java"
 25114      1 ktrace   NAMI  "/emul/linux/lib/ld-linux.so.2"
 25114      1 ktrace   NAMI  "/emul/linux"
 25114      1 ktrace   NAMI  "/emul/linux/lib/ld-linux.so.2"
 25114      1 java     EMUL  "linux"
 25114      1 java     RET   execve -1 errno -2 No such file or
directory 25114      1 java     CALL  uname(0xbfbfe636)
 25114      1 java     RET   uname 0
 25114      1 java     CALL  brk(0)
 25114      1 java     RET   brk 134582272/0x8059000
 25114      1 java     CALL  access(0xbbbfaa94,4)
 25114      1 java     NAMI  "/emul/linux/etc/ld.so.preload"
 25114      1 java     NAMI  "/etc/ld.so.preload"
 25114      1 java     RET   access -1 errno -2 No such file or
directory 25114      1 java     CALL  open(0xbbbfc82e,0,0)
 25114      1 java     NAMI  "/emul/linux/etc/ld.so.cache"
 25114      1 java     NAMI  "/emul/linux"
 25114      1 java     NAMI  "/emul/linux/etc/ld.so.cache"
 25114      1 java     RET   open 3
 25114      1 java     CALL  fstat64(3,0xbfbfdeb4)
 25114      1 java     RET   fstat64 0
 25114      1 java     CALL  old_mmap(0xbfbfde94)
 25114      1 java     RET   old_mmap -1145159680/0xbbbe4000
 25114      1 java     CALL  close(3)
 25114      1 java     RET   close 0
 25114      1 java     CALL  open(0xbbbe5c9a,0,0x8048949)
 25114      1 java     NAMI  "/emul/linux/lib/libpthread.so.0"
 25114      1 java     NAMI  "/emul/linux"
 25114      1 java     NAMI  "/emul/linux/lib/libpthread.so.0"
 25114      1 java     RET   open 3
 25114      1 java     CALL  read(3,0xbfbfe01c,0x200)
 25114      1 java     GIO   fd 3 read 512 bytes
       "\^?ELF\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\0\0\0\0\0h\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0p\0\0\0\0\0\0\0@\0\0\0\M^H\0\0\0" 25114      1 java     RET   read
512/0x200 25114      1 java     CALL  fstat64(3,0xbfbfdf30)
 25114      1 java     RET   fstat64 0
 25114      1 java     CALL  old_mmap(0xbfbfdd80)
 25114      1 java     RET   old_mmap -1145499648/0xbbb91000
 25114      1 java     CALL  madvise(0xbbb91000,0x52ca4,3)
 25114      1 java     RET   madvise 0
 25114      1 java     CALL  old_mmap(0xbfbfdd80)
 25114      1 java     RET   old_mmap -1145438208/0xbbba0000
 25114      1 java     CALL  old_mmap(0xbfbfdd80)
 25114      1 java     RET   old_mmap -1145430016/0xbbba2000
 25114      1 java     CALL  close(3)
 25114      1 java     RET   close 0
 25114      1 java     CALL  open(0xbbbe6754,0,0x804897d)
 25114      1 java     NAMI  "/emul/linux/lib/libdl.so.2"
 25114      1 java     NAMI  "/emul/linux"
 25114      1 java     NAMI  "/emul/linux/lib/libdl.so.2"
 25114      1 java     RET   open 3
 25114      1 java     CALL  read(3,0xbfbfe000,0x200)
 25114      1 java     GIO   fd 3 read 512 bytes
       "\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0P\f\0\0004\0\0\0\
	\M^H$\0\0\0\0\0\0004\0 \0
\0(\0\^_\0\^\\0\^F\0\0\0004\0\0\0004\0\ \0\0004\0\0\0 \^A\0\0
\^A\0\0\^E\0\0\0\^D\0\0\0\^C\0\0\0Z\^Z\0\0Z\^Z\0\
\0Z\^Z\0\0\^S\0\0\0\^S\0\0\0\^D\0\0\0\^A\0\0\0\^A\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0t\^Z\0\0t\^Z\0\0\^E\0\0\0\0\^P\0\0\^A\0\0\0\M-T\^^\0\0\M-T.\
\0\0\M-T.\0\0|\^A\0\0\240\^A\0\0\^F\0\0\0\0\^P\0\0\^B\0\0\0\M-l\^^\0\0\
\M-l.\0\0\M-l.\0\0\M-`\0\0\0\M-`\0\0\0\^F\0\0\0\^D\0\0\0\^D\0\0\0T\^A\
\0\0T\^A\0\0T\^A\0\0 \0\0\0 \0\0\0\^D\0\0\0\^D\0\0\0\^D\0\0\0t\^A\0\0t\
\^A\0\0t\^A\0\0\^X\0\0\0\^X\0\0\0\^D\0\0\0\^D\0\0\0Q\M-etd\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^F\0\0\0\^D\0\0\0R\M-etd\M-T\^^\0\0\M-T.\
\0\0\M-T.\0\0 \^A\0\0 \^A\0\0\^D\0\0\0\^D\0\0\0\^D\0\0\0\^P\0\0\0\^A\0\
\0\0GNU\0\0\0\0\0\^B\0\0\0\^B\0\0\0\^E\0\0\0\^E\0\0\0\^D\0\0\0SuSESuSE\
\0\0\0\0\^A\0
\0A\0\0\0002\0\0\0\^]\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0-\0\0\0\r\0\
\0\0\^R\0\0\0\^[\0\0\0/\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0$\0\0\0\
\^Q\0\0\0\^Y\0\0\0\^O\0\0\0#\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0.\0\
\0\0\0\0\0\0\^N\0\0\0\^T\0\0\0" 25114      1 java     RET   read
512/0x200 25114      1 java     CALL  fstat64(3,0xbfbfdf14)
 25114      1 java     RET   fstat64 0
 25114      1 java     CALL  old_mmap(0xbfbfdd7c)
 25114      1 java     RET   old_mmap -1145516032/0xbbb8d000
 25114      1 java     CALL  madvise(0xbbb8d000,0x3074,3)
 25114      1 java     RET   madvise 0
 25114      1 java     CALL  old_mmap(0xbfbfdd7c)
 25114      1 java     RET   old_mmap -1145507840/0xbbb8f000
 25114      1 java     CALL  close(3)
 25114      1 java     RET   close 0
 25114      1 java     CALL  open(0xbbbe691c,0,0x80489a4)
 25114      1 java     NAMI  "/emul/linux/lib/libc.so.6"
 25114      1 java     NAMI  "/emul/linux"
 25114      1 java     NAMI  "/emul/linux/lib/libc.so.6"
 25114      1 java     RET   open 3
 25114      1 java     CALL  read(3,0xbfbfdfe4,0x200)
 25114      1 java     GIO   fd 3 read 512 bytes
       "\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0\M-0T\^A\0004\0\0\
	\0\M-t\M-L\^R\0\0\0\0\0004\0 \0
	\0(\0>\0;\0\^F\0\0\0004\0\0\0004\0\0\0004\0\0\0@\^A\0\0@\^A\0\0\^E\0\0\
	\0\^D\0\0\0\^C\0\0\0\M-@A\^Q\0\M-@A\^Q\0\M-@A\^Q\0\^S\0\0\0\^S\0\0\0\
	\^D\0\0\0\^A\0\0\0\^A\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\M--\^Q\0\f\M--\
	\^Q\0\^E\0\0\0\0\^P\0\0\^A\0\0\0\M-X\M-5\^Q\0\M-X\M-5\^Q\0\M-X\M-5\^Q\
	\0\M-8,\0\0\M-<V\0\0\^F\0\0\0\0\^P\0\0\^B\0\0\0\^\\M-M\^Q\0\^\\M-M\^Q\
	\0\^\\M-M\^Q\0\M-`\0\0\0\M-`\0\0\0\^F\0\0\0\^D\0\0\0\^D\0\0\0t\^A\0\0t\
	\^A\0\0t\^A\0\0 \0\0\0
\0\0\0\^D\0\0\0\^D\0\0\0\^D\0\0\0\M^T\^A\0\0\
\M^T\^A\0\0\M^T\^A\0\0\^X\0\0\0\^X\0\0\0\^D\0\0\0\^D\0\0\0P\M-etd\M-TA\
\^Q\0\M-TA\^Q\0\M-TA\^Q\0\M-,\^T\0\0\M-,\^T\0\0\^D\0\0\0\^D\0\0\0Q\M-e\
td\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^F\0\0\0\^D\0\0\0R\M-etd\
\M-X\M-5\^Q\0\M-X\M-5\^Q\0\M-X\M-5\^Q\0\^T\^X\0\0\^T\^X\0\0\^D\0\0\0 \
\0\0\0\^D\0\0\0\^P\0\0\0\^A\0\0\0GNU\0\0\0\0\0\^B\0\0\0\^B\0\0\0\^E\0\
\0\0\^E\0\0\0\^D\0\0\0SuSESuSE\0\0\0\0\^A\0
\0\M^?\^C\0\0\M^@\b\0\0\^C\^A\0\0\M^Z\^F\0\0X\^B\0\0\M-O\0\0\0\^C\a\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\M^H\^F\0\0\M-i\^E\0\0\0\0\0\08\b\0\
\0\M^R\^F\0\0\^T\^B\0\0\M--\^B\0\0M\b\0\0,\^D\0\0B\b\0\0" 25114      1
java     RET   read 512/0x200 25114      1 java     CALL
fstat64(3,0xbfbfdef8) 25114      1 java     RET   fstat64 0
 25114      1 java     CALL  old_mmap(0xbfbfddb4)
 25114      1 java     RET   old_mmap -1145520128/0xbbb8c000
 25114      1 java     CALL  old_mmap(0xbfbfdd48)
 25114      1 java     RET   old_mmap -1146703872/0xbba6b000
 25114      1 java     CALL  madvise(0xbba6b000,0x120c94,3)
 25114      1 java     RET   madvise 0
 25114      1 java     CALL  old_mmap(0xbfbfdd48)
 25114      1 java     RET   old_mmap -1145544704/0xbbb86000
 25114      1 java     CALL  old_mmap(0xbfbfdd48)
 25114      1 java     RET   old_mmap -1145528320/0xbbb8a000
 25114      1 java     CALL  close(3)
 25114      1 java     RET   close 0
 25114      1 java     CALL  mprotect(0xbbb86000,0x1000,1)
 25114      1 java     RET   mprotect 0
 25114      1 java     CALL  munmap(0xbbbe4000,0x32bc)
 25114      1 java     RET   munmap 0
 25114      1 java     CALL  ugetrlimit(3,0xbfbfe45c)
 25114      1 java     RET   ugetrlimit 0
 25114      1 java     CALL  setrlimit(3,0xbfbfe45c)
 25114      1 java     RET   setrlimit 0
 25114      1 java     CALL  getpid
 25114      1 java     RET   getpid 25114/0x621a
 25114      1 java     CALL  rt_sigaction(SIGRT0,0xbfbfe3d8,0,8)
 25114      1 java     RET   rt_sigaction 0
 25114      1 java     CALL  rt_sigaction(SIGRT1,0xbfbfe3d8,0,8)
 25114      1 java     RET   rt_sigaction 0
 25114      1 java     CALL  rt_sigaction(SIGRT2,0xbfbfe3d8,0,8)
 25114      1 java     RET   rt_sigaction 0
 25114      1 java     CALL  rt_sigprocmask(0,0xbfbfe730,0,8)
 25114      1 java     RET   rt_sigprocmask 0
 25114      1 java     CALL  rt_sigprocmask(1,0xbfbfe730,0,8)
 25114      1 java     RET   rt_sigprocmask 0
 25114      1 java     CALL  __sysctl(0xbfbfe444)
 25114      1 java     RET   __sysctl 0
 25114      1 java     CALL  brk(0)
 25114      1 java     RET   brk 134582272/0x8059000
 25114      1 java     CALL  brk(0x807a000)
 25114      1 java     RET   brk 134717440/0x807a000
 25114      1 java     CALL  readlink(0x80555e1,0xbfbfb710,0xfff)
 25114      1 java     NAMI  "/emul/linux/proc/self/exe"
 25114      1 java     NAMI  "/emul/linux"
 25114      1 java     NAMI  "/emul/linux/proc/self/exe"
 25114      1 java     RET   readlink 1
 25114      1 java     CALL  write(2,0x80558c0,0x21)
 25114      1 java     GIO   fd 2 wrote 33 bytes
       "Error: could not find libjava.so
       "
 25114      1 java     RET   write 33/0x21
 25114      1 java     CALL  write(2,0x8055840,0x32)
 25114      1 java     GIO   fd 2 wrote 50 bytes
       "Error: could not find Java 2 Runtime Environment.
       "
 25114      1 java     RET   write 50/0x32
 25114      1 java     CALL  exit_group(2)