Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Non Integrated AC Agent crash
Non Integrated AC Agent crash [message #113957] Wed, 03 October 2007 09:50 Go to next message
Eclipse User
Originally posted by: romain.conseil.gmail.com

Hello,

I try to use the non integrated ACAgent to profile a remote application.
The remote app runs on a linux RH4 and I try to profile on a windows XP
with eclipse europa and the last tptp plugin.

I use the last acagent version : agntctrl.linux_ia32-TPTP-4.4.0.3 de
ACAgent and i have set PATH, LD_LIBRARY_PATH and fixed the different
agent.xml files (\replaced by / and suppress .exe)

I can run the SampleClient without error on the linux plateform (port
10006) but when I try to run my java app (with the
-XrunpiAgent:server=enabled option) the ACAgent seems to crash and I have
this message in the shell :

Agent Controller is not active: will wait in a 1000 ms loop

The ACServer process is then killed and a core fil is generated :

(gdb) where
#0 0x01d5e66c in os::report_fatal_error () from
/usr/java/j2re1.4.2_06/lib/i386/server/libjvm.so
#1 0x01d5ee0f in os::handle_unexpected_exception () from
/usr/java/j2re1.4.2_06/lib/i386/server/libjvm.so
#2 0x01d62d76 in JVM_handle_linux_signal () from
/usr/java/j2re1.4.2_06/lib/i386/server/libjvm.so
#3 0x01d61b08 in signalHandler () from
/usr/java/j2re1.4.2_06/lib/i386/server/libjvm.so
#4 <signal handler called>
#5 0x00de2e33 in parseMessage () from ../lib/libtptpCmdExtr.so
#6 0x00de2994 in processMessage () from ../lib/libtptpCmdExtr.so
#7 0x00b9910b in processRecdMsgs () from ../lib/libsocketTL.so
#8 0x00b9925b in processClientRequest () from ../lib/libsocketTL.so
#9 0x00116371 in start_thread () from /lib/tls/libpthread.so.0
#10 0x00280ffe in clone () from /lib/tls/libc.so.6
(gdb)


I also have a message in the ptpParseError.log :

(09/03/07 10:41:33 ACServer) XML Error: Invalid document structure (error
detected at line:1, col:1, in "parseMessage()")

DO you have an idea ? I have done something wrong or is there a bug in the
ACAgent ?

Of course it is impossible to see any agent in the profileDialog of
eclipse but I can connect to the host on the 10006 port (connection test
success) which is weird since ACServer is down...

Thanks a lot for your help !
Re: Non Integrated AC Agent crash [message #113970 is a reply to message #113957] Wed, 03 October 2007 10:23 Go to previous messageGo to next message
Igor Alelekov is currently offline Igor Alelekov
Messages: 139
Registered: July 2009
Senior Member
Hi Romain,
Please provide a servicelog.log file with DEBUG level.
Have you tried JVMTI profiling instead of JVMPI?
Regards,
Igor
Re: Non Integrated AC Agent crash [message #113998 is a reply to message #113970] Wed, 03 October 2007 10:33 Go to previous messageGo to next message
Eclipse User
Originally posted by: romain.conseil.gmail.com

Hi Igor,

and thanks for your answer,

here is the content of the servicelog.log :

<CommonBaseEvent creationTime="2007-10-03T08:40:47.034720Z"
globalInstanceId="A703558F0000877B5985CC5D7FD1301A" msg="Received command
for unrecognized interface: iid=org.eclipse.tptp.eventProvider,
cmd=listenerAccepted" severity="50" version="1.0.1">
<sourceComponentId component="AgentController"
componentIdType="TPTPComponent" executionEnvironment="Connect2AC.c, line
2238" instanceId="1004" location="ocmt4.tls.fr.astrium.corp"
locationType="IPV4" processId="11455" subComponent="Client Compatibility
TL" threadId="11455" componentType="Eclipse_TPTP"/>
<situation categoryName="ReportSituation">
<situationType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
</situation>
</CommonBaseEvent>
<CommonBaseEvent creationTime="2007-10-03T08:40:48.924979Z"
globalInstanceId="A7035590000E1D1F3AE2B2A402533B4C" msg="File server
started listening on port 10005" severity="10" version="1.0.1">
<sourceComponentId component="AgentController"
componentIdType="TPTPComponent" executionEnvironment="fileServer.c, line
177" instanceId="1004" location="ocmt4.tls.fr.astrium.corp"
locationType="IPV4" processId="11455" subComponent="Client Compatibility
TL" threadId="11455" componentType="Eclipse_TPTP"/>
<situation categoryName="ReportSituation">
<situationType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
</situation>
</CommonBaseEvent>
<CommonBaseEvent creationTime="2007-10-03T08:40:54.099431Z"
globalInstanceId="A7035596000184507BF665FA32212BA9" msg="Incoming
connection request from agent Java Profiling Agent in process 11617 with
uuid UUID-1191400854-92723-442489449-998779012" severity="10"
version="1.0.1">
<sourceComponentId component="AgentController"
componentIdType="TPTPComponent" executionEnvironment="RACmdHandlers.c,
line 42" instanceId="1005" location="ocmt4.tls.fr.astrium.corp"
locationType="IPV4" processId="11455" subComponent="Agent Compatibility
TL" threadId="11455" componentType="Eclipse_TPTP"/>
<situation categoryName="ReportSituation">
<situationType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
</situation>
</CommonBaseEvent>
<CommonBaseEvent creationTime="2007-10-03T08:40:54.099825Z"
globalInstanceId="A7035596000185E834D1137B5718BF00" msg="Registered Agent
UUID-1191400854-92723-442489449-998779012." severity="10" version="1.0.1">
<sourceComponentId component="AgentController"
componentIdType="TPTPComponent" executionEnvironment="RACmdHandlers.c,
line 99" instanceId="1005" location="ocmt4.tls.fr.astrium.corp"
locationType="IPV4" processId="11455" subComponent="Agent Compatibility
TL" threadId="11455" componentType="Eclipse_TPTP"/>
<situation categoryName="ReportSituation">
<situationType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
</situation>
</CommonBaseEvent>
<CommonBaseEvent creationTime="2007-10-03T08:40:55.130057Z"
globalInstanceId="A70355970001FBF27D69D6A540C2BE6D" msg="Registering
process 11617 org.eclipse.tptp.legacy.Java Profiling Agent" severity="10"
version="1.0.1">
<sourceComponentId component="AgentController"
componentIdType="TPTPComponent" executionEnvironment="Connect2AC.c, line
1217" instanceId="1004" location="ocmt4.tls.fr.astrium.corp"
locationType="IPV4" processId="11455" subComponent="Client Compatibility
TL" threadId="11455" componentType="Eclipse_TPTP"/>
<situation categoryName="ReportSituation">
<situationType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
</situation>
</CommonBaseEvent>



Concerning JVMTI / JVMPI, I will have a look to it but since I run my app
with jre 1.4.2_06, maybe it will be impossible to use JVMTI profiling...

Thanks for your help...
Re: Non Integrated AC Agent crash [message #114041 is a reply to message #113998] Thu, 04 October 2007 03:30 Go to previous messageGo to next message
Igor Alelekov is currently offline Igor Alelekov
Messages: 139
Registered: July 2009
Senior Member
Hi Romain,
Please set value to "DEBUG" for "level" attribute in the <Logging..> tag
in the file %TPTP_AC_HOME%\config\serviceconfig.xml and repeat your use
case.
If a resulting file will be too large to post it here, please send it to
me directly to <igor.alelekov@intel.com>.

To use JVMTI profiling with jvm 1.4 and higher please look at
%TPTP_AC_HOME%\plugins\org.eclipse.tptp.javaprofiler\readme. txt.

Regards,
Igor
Re: Non Integrated AC Agent crash [message #114052 is a reply to message #114041] Thu, 04 October 2007 05:07 Go to previous messageGo to next message
Eclipse User
Originally posted by: romain.conseil.gmail.com

Hi,

In fact the ACServer seems to crash only when I try to connect with
eclipse. My application can connect to the ACAgent normally and there is
no error message.

The crash apprears when eclipse try to fetch "the children of host" when
opening the profile dialog...

For the service log file (570 lines), i would prefer to send it to you by
mail but the end of your address is hidden. Maybe you can write me a mail
(my address is a gmail one) : romain.conseil@xxxxxxxxxx.com

Thanks again...
Re: Non Integrated AC Agent crash [message #114319 is a reply to message #114052] Fri, 05 October 2007 09:47 Go to previous messageGo to next message
Eclipse User
Originally posted by: romain.conseil.gmail.com

Hi,

I'm still trying to find why my ACAgent crash. Maybe this info could help :

I'm working on a Linux RedHat 4 and I haven't found
libstdc++-libc6.2-2.so.3 for this distrib. So I used
libstdc++-3-libc6.2-2-2.10.0.so which seems to be quite similar. Is it a
problem ? Could it be a reason for the crash ?

I tied to update the tptp plugins in my eclipse and to reconnect but it is
the same... Eclipse connexion seems to make ACServer crash...

Thanks for help.
Re: Non Integrated AC Agent crash [message #114344 is a reply to message #113957] Fri, 05 October 2007 10:24 Go to previous messageGo to next message
Oliver Schoett is currently offline Oliver Schoett
Messages: 9
Registered: July 2009
Junior Member
Romain CONSEIL wrote:
> I can run the SampleClient without error on the linux plateform (port
> 10006) but when I try to run my java app (with the
> -XrunpiAgent:server=enabled option) the ACAgent seems to crash and I
> have this message in the shell :
>
> Agent Controller is not active: will wait in a 1000 ms loop
>
> The ACServer process is then killed and a core fil is generated :

This looks similar to bug 198413
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=198413). I was told to
connect the Eclipse client to port 10002 instead of port 10006 and it
worked.

Regards,

Oliver Schoett
Re: Non Integrated AC Agent crash [message #114596 is a reply to message #114319] Mon, 08 October 2007 09:10 Go to previous messageGo to next message
Igor Alelekov is currently offline Igor Alelekov
Messages: 139
Registered: July 2009
Senior Member
According to the provided log file, workbench is misconfigured.
Please set AC port value to 10002 instead of 10006 in your workbench
configuration.
It seems Agent Controller could be protected from crash for this use case.
I have opened bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205719 to track this.
Regards,
Igor
Re: Non Integrated AC Agent crash [message #114623 is a reply to message #114596] Mon, 08 October 2007 11:03 Go to previous message
Eclipse User
Originally posted by: romain.conseil.gmail.com

OK,

It works when I configure the workbench with the 10002 port. I can profile
my application normally.

Thanks a lot for help,

Regards
Previous Topic:TPTP 4.4.0.3 is released!
Next Topic:unable to get agent TimeCollector
Goto Forum:
  


Current Time: Sat Aug 30 08:35:23 EDT 2014

Powered by FUDForum. Page generated in 0.02419 seconds