Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » ptrace() call failed for pid ...
ptrace() call failed for pid ... [message #124730] Thu, 28 February 2008 09:25 Go to next message
Eclipse User
Originally posted by: Jan.Ploski.offis.de

Hello,

I'm trying to get "Execution Time Analysis" for an "Eclipse Application"=
=

(hosted workbench) to work in Eclipse 3.3.1.1, Linux, having downloaded =
=

the TPTP 4.4.1 SDK and installed the prerequisite plugins. I thought tha=
t =

the integrated agent controller caused problems, so I turned it off in =

Preferences. However, now I'm getting pretty much the same problems with=
=

the standalone agent controller. Likewise, I switching between Java =

1.5.0_03 and 1.6.0_04 doesn't help.

"Test Availability" reports success. Profiling a HelloWorld Java app wor=
ks =

ok.

However, trying to profile the hosted workbench brings the error dialog =
=

"Agent Controller is unavailable under port 10002" (lies). Looking at =

servicelog.log of the standalone agent controller is a bit difficult, as=
=

it can't be imported:

org.eclipse.hyades.logging.parsers.LogParserException: IWAT0412E Errors =
=

occurred parsing the log file =

/home/jploski/eclipse-3.3/plugins/org.eclipse.tptp.platform. ac.linux_ia3=
2_4.4.1.v200802050100/agent_controller/config/servicelog.log .
at =

org.eclipse.hyades.logging.parsers.importer.ParserWrapper.pa rse(ParserWr=
apper.java:144)
at =

org.eclipse.hyades.logging.parsers.internal.importer.LocalLo gImportLoade=
r.startParsing(LocalLogImportLoader.java:95)
at =

org.eclipse.tptp.monitoring.log.internal.core.LocalImportHan dler.importL=
og(LocalImportHandler.java:90)
at =

org.eclipse.tptp.monitoring.logui.internal.wizards.ImportLog Wizard$Local=
LogImportJob.run(ImportLogWizard.java:1064)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

So it's back to the good old vim and grep combo. Anyway, I see the =

following high-severity log entries:

<CommonBaseEvent creationTime=3D"2008-02-28T14:09:49.100870Z" =

globalInstanceId=3D"A7C6C0AD000189FC42C249B3045129DB" msg=3D"Received co=
mmand =

for unrecognized interface: iid=3Dorg.eclipse.tptp.eventProvider, =

cmd=3DlistenerAccepted" severity=3D"50" version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:09:49.229348Z" =

globalInstanceId=3D"A7C6C0AD00037FDC0D0F17E26066C39C" msg=3D"File server=
=

started listening on port 10005" severity=3D"10" version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:10:24.371847Z" =

globalInstanceId=3D"A7C6C0D00005AC8245EEA921365CC6AE" msg=3D"Agent Manag=
er =

received an unexpected error response TPTP_Error" severity=3D"30" =

version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:10:24.369833Z" =

globalInstanceId=3D"A7C6C0D00005A4A10320B7506A738D67" msg=3D"ptrace() ca=
ll =

failed for pid 17876" severity=3D"50" version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:10:24.369999Z" =

globalInstanceId=3D"A7C6C0D00005A54B442DC4C02FA595F0" msg=3D"PC =

monitorProcessState: Failed to monitor process 17876" severity=3D"50" =

version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:10:28.559364Z" =

globalInstanceId=3D"A7C6C0D4000888FF2B11E0386C0CF3A6" msg=3D"Agent Manag=
er =

received an unexpected error response TPTP_Error" severity=3D"30" =

version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:10:28.556278Z" =

globalInstanceId=3D"A7C6C0D400087CF0144CD551762B3F35" msg=3D"ptrace() ca=
ll =

failed for pid 17876" severity=3D"50" version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:10:28.556437Z" =

globalInstanceId=3D"A7C6C0D400087D9145A3D8C016D0CED3" msg=3D"PC =

monitorProcessState: Failed to monitor process 17876" severity=3D"50" =

version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:10:29.814304Z" =

globalInstanceId=3D"A7C6C0D5000C6CDB0689907746B16169" msg=3D"CONSOLE LAU=
NCHED =

COMMAND for connection(5001). " severity=3D"50" version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:18:08.660274Z" =

globalInstanceId=3D"A7C6C2A0000A132D621E73582ED39120" msg=3D"Agent Manag=
er =

received an unexpected error response TPTP_Error" severity=3D"30" =

version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:18:08.654338Z" =

globalInstanceId=3D"A7C6C2A00009FBFB5B27751762C9B167" msg=3D"ptrace() ca=
ll =

failed for pid 17876" severity=3D"50" version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:18:08.654479Z" =

globalInstanceId=3D"A7C6C2A00009FC8B190873621D76467F" msg=3D"PC =

monitorProcessState: Failed to monitor process 17876" severity=3D"50" =

version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:18:09.796223Z" =

globalInstanceId=3D"A7C6C2A1000C263978B82C3A1349C90D" msg=3D"CONSOLE LAU=
NCHED =

COMMAND for connection(5005). " severity=3D"50" version=3D"1.0.1">
<CommonBaseEvent creationTime=3D"2008-02-28T14:18:12.830043Z" =

globalInstanceId=3D"A7C6C2A4000CAA5600FBD99867412D5A" msg=3D"Not AC mess=
age =

got. Ignore." severity=3D"50" version=3D"1.0.1">

Any ideas why 'ptrace()' is failing and what I could try?

Regards,
Jan Ploski
Re: ptrace() call failed for pid ... [message #128875 is a reply to message #124730] Tue, 22 April 2008 13:35 Go to previous message
Oliver Schoett is currently offline Oliver Schoett
Messages: 9
Registered: July 2009
Junior Member
Jan Ploski wrote:

> <CommonBaseEvent creationTime="2008-02-28T14:10:24.369833Z"
> globalInstanceId="A7C6C0D00005A4A10320B7506A738D67" msg="ptrace() call
> failed for pid 17876" severity="50" version="1.0.1">

This happened to me today. I had accidentally set the debug option

-Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend= n

as well as the profiling options. These are incompatible; you can debug
or profile, but not both at the same time.

After removing the debug option, profiling worked for me (Fedora 7 with
compatibility lib., JVM 1.6.0_02).

Regards,

Oliver Schoett
Previous Topic:Tutorial for TPTP version 4.4
Next Topic:Editing Object mine automatically ???
Goto Forum:
  


Current Time: Sat Apr 19 03:01:38 EDT 2014

Powered by FUDForum. Page generated in 0.01541 seconds