Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2003 15:16:10 +0000
From:      Jens Rehsack <rehsack@liwing.de>
To:        Alexey Zelkin <phantom@FreeBSD.org.ua>
Cc:        freebsd-java@freebsd.org
Subject:   Re: jdk-1.4 on 5.1-current
Message-ID:  <3F61E33A.9040405@liwing.de>
In-Reply-To: <20030908121132.B61701@phantom.cris.net>
References:  <3F573110.90106@liwing.de> <20030908115507.A61581@phantom.cris.net> <3F5C4342.4050200@liwing.de> <20030908121132.B61701@phantom.cris.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Alexey,

I tried again with MAKE_VERBOSE=yes and CFLAGS=-g and got a chance to 
look into the result.

First what makes me confuse was the output during make:

 >>>Recursively making javac all @ Fri Sep 12 14:30:54 GMT 2003 ...
Syntax error: Unterminated quoted string
gmake[3]: Entering directory 
`/usr/ports/java/jdk14/work/j2se/make/java/javac'
 >>>Recursively making ../../sun/javac all @ Fri Sep 12 14:30:54 GMT 
2003 ...
cd  ../../sun/javac ; gmake all RELEASE=1.4.1-p4-pre1 
FULL_VERSION=1.4.1-p4-pre1-root_12_sep_2003_12_53
Syntax error: Unterminated quoted string
gmake[4]: Entering directory 
`/usr/ports/java/jdk14/work/j2se/make/sun/javac'
 >>>Recursively making sources all @ Fri Sep 12 14:30:54 GMT 2003 ...
