I have found a solution to this issue. As before, it helps to setup
LD_LIBRARY_PATH before running launcher. If it finds required PATHs it
doesn't re-execute itself. Pathes looks like:
path[0] = /home/ivan/svn/drlvm/trunk/build/deploy/jre/bin/default
path[1] = /home/ivan/svn/drlvm/trunk/build/deploy/jre/bin/

BTW, I have found a bug in the path checks. Giving only first path
will satisfy the condition in the code and will prevent execv(), but
VM will fail to run:
export #LD_LIBRARY_PATH=/home/ivan/svn/drlvm/trunk/build/deploy/jre/bin/default
#./deploy/jre/bin/java Test
java/lang/UnsatisfiedLinkError : Failed loading library
"libhyzlib.so": DSO load failed

I'm working on the fix.
--
Ivan

On 9/23/06, Nikolay Kuznetsov <[EMAIL PROTECTED]> wrote:
Yes, I've seen the same, please keep us informed if you find a solution.

On 9/23/06, Ivan Volosyuk <[EMAIL PROTECTED]> wrote:
> GNU gdb 6.4
>
> Attaching is ok, but it is not quite convinient to do attaching when
> running small test, I prefer: gdb --args prog args... but it no longer
> works for me after switch to new launcher.
> --
> Ivan
>
> On 9/23/06, Sunny Chan <[EMAIL PROTECTED]> wrote:
> > Which version of gdb are you using? Older version of gdb doesn't play along 
well
> > with nptl or java launcher which spawn another process.
> >
> > Try running your java program first and attach gdb to the process.
> >
> > Ivan Volosyuk wrote:
> > > I have problems running drlvm from gdb:
> > >
> > > (gdb) run
> > > Starting program: /home/ivan/svn/drlvm/trunk/build/deploy/jre/bin/java 
Test
> > > [Thread debugging using libthread_db enabled]
> > > [New Thread -1214326592 (LWP 25698)]
> > > [New Thread -1214510160 (LWP 25701)]
> > > Cannot find user-level thread for LWP 25698: generic error
> > >
> > > Does anybody have seen the problem?

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to