Subject: Re: java on current?
To: Chavdar Ivanov <ci4ic4@gmail.com>
From: Zafer Aydogan <zafer@aydogan.de>
List: current-users
Date: 01/11/2007 23:43:46
# uname -a
NetBSD futro.aydogan.net 4.99.7 NetBSD 4.99.7 (GENERIC) #33: Wed Jan
10 02:21:26 CET 2007

here is the ktruss:

./netbeans/bin/netbeans --jdkhome /usr/pkg/java/sun-1.5/

 2431      1 ktruss   emul(netbsd)
 2431      1 ktruss   fcntl(0x4, 0x3, 0)          = 1
 2431      1 ktruss   fcntl(0x4, 0x4, 0x1)        = 0
 2431      1 sh       emul(netbsd)
 2431      1 sh       execve("./netbeans/bin/netbeans", 0xbfbfed5c,
0xbfbfed6c) JUSTRETURN
 2431      1 sh       mmap(0, 0x8000, 0x3, 0x1002, 0xffffffff, 0, 0,
0) = 0xbbbea000
 2431      1 sh       open("/etc/ld.so.conf", 0, 0xffffffff) = 3
 2431      1 sh       __fstat30(0x3, 0xbfbfec5c)  = 0
 2431      1 sh       mmap(0, 0x37, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbbbe9000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       munmap(0xbbbe9000, 0x37)    = 0
 2431      1 sh       open("/lib/libedit.so.2", 0, 0) = 3
 2431      1 sh       __fstat30(0x3, 0xbfbfe578)  = 0
 2431      1 sh       mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbbbe9000
 2431      1 sh       munmap(0xbbbe9000, 0x1000)  = 0
 2431      1 sh       mmap(0, 0x1b000, 0x5, 0x2, 0x3, 0, 0, 0) = 0xbbbcf000
 2431      1 sh       mmap(0xbbbe7000, 0x2000, 0x3, 0x12, 0x3, 0,
0x18000, 0) = 0xbbbe7000
 2431      1 sh       mmap(0xbbbe9000, 0x1000, 0x3, 0x1012,
0xffffffff, 0, 0, 0) = 0xbbbe9000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       open("/lib/libtermcap.so.0", 0, 0xbfbfe578) = 3
 2431      1 sh       __fstat30(0x3, 0xbfbfe578)  = 0
 2431      1 sh       mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbbbce000
 2431      1 sh       munmap(0xbbbce000, 0x1000)  = 0
 2431      1 sh       mmap(0, 0x4000, 0x5, 0x2, 0x3, 0, 0, 0) = 0xbbbcb000
 2431      1 sh       mmap(0xbbbce000, 0x1000, 0x3, 0x12, 0x3, 0,
0x2000, 0) = 0xbbbce000
 2431      1 sh       mmap(0xbbbcf000, 0, 0x3, 0x1012, 0xffffffff, 0,
0, 0) = 0xbbbcf000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       open("/lib/libc.so.12", 0, 0xbfbfe578) = 3
 2431      1 sh       __fstat30(0x3, 0xbfbfe578)  = 0
 2431      1 sh       mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbbbca000
 2431      1 sh       munmap(0xbbbca000, 0x1000)  = 0
 2431      1 sh       mmap(0, 0xdb000, 0x5, 0x2, 0x3, 0, 0, 0) = 0xbbaf0000
 2431      1 sh       mmap(0xbbbb4000, 0x7000, 0x3, 0x12, 0x3, 0,
0xc3000, 0) = 0xbbbb4000
 2431      1 sh       mmap(0xbbbbb000, 0x10000, 0x3, 0x1012,
0xffffffff, 0, 0, 0) = 0xbbbbb000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       __sysctl(0xbfbfec80, 0x2, 0xbbbbabc0,
0xbfbfec88, 0, 0) = 0
 2431      1 sh       issetugid()                 = 0
 2431      1 sh       __sysctl(0xbfbfda90, 0x2, 0xbfbfda9c,
0xbfbfdaa0, 0, 0) = 0
 2431      1 sh       readlink("/etc/malloc.conf", 0xbfbfdad0, 0x3f)
Err#2 ENOENT
 2431      1 sh       mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0,
0) = 0xbbaef000
 2431      1 sh       break(0x8064ef8)            = 0
 2431      1 sh       break(0x8065ef8)            = 0
 2431      1 sh       break(0x8066000)            = 0
 2431      1 sh       break(0x8067000)            = 0
 2431      1 sh       open("/usr/share/locale/locale.alias.db", 0,
0xbfbfdaf4) Err#2 ENOENT
 2431      1 sh       open("/usr/share/locale/locale.alias", 0, 0xbfbfdb58) = 3
 2431      1 sh       fcntl(0x3, 0x2, 0x1)        = 0
 2431      1 sh       __fstat30(0x3, 0xbfbfdae8)  = 0
 2431      1 sh       mmap(0, 0xd8f, 0x1, 0x2, 0x3, 0, 0, 0) = 0xbbaee000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       munmap(0xbbaee000, 0xd8f)   = 0
 2431      1 sh       open("/usr/share/locale/locale.alias.db", 0, 0)