Syntax error: Unterminated quoted string
gmake[5]: Entering directory 
`/usr/ports/java/jdk14/work/j2se/make/sun/javac/sources'

If you want to see the entire log, I'll record by script(1) and
mail it to you.

Than the coredump occures again and I checked the dump:
(gdb) bt
#0  0x68475d1e in init_debug_values () at
     /usr/ports/java/jdk14/work/hotspot/src/os/bsd/vm/os_bsd.cpp:104
#1  0x68479619 in os_init() () at
     /usr/ports/java/jdk14/work/hotspot/src/os/bsd/vm/os_bsd.cpp:2176
#2  0x684cdc11 in Threads::create_vm(JavaVMInitArgs*) (args=0xbfbfe880)
     at
/usr/ports/java/jdk14/work/hotspot/src/share/vm/runtime/thread.cpp:2514
#3  0x683dcd5b in JNI_CreateJavaVM (vm=0xbfbff11c, penv=0xbfbff118,
     args=0x0) at
     /usr/ports/java/jdk14/work/hotspot/src/share/vm/prims/jni.cpp:2318
#4  0x0804a7d4 in free ()
#5  0x08048fc0 in free ()
#6  0x08048be4 in free ()
(gdb) disas 0x68475d1e
Dump of assembler code for function init_debug_values:
0x68475cf0 <init_debug_values>: push   %ebp
0x68475cf1 <init_debug_values+1>:       mov    %esp,%ebp
0x68475cf3 <init_debug_values+3>:       push   %ebx
0x68475cf4 <init_debug_values+4>:       sub    $0x4,%esp
0x68475cf7 <init_debug_values+7>:       call   0x68279dda 
<__i686.get_pc_thunk.bx>
0x68475cfc <init_debug_values+12>:      add    $0x16990c,%ebx
0x68475d02 <init_debug_values+18>:      lea    0xfff8843c(%ebx),%eax
0x68475d08 <init_debug_values+24>:      mov    %eax,(%esp,1)
0x68475d0b <init_debug_values+27>:      call   0x6826905c <_init+10636>
0x68475d10 <init_debug_values+32>:      test   %eax,%eax
0x68475d12 <init_debug_values+34>:      mov    $0x1,%eax
0x68475d17 <init_debug_values+39>:      cmove  0xfff1c7e0(%ebx),%eax
0x68475d1e <init_debug_values+46>:      mov    %eax,0xfff1c7e0(%ebx)
0x68475d24 <init_debug_values+52>:      lea    0xfff88451(%ebx),%eax
0x68475d2a <init_debug_values+58>:      mov    %eax,(%esp,1)
0x68475d2d <init_debug_values+61>:      call   0x6826905c <_init+10636>
0x68475d32 <init_debug_values+66>:      test   %eax,%eax
0x68475d34 <init_debug_values+68>:      mov    $0x1,%eax
0x68475d39 <init_debug_values+73>:      cmove  0xfff1c7d8(%ebx),%eax
0x68475d40 <init_debug_values+80>:      mov    %eax,0xfff1c7d8(%ebx)
0x68475d46 <init_debug_values+86>:      lea    0xfff88468(%ebx),%eax
0x68475d4c <init_debug_values+92>:      mov    %eax,(%esp,1)
0x68475d4f <init_debug_values+95>:      call   0x6826905c <_init+10636>
0x68475d54 <init_debug_values+100>:     test   %eax,%eax
0x68475d56 <init_debug_values+102>:     mov    $0x1,%eax
0x68475d5b <init_debug_values+107>:     cmove  0xfff1c7dc(%ebx),%eax
0x68475d62 <init_debug_values+114>:     mov    %eax,0xfff1c7dc(%ebx)
0x68475d68 <init_debug_values+120>:     lea    0xfff88481(%ebx),%eax
0x68475d6e <init_debug_values+126>:     mov    %eax,(%esp,1)
0x68475d71 <init_debug_values+129>:     call   0x6826905c <_init+10636>
0x68475d76 <init_debug_values+134>:     test   %eax,%eax
0x68475d78 <init_debug_values+136>:     mov    $0x1,%eax
0x68475d7d <init_debug_values+141>:     cmove  0xfff1c7e4(%ebx),%eax
0x68475d84 <init_debug_values+148>:     mov    %eax,0xfff1c7e4(%ebx)
0x68475d8a <init_debug_values+154>:     lea    0xfff8849d(%ebx),%eax
0x68475d90 <init_debug_values+160>:     mov    %eax,(%esp,1)
0x68475d93 <init_debug_values+163>:     call   0x6826905c <_init+10636>
0x68475d98 <init_debug_values+168>:     test   %eax,%eax
0x68475d9a <init_debug_values+170>:     je     0x68475da8 
<init_debug_values+184>
0x68475d9c <init_debug_values+172>:     mov    0x5768(%ebx),%eax
0x68475da2 <init_debug_values+178>:     movl   $0x1,(%eax)
0x68475da8 <init_debug_values+184>:     lea    0xfff884ad(%ebx),%eax
0x68475dae <init_debug_values+190>:     mov    %eax,(%esp,1)
0x68475db1 <init_debug_values+193>:     call   0x6826905c <_init+10636>
0x68475db6 <init_debug_values+198>:     test   %eax,%eax
0x68475db8 <init_debug_values+200>:     je     0x68475dc6 
<init_debug_values+214>
0x68475dba <init_debug_values+202>:     mov    0x696c(%ebx),%eax
0x68475dc0 <init_debug_values+208>:     movl   $0x1,(%eax)
0x68475dc6 <init_debug_values+214>:     add    $0x4,%esp
0x68475dc9 <init_debug_values+217>:     pop    %ebx
0x68475dca <init_debug_values+218>:     pop    %ebp
0x68475dcb <init_debug_values+219>:     ret
End of assembler dump.
(gdb) list 100,110
init_debug_values() {
101       char *s;
102       bool *b;
103
104       if ((s = getenv("_JAVADEBUG_TRACE_HPI")) != NULL) {
105          b = (jint*)&TraceHPI; *b = true;
106       }
107
108       if ((s = getenv("_JAVADEBUG_TRACE_VMOPS")) != NULL) {
109          b = (jint*)&TraceVMOperation; *b = true;
110       }

110       }
(gdb) print b
No symbol "b" in current context.

Because of I cannot easily read AT&T style assembly and don't know gdb
too much, I'm not sure how I can go forward to find the error and fix
it.

Any help to do this is gladly welcome.

Best regards,
Jens



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F61E33A.9040405>