Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 52826 invoked from network); 29 Sep 2006 04:46:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Sep 2006 04:46:09 -0000 Received: (qmail 91326 invoked by uid 500); 29 Sep 2006 04:46:07 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 91291 invoked by uid 500); 29 Sep 2006 04:46:07 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 91280 invoked by uid 99); 29 Sep 2006 04:46:07 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2006 21:46:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [80.91.229.2] ([80.91.229.2:54953] helo=ciao.gmane.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 37/64-08095-B05AC154 for ; Thu, 28 Sep 2006 21:46:04 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GTAFt-00041L-1b for harmony-dev@incubator.apache.org; Fri, 29 Sep 2006 06:45:45 +0200 Received: from msfwpr01.ims.intel.com ([62.118.80.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Sep 2006 06:45:45 +0200 Received: from egor.pasko by msfwpr01.ims.intel.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Sep 2006 06:45:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: harmony-dev@incubator.apache.org From: Egor Pasko Subject: Re: [drlvm] [launcher] Executable hangs Date: 29 Sep 2006 11:45:58 +0700 Lines: 80 Message-ID: References: <73CA41AD-1E8D-4040-B2F8-BC24255F5F6A@pobox.com> <008501c6e2ce$800ddb90$6801a8c0@armand1cc074f4> <1CD2D148-C131-4CB8-96E8-F5D83E8FF28F@pobox.com> <451C24D1.7010106@purdue.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: msfwpr01.ims.intel.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Sender: news X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On the 0x1F3 day of Apache Harmony Armand Navabi wrote: > Making progress... > > Ok, the problem with execv() has been solved. It wasn't finding the > path because of a stupid mistake on my part. Here was the problem: > > 1047 if (newPathToAdd[i] != NULL && strstr(oldPath, > newPathToAdd[i]) != 0) { > (gdb) p newPathToAdd[i] > $2 = 0x8067ae8 > "/u/u12/anavabi/Harmony/enhanced/drlvm/trunk/build/deploy/jre/bin/default" > (gdb) p oldPath > $3 = 0xbfe4c554 > "/homes/anavabi/Harmony/enhanced/drlvm/trunk/build/deploy/jre/bin/:/homes/anavabi/Harmony/enhanced/drlvm/trunk/build/deploy/jre/bin/default" > > I had to change /homes/anavabi to /u/u12/anavabi in LD_LIBRARY_PATH and > then the paths are found, so it never gets to the execv line. FYI, the > default directory is the one that should not contain a trailing slash. > Thanks for the help on this one. > > Now gdb is working like a champ, but "java helloworld" is still having > problems. Here is a stack trace of what happens when I try to run > helloworld in gdb: > > (gdb) run helloworld > Starting program: > /u/u12/anavabi/Harmony/enhanced/drlvm/trunk/build/deploy/jre/bin/java > helloworld > [Thread debugging using libthread_db enabled] > [New Thread 16384 (LWP 12424)] > [New Thread 32769 (LWP 12427)] > [New Thread 16386 (LWP 12428)] > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 16384 (LWP 12424)] > 0xb7f72d94 in _dl_relocate_object () from /lib/ld-linux.so.2 > > (gdb) bt > #0 0xb7f72d94 in _dl_relocate_object () from /lib/ld-linux.so.2 > #1 0xb7a99fa3 in getutmpx () from /lib/libc.so.6 > #2 0xb7f75862 in _dl_catch_error () from /lib/ld-linux.so.2 > #3 0xb7a9a745 in _dl_open () from /lib/libc.so.6 > #4 0xb79aed00 in ?? () from /lib/libdl.so.2 > #5 0xfffffffe in ?? () > #6 0xb7f80000 in ?? () from /lib/ld-linux.so.2 > #7 0xbf9cab68 in ?? () > #8 0xb7f7ffd4 in ?? () from /lib/ld-linux.so.2 > #9 0xb7f7fca0 in ?? () from /lib/ld-linux.so.2 > #10 0x0000000c in ?? () > #11 0xbf9cac38 in ?? () > #12 0xb7f75862 in _dl_catch_error () from /lib/ld-linux.so.2 > #13 0xb7f75862 in _dl_catch_error () from /lib/ld-linux.so.2 > #14 0xb79af299 in dlerror () from /lib/libdl.so.2 > #15 0xb79aed54 in dlopen () from /lib/libdl.so.2 > #16 0xb6ecca78 in apr_dso_load (res_handle=0x0, path=0x0, > pool=0x8090c40) at dso.c:139 > #17 0xb6d3baa1 in Dll_JIT (this=0x80a8640, > dll_filename=0x80a8774 > "/u/u12/anavabi/Harmony/enhanced/drlvm/trunk/build/deploy/jre/bin/default//libjitrino.so") OK, what I see is you cannot load libjitrino.so, how unhappy you are:) The trace looks suspicious since there is a good "dll_filename" to load in Dll_JIT::Dll_JIT. "dll_filename" should be passed as the second parameter /* path */ to apr_dso_load() AS_IS, with no change, but that's not what happens, NULL is passed. I suspect those "memset" and "apr_pool_create" to nullify our goody string. Could you track what happens with "dll_filename" in Dll_JIT (vmcore/src/jit/dll_jit.cpp:57), and why :) AFAIR, you cannot put a breakpoint directly in constructor, so feel free to add some unique function call at the beginning and break there. BTW, it is not like the original bug. Now you have a SIGSEGV, but in older times it hung. Interesting.. -- Egor Pasko, Intel Managed Runtime Division --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org