You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Xiao-Feng Li <xi...@gmail.com> on 2006/11/26 11:27:17 UTC

[DRLVM] Linux problem?

Hi, with revision 479181, I can build it but cannot successfully run
it. It cann't even run HelloWorld in my Fedora Core 4, and always
throws "An unhandled error (4) has occurred."

The debugging with gdb prints "Cannot find user-level thread for LWP
6058: generic error", so I couldn't do any debugging to identify the
problem. (I built classlib in o0 with -g option).

Anybody met the same problem? Thanks.

-xiaofeng

Re: [DRLVM] Linux problem?

Posted by Alexey Varlamov <al...@gmail.com>.
Xiao-Feng,

Seems you could not debug due to the glorified trouble with
self-rexeced launcher.
You just need to specify correct LD_LIBRARY_PATH: please take a look
at http://wiki.apache.org/harmony/Debugging%20DRLVM%20with%20GDB%20on%20Linux,
paragraph "Before We Start GDB".

--
Regards,
Alexey

2006/11/27, Geir Magnusson Jr. <ge...@pobox.com>:
>
>
> Xiao-Feng Li wrote:
> > Hi, with revision 479181, I can build it but cannot successfully run
> > it. It cann't even run HelloWorld in my Fedora Core 4, and always
> > throws "An unhandled error (4) has occurred."
> >
> > The debugging with gdb prints "Cannot find user-level thread for LWP
> > 6058: generic error", so I couldn't do any debugging to identify the
> > problem. (I built classlib in o0 with -g option).
> >
> > Anybody met the same problem? Thanks.
>
> I did an update this morning and a full build and test.  Seems fine.
>
> Any clue what an "unhandled error 4" is?
>
> geir
>
> >
> > -xiaofeng
>

Re: [DRLVM] Linux problem?

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.

Xiao-Feng Li wrote:
> Hi, with revision 479181, I can build it but cannot successfully run
> it. It cann't even run HelloWorld in my Fedora Core 4, and always
> throws "An unhandled error (4) has occurred."
> 
> The debugging with gdb prints "Cannot find user-level thread for LWP
> 6058: generic error", so I couldn't do any debugging to identify the
> problem. (I built classlib in o0 with -g option).
> 
> Anybody met the same problem? Thanks.

I did an update this morning and a full build and test.  Seems fine.

Any clue what an "unhandled error 4" is?

geir

> 
> -xiaofeng

Re: [DRLVM] Linux problem?

Posted by Xiao-Feng Li <xi...@gmail.com>.
I still can't run DRLVM after building it. This time I can debug it in
gdb, found the problem is in DrlEMImpl.cpp:381:

 std::string propName = std::string("em.")+jitName+".jitPath"

Its execution always causes SIGSEGV in
 __gnu_cxx::__pool<true>::_M_reclaim_block() from libstdc++.so.6

I can read the string is em.JET_CLINIT.jitPath after the + operation.

Anybody has a clue? Or it's a gnu tool chain incompability issue with
Fedora Core 4.0?

Thanks,
xiaofeng


On 11/27/06, Geir Magnusson Jr. <ge...@pobox.com> wrote:
> Just for the record, this isn't a magical solution to all problems GDB.
>   I still have my problems not being able debug inside of shared library
> code (after loading) - I've tried this with a custom launcher.
>
> I'll hopefully find a moment to post my code and see if anyone else can
> reproduce my problem.
>
> geir
>
>
> Egor Pasko wrote:
> > On the 0x22D day of Apache Harmony Xiao-Feng Li wrote:
> >> Hi, with revision 479181, I can build it but cannot successfully run
> >> it. It cann't even run HelloWorld in my Fedora Core 4, and always
> >> throws "An unhandled error (4) has occurred."
> >>
> >> The debugging with gdb prints "Cannot find user-level thread for LWP
> >> 6058: generic error", so I couldn't do any debugging to identify the
> >> problem. (I built classlib in o0 with -g option).
> >>
> >> Anybody met the same problem? Thanks.
> >
> > to use GDB you will have to set the LD_LIBRARY_PATH on Linux as
> > described in:
> > http://wiki.apache.org/harmony/Debugging%20DRLVM%20with%20GDB%20on%20Linux
> >
> >
>

Re: [DRLVM] Linux problem?

Posted by Egor Pasko <eg...@gmail.com>.
On the 0x22E day of Apache Harmony Geir Magnusson, Jr. wrote:
> Just for the record, this isn't a magical solution to all problems
> GDB. I still have my problems not being able debug inside of shared
> library code (after loading) - I've tried this with a custom launcher.

We had some tips earlier in the list that might help. Did you try
them? I will iclude those extra tips to the page if they help someone.

> I'll hopefully find a moment to post my code and see if anyone else
> can reproduce my problem.

I cannot wait to see your problem :)

> Egor Pasko wrote:
> > On the 0x22D day of Apache Harmony Xiao-Feng Li wrote:
> >> Hi, with revision 479181, I can build it but cannot successfully run
> >> it. It cann't even run HelloWorld in my Fedora Core 4, and always
> >> throws "An unhandled error (4) has occurred."
> >>
> >> The debugging with gdb prints "Cannot find user-level thread for LWP
> >> 6058: generic error", so I couldn't do any debugging to identify the
> >> problem. (I built classlib in o0 with -g option).
> >>
> >> Anybody met the same problem? Thanks.
> > to use GDB you will have to set the LD_LIBRARY_PATH on Linux as
> > described in:
> > http://wiki.apache.org/harmony/Debugging%20DRLVM%20with%20GDB%20on%20Linux
> >
> 

-- 
Egor Pasko


Re: [DRLVM] Linux problem?

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
Just for the record, this isn't a magical solution to all problems GDB. 
  I still have my problems not being able debug inside of shared library 
code (after loading) - I've tried this with a custom launcher.

I'll hopefully find a moment to post my code and see if anyone else can 
reproduce my problem.

geir


Egor Pasko wrote:
> On the 0x22D day of Apache Harmony Xiao-Feng Li wrote:
>> Hi, with revision 479181, I can build it but cannot successfully run
>> it. It cann't even run HelloWorld in my Fedora Core 4, and always
>> throws "An unhandled error (4) has occurred."
>>
>> The debugging with gdb prints "Cannot find user-level thread for LWP
>> 6058: generic error", so I couldn't do any debugging to identify the
>> problem. (I built classlib in o0 with -g option).
>>
>> Anybody met the same problem? Thanks.
> 
> to use GDB you will have to set the LD_LIBRARY_PATH on Linux as
> described in:
> http://wiki.apache.org/harmony/Debugging%20DRLVM%20with%20GDB%20on%20Linux
> 
> 

Re: [DRLVM] Linux problem?

Posted by Xiao-Feng Li <xi...@gmail.com>.
Thanks for the help. Yes, actually I set it. But I will try again
today with an updated source tree.

Thanks,
xiaofeng

On 27 Nov 2006 13:21:42 +0600, Egor Pasko <eg...@gmail.com> wrote:
> On the 0x22D day of Apache Harmony Xiao-Feng Li wrote:
> > Hi, with revision 479181, I can build it but cannot successfully run
> > it. It cann't even run HelloWorld in my Fedora Core 4, and always
> > throws "An unhandled error (4) has occurred."
> >
> > The debugging with gdb prints "Cannot find user-level thread for LWP
> > 6058: generic error", so I couldn't do any debugging to identify the
> > problem. (I built classlib in o0 with -g option).
> >
> > Anybody met the same problem? Thanks.
>
> to use GDB you will have to set the LD_LIBRARY_PATH on Linux as
> described in:
> http://wiki.apache.org/harmony/Debugging%20DRLVM%20with%20GDB%20on%20Linux
>
>
> --
> Egor Pasko
>
>

Re: [DRLVM] Linux problem?

Posted by Egor Pasko <eg...@gmail.com>.
On the 0x22D day of Apache Harmony Xiao-Feng Li wrote:
> Hi, with revision 479181, I can build it but cannot successfully run
> it. It cann't even run HelloWorld in my Fedora Core 4, and always
> throws "An unhandled error (4) has occurred."
> 
> The debugging with gdb prints "Cannot find user-level thread for LWP
> 6058: generic error", so I couldn't do any debugging to identify the
> problem. (I built classlib in o0 with -g option).
> 
> Anybody met the same problem? Thanks.

to use GDB you will have to set the LD_LIBRARY_PATH on Linux as
described in:
http://wiki.apache.org/harmony/Debugging%20DRLVM%20with%20GDB%20on%20Linux


-- 
Egor Pasko