Err#2 ENOENT
 2431      1 sh       open("/usr/share/locale/locale.alias", 0, 0xbfbfdb58) = 3
 2431      1 sh       fcntl(0x3, 0x2, 0x1)        = 0
 2431      1 sh       __fstat30(0x3, 0xbfbfdae8)  = 0
 2431      1 sh       mmap(0, 0xd8f, 0x1, 0x2, 0x3, 0, 0, 0) = 0xbbaee000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       munmap(0xbbaee000, 0xd8f)   = 0
 2431      1 sh
open("/usr/share/locale/de_DE.ISO8859-15/LC_CTYPE", 0, 0x1b6) = 3
 2431      1 sh       __fstat30(0x3, 0xbfbfd664)  = 0
 2431      1 sh       __fstat30(0x3, 0xbfbfc7a8)  = 0
 2431      1 sh       break(0x8069000)            = 0
 2431      1 sh       lseek(0x3, 0, 0, 0, 0x1)    = 0
 2431      1 sh       lseek(0x3, 0, 0, 0, 0)      = 0
 2431      1 sh       read(0x3, 0x8067000, 0x2000) = 3242
      "RuneCT10NONE\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\0\0\0\0\0\0\0\0\0\0\0\0\0\0\M^?\M^?\M^?"
 2431      1 sh       break(0x806a000)            = 0
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       break(0x806b000)            = 0
 2431      1 sh       break(0x806c000)            = 0
 2431      1 sh       open("/usr/share/locale/locale.alias.db", 0,
0x806b000) Err#2 ENOENT
 2431      1 sh       open("/usr/share/locale/locale.alias", 0, 0xbfbfdb58) = 3
 2431      1 sh       fcntl(0x3, 0x2, 0x1)        = 0
 2431      1 sh       __fstat30(0x3, 0xbfbfdae8)  = 0
 2431      1 sh       mmap(0, 0xd8f, 0x1, 0x2, 0x3, 0, 0, 0) = 0xbbaee000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       munmap(0xbbaee000, 0xd8f)   = 0
 2431      1 sh       open("/usr/share/locale/locale.alias.db", 0, 0)
Err#2 ENOENT
 2431      1 sh       open("/usr/share/locale/locale.alias", 0, 0xbfbfdb58) = 3
 2431      1 sh       fcntl(0x3, 0x2, 0x1)        = 0
 2431      1 sh       __fstat30(0x3, 0xbfbfdae8)  = 0
 2431      1 sh       mmap(0, 0xd8f, 0x1, 0x2, 0x3, 0, 0, 0) = 0xbbaee000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       munmap(0xbbaee000, 0xd8f)   = 0
 2431      1 sh       open("/usr/share/locale/locale.alias.db", 0,
0xffff0208) Err#2 ENOENT
 2431      1 sh       open("/usr/share/locale/locale.alias", 0, 0xbfbfdb58) = 3
 2431      1 sh       fcntl(0x3, 0x2, 0x1)        = 0
 2431      1 sh       __fstat30(0x3, 0xbfbfdae8)  = 0
 2431      1 sh       mmap(0, 0xd8f, 0x1, 0x2, 0x3, 0, 0, 0) = 0xbbaee000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       munmap(0xbbaee000, 0xd8f)   = 0
 2431      1 sh       open("/usr/share/locale/locale.alias.db", 0, 0)
Err#2 ENOENT
 2431      1 sh       open("/usr/share/locale/locale.alias", 0, 0xbfbfdb58) = 3
 2431      1 sh       fcntl(0x3, 0x2, 0x1)        = 0
 2431      1 sh       __fstat30(0x3, 0xbfbfdae8)  = 0
 2431      1 sh       mmap(0, 0xd8f, 0x1, 0x2, 0x3, 0, 0, 0) = 0xbbaee000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       munmap(0xbbaee000, 0xd8f)   = 0
 2431      1 sh       open("/usr/share/locale/locale.alias.db", 0,
0xffff0208) Err#2 ENOENT
 2431      1 sh       open("/usr/share/locale/locale.alias", 0, 0xbfbfdb58) = 3
 2431      1 sh       fcntl(0x3, 0x2, 0x1)        = 0
 2431      1 sh       __fstat30(0x3, 0xbfbfdae8)  = 0
 2431      1 sh       mmap(0, 0xd8f, 0x1, 0x2, 0x3, 0, 0, 0) = 0xbbaee000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       munmap(0xbbaee000, 0xd8f)   = 0
 2431      1 sh       open("/usr/share/locale/locale.alias.db", 0, 0)
Err#2 ENOENT
 2431      1 sh       open("/usr/share/locale/locale.alias", 0, 0xbfbfdb58) = 3
 2431      1 sh       fcntl(0x3, 0x2, 0x1)        = 0
 2431      1 sh       __fstat30(0x3, 0xbfbfdae8)  = 0
 2431      1 sh       mmap(0, 0xd8f, 0x1, 0x2, 0x3, 0, 0, 0) = 0xbbaee000
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       munmap(0xbbaee000, 0xd8f)   = 0
 2431      1 sh       __stat30("/usr/share/locale/de_DE.ISO8859-15",
0xbfbfdf78) = 0
 2431      1 sh       getpid()                    = 2431, 1880
 2431      1 sh       geteuid()                   = 0
 2431      1 sh       __stat30(".", 0xbfbfec00)   = 0
 2431      1 sh       __stat30("/root", 0xbfbfeb9c) = 0
 2431      1 sh       open("./netbeans/bin/netbeans", 0, 0xbfbfec58) = 3
 2431      1 sh       fcntl(0x3, 0, 0xa)          = 10
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       fcntl(0xa, 0x2, 0x1)        = 0
 2431      1 sh       getuid()                    = 0
 2431      1 sh       geteuid()                   = 0
 2431      1 sh       getgid()                    = 0
 2431      1 sh       getegid()                   = 0
 2431      1 sh       open("/root/.shrc", 0, 0x805a327) = 3
 2431      1 sh       fcntl(0x3, 0x2, 0x1)        = 0
 2431      1 sh       read(0x3, 0x806a800, 0x3f8) = 191
      "#\t$NetBSD: dot.shrc,v 1.7 2006/09/14 13:01:31 pavel Exp
$\n\n. /etc/shrc\n\nhup(){ (read pid; kill -HUP $pid) </va"
 2431      1 sh       open("/etc/shrc", 0, 0x804eec3) = 5
 2431      1 sh       fcntl(0x5, 0, 0xa)          = 11
 2431      1 sh       close(0x5)                  = 0
 2431      1 sh       fcntl(0xb, 0x2, 0x1)        = 0
 2431      1 sh       read(0xb, 0x806ac00, 0x3f8) = 260
      "#ll(){ ls -l ${1+"$@"}; }\n\ncase "$-" in
*i*)\n\tPS1="${HOST%%.*}$PS1"\n\tset -o emacs\n\t# This file is used
by s"
 2431      1 sh       read(0xb, 0x806ac00, 0x3f8) = 0
      ""
 2431      1 sh       close(0xb)                  = 0
 2431      1 sh       break(0x806d000)            = 0
 2431      1 sh       read(0x3, 0x806a800, 0x3f8) = 0
      ""
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       __sigaction_sigtramp(0x2, 0, 0xbfbfec44, 0, 0) = 0
 2431      1 sh       __sigaction_sigtramp(0x2, 0xbfbfebf8,
0xbfbfebe0, 0xbbb59564, 0x2) = 0
 2431      1 sh       __sigaction_sigtramp(0x2, 0, 0xbfbfebf4, 0, 0) = 0
 2431      1 sh       __sigaction_sigtramp(0x2, 0xbfbfebf4, 0,
0xbbb59564, 0x2) = 0
 2431      1 sh       __sigprocmask14(0x2, 0xbfbfec5c, 0) = 0
 2431      1 sh       __sigaction_sigtramp(0x3, 0, 0xbfbfec44, 0, 0) = 0
 2431      1 sh       __sigaction_sigtramp(0x3, 0xbfbfebf8,
0xbfbfebe0, 0xbbb59564, 0x2) = 0
 2431      1 sh       __sigprocmask14(0x2, 0xbfbfec5c, 0) = 0
 2431      1 sh       __sigaction_sigtramp(0x1, 0, 0xbfbfec44, 0, 0) = 0
 2431      1 sh       __sigaction_sigtramp(0x1, 0xbfbfebf8,
0xbfbfebe0, 0xbbb59564, 0x2) = 0
 2431      1 sh       __sigprocmask14(0x2, 0xbfbfec5c, 0) = 0
 2431      1 sh       __sigaction_sigtramp(0x12, 0, 0xbfbfec44, 0, 0) = 0
 2431      1 sh       __sigaction_sigtramp(0x12, 0xbfbfebf8,
0xbfbfebe0, 0xbbb59564, 0x2) = 0
 2431      1 sh       __sigprocmask14(0x2, 0xbfbfec5c, 0) = 0
 2431      1 sh       __sigaction_sigtramp(0xd, 0, 0xbfbfec44, 0, 0) = 0
 2431      1 sh       __sigaction_sigtramp(0xd, 0xbfbfebf8,
0xbfbfebe0, 0xbbb59564, 0x2) = 0
 2431      1 sh       __sigprocmask14(0x2, 0xbfbfec5c, 0) = 0
 2431      1 sh       read(0xa, 0x8063c80, 0x3f8) = 1016
      "#!/bin/sh\n# The contents of this file are subject to the
terms of the Common Development\n# and Distribution Licen"
 2431      1 sh       read(0xa, 0x8063c80, 0x3f8) = 1016
      "/' 2> /dev/null >/dev/null; then\n\tPRG="$link"\n
else\n\tPRG="`dirname "$PRG"`/$link"\n    fi\ndone\n\nprogdir="
 2431      1 sh       __lstat30("./netbeans/bin/netbeans", 0xbfbfea38) = 0
 2431      1 sh       pipe()                      = 3, 5
 2431      1 sh       fork()                      = 1677
 2431      1 sh       close(0x5)                  = 0
 2431      1 sh       read(0x3, 0xbfbfea1c, 0x80) = 15
      "./netbeans/bin\n"
 2431      1 sh       read(0x3, 0xbfbfea1c, 0x80) = 0
      ""
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       getpgrp()                   = 1880
 2431      1 sh       wait4(0xffffffff, 0xbfbfe9b8, 0, 0) = 1677
 2431      1 sh       __stat30("./netbeans/bin/../etc/netbeans.conf",
0xbfbfea68) = 0
 2431      1 sh       open("./netbeans/bin/../etc/netbeans.conf", 0,
0x804eec3) = 3
 2431      1 sh       fcntl(0x3, 0, 0xa)          = 11
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       fcntl(0xb, 0x2, 0x1)        = 0
 2431      1 sh       read(0xb, 0x806ac00, 0x3f8) = 1016
      "# ${HOME} will be replaced by JVM user.home system
property\nnetbeans_default_userdir="${HOME}/.netbeans/5.5"\n\n# "
 2431      1 sh       read(0xb, 0x806ac00, 0x3f8) = 340
      "hould set -J-Xmx256m instead of -J-Xmx128m\n# ---\n\n# default
location of J2SE JDK, can be overridden by using --j"
 2431      1 sh       read(0xb, 0x806ac00, 0x3f8) = 0
      ""
 2431      1 sh       close(0xb)                  = 0
 2431      1 sh
__stat30("/root/.netbeans/5.5/etc/netbeans.conf", 0xbfbfea68) Err#2
ENOENT
 2431      1 sh
__stat30("./netbeans/bin/../etc/netbeans.clusters", 0xbfbfe978) = 0
 2431      1 sh       read(0xa, 0x8063c80, 0x3f8) = 1016
      "./$X ]; then\n            echo $progdir/../$X\n        elif [
-d "$X" ]; then\n            echo $X\n        fi\n   "
 2431      1 sh       pipe()                      = 3, 5
 2431      1 sh       fork()                      = 2260
 2431      1 sh       close(0x5)                  = 0
 2431      1 sh       read(0x3, 0xbfbfea1c, 0x80) = 103
      "./netbeans/bin/../nb5.5:./netbeans/bin/../ide7:./netbeans/bin/../enterprise3:./netbeans/bin/../harness:"
 2431      1 sh       read(0x3, 0xbfbfea1c, 0x80) = 0
      ""
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       getpgrp()                   = 1880
 2431      1 sh       wait4(0xffffffff, 0xbfbfe9b8, 0, 0) = 2260
 2431      1 sh       break(0x806e000)            = 0
 2431      1 sh       read(0xa, 0x8063c80, 0x3f8) = 776
      "            -J-Xdock:name=NetBeans \\\n
"-J-Xdock:icon=$progdir/../nb5.5/netbeans.icns" \\\n            "
 2431      1 sh       pipe()                      = 3, 5
 2431      1 sh       fork()                      = 2460
 2431      1 sh       close(0x5)                  = 0
 2431      1 sh       read(0x3, 0xbfbfeaac, 0x80) = 7
      "NetBSD\n"
 2431      1 sh       read(0x3, 0xbfbfeaac, 0x80) = 0
      ""
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       getpgrp()                   = 1880
 2431      1 sh       wait4(0xffffffff, 0xbfbfea48, 0, 0) = 2460
 2431      1 sh       pipe()                      = 3, 5
 2431      1 sh       fork()                      = 2161
 2431      1 sh       close(0x5)                  = 0
 2431      1 sh       read(0x3, 0xbfbfe88c, 0x80) = 39
      "./netbeans/bin/../platform6/lib/nbexec\n"
 2431      1 sh       read(0x3, 0xbfbfe88c, 0x80) = 0
      ""
 2431      1 sh       close(0x3)                  = 0
 2431      1 sh       getpgrp()                   = 1880
 2431      1 sh       wait4(0xffffffff, 0xbfbfe828, 0, 0) = 2161
 2431      1 sh       break(0x806f000)            = 0
 2431      1 sh       __stat30("/sbin/sh", 0xbfbfe90c) Err#2 ENOENT
 2431      1 sh       __stat30("/usr/sbin/sh", 0xbfbfe90c) Err#2 ENOENT
 2431      1 sh       __stat30("/bin/sh", 0xbfbfe90c) = 0
 2431      1 sh       __vfork14()                 = 2546
 2431      1 sh       getpgrp()                   = 1880
 2431      1 sh       wait4(0xffffffff, 0xbfbfe958, 0, 0) = 2546
 2431      1 sh       read(0xa, 0x8063c80, 0x3f8) = 0
      ""
 2431      1 sh       exit(0x2)


It's probably a trivial mistake.

Zafer.

2007/1/10, Zafer Aydogan <zafer@aydogan.de>:
> I'm still getting :
>
> Error: could not find libjava.so
> Error: could not find Java 2 Runtime Environment.
>
> I'm using a yesterdays (9th)  Kernel.
>
>
> 2007/1/8, Chavdar Ivanov <ci4ic4@gmail.com>:
> > On 1/8/07, Chavdar Ivanov <ci4ic4@gmail.com> wrote:
> > > On 1/8/07, Chuck Silvers <chuq@chuq.com> wrote:
> > > > On Mon, Dec 18, 2006 at 11:26:10AM +0000, Chavdar Ivanov wrote:
> > > > > On 12/18/06, Christos Zoulas <christos@astron.com> wrote:
> > > > > >In article <20061218135116.161a6a45@garlique.algebras.org>,
> > > > > >George Michaelson  <ggm@apnic.net> wrote:
> > > > > >
> > > > > >>sure. Here is the kdump output over the ktrace of java -jar
> > > > > >> 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
> > > > > >
> > > > > >This is the problem. readlink returns only 1 which means it returns /
> > > > >
> > > > > On i386 4.99.5 as of 05/12 readlink returns the normal length and java
> > > > > works. On the same 4.99.5 as of 10/12 it returns 1. Something has been
> > > > > done in between - perhaps in readlink itself?
> > > >
> > > > FYI, this should be fixed by pooka's first change to vfs_lookup.c yesterday.
> > > > (at least, it'll work as well as it did before my changes on dec 9.)
> > >
> > > Thanks, I'll try this evening.
> >
> > [2/4.3.2]ci@lisa:~> java -version
> > java version "1.5.0_09"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
> > Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)
> > [2/4.3.2]ci@lisa:~> uname -a
> > NetBSD lisa 4.99.7 NetBSD 4.99.7 (LISA.MPACPI) #11: Mon Jan  8
> > 22:41:15 GMT 2007
> > root@lisa:/usr/obj/sys/arch/i386/compile/LISA.MPACPI i386
> >
> > It works, thanks!
> >
> > >
> > > >
> > > > -Chuck
> > > >
> >
> > Chavdar
> >
> > >
> >
> >
>