Agent not working on ARM v5

Questions about YourKit Java Profiler
Post Reply
Bas Jansen
Posts: 3
Joined: Wed Sep 24, 2014 1:21 pm

Agent not working on ARM v5

Post by Bas Jansen »

When I try to load the agent, I get an error message that my c++ library doesn't support a certain feature:

Code: Select all

$ java -agentpath:./libyjpagent.so=help
Error occurred during initialization of VM
Could not find agent library ./libyjpagent.so in absolute path, with error: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found (required by ./libyjpagent.so)
Which version is required for the agent on the ARMv5 platform? I am running OpenEmbedded Linux with Oracle Java 1.7.0_60.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Agent not working on ARM v5

Post by Anton Katilin »

Are you using the agent from <profiler directory>/bin/linux-armv5-sf ?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Agent not working on ARM v5

Post by Anton Katilin »

P.S. Could you please provide the output of:

ldd -r ./libyjpagent.so
uname -a
ldd --version
/lib/libc.so.6 (it's an executable too, not only a shared library)
Bas Jansen
Posts: 3
Joined: Wed Sep 24, 2014 1:21 pm

Re: Agent not working on ARM v5

Post by Bas Jansen »

Yes, I did use the agent from the yjp-2014-build-14104/bin/linux-armv5-sf directory.
I don't have ldd available on the embedded arm5 device.
The output of the other two:

Code: Select all

$ uname -a
Linux device06017b 2.6.35.14+ #1 PREEMPT Wed Aug 14 09:00:05 CEST 2013 armv5tejl unknown

Code: Select all

$  /lib/libc.so.6
GNU C Library stable release version 2.9, by Roland McGrath et al.
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.3.3.
Compiled on a Linux >>2.6.32-5-amd64<< system on 2012-11-08.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        Support for some architectures added on, not maintained in glibc core.
        BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Agent not working on ARM v5

Post by Anton Katilin »

Thanks for the info.
Could you please also provide the file /usr/lib/libstdc++.so.6 by either posting a download URL in the forum or sending the file attached to [email protected]

Anyway, this seems a version mismatch. The agent is specially compiled with a relatively old GCC to ensure the resulted .so would run on older systems too (sorry, I can't tell exact specs now because I don't have access to the build environment at the moment, I'll post an update later).

If you have a newer version of libstdc++.so.6 than the one in /user/lib you may try adding its directory path to LD_LIBRARY_PATH.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Agent not working on ARM v5

Post by Anton Katilin »

An update: the agent in linux-armv5-sf is compiled with GCC 4.3.2, your /lib/libc.so.6 - with a newer version 4.3.3, and it is good for compatibility. Code compiled with older versions should run on newer systems.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Agent not working on ARM v5

Post by Anton Katilin »

Hello Bas,

Did you have a chance to try running with an alternate libstdc++.so.6, as I suggested?

And we would appreciate a lot if you could send us your /usr/lib/libstdc++.so.6, because we cannot reproduce the problem in our environment.

Best regards,
Anton
Bas Jansen
Posts: 3
Joined: Wed Sep 24, 2014 1:21 pm

Re: Agent not working on ARM v5

Post by Bas Jansen »

I did manage to get the agent working with a newer libstdc++.

I will send both the working (libstdc++.so.6.0.14) and not working (libstdc++.so.6.0.10) versions to the support e-mail address.
Thank you for your help!
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Agent not working on ARM v5

Post by Anton Katilin »

We've got your email. Thank you very much for sending the files.
Post Reply