Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5217 Discussions

multithreaded application | waits and locks analysis

Mourad_B_2
Beginner
3,400 Views

Hi,

I am analyzing a multithreaded application with one main thread and 100 threads-child.

I am trying to get the waitandlocks. when I am running this command line:

./amplxe-cl -collect locksandwaits -target-duration-type=medium -follow-child  --target-pid "pid"

I have this error:

amplxe: Error: Assertion '(blocked == tpss_tls_op_err_ok)' failed.[ASSERTION CONTEXT][CONTEXT END]. Please contact the technical support.
amplxe: Error: Assertion 'head.sp >= sp' failed.[ASSERTION CONTEXT]head.sp = 0xfec6c286, sp = 0x7f3e8e7f
[CONTEXT END]. Please contact the technical support.

any ideas to fix it?

Thanks,

Mourad

0 Kudos
24 Replies
Vitaly_S_Intel
Employee
564 Views

> any other way to do locks and waits analysis without to attach the process?

Sure, try the following command:

amplxe-cl -collect locksandwaits -- <path to application executable and its command line>

It'll start your application. Probably that way it won't crash.

Anyway, it would be good to know if crash related to attach mode only.

0 Kudos
Vitaly_S_Intel
Employee
564 Views

Can you please also tell the result of the following command:

amplxe-cl -collect hotspots -duration 10 -target-pid <PID>  

Does it cause this issue or not?

0 Kudos
Mourad_B_2
Beginner
564 Views

the hotspots analysis is working well. thanks for your message.

--mb

0 Kudos
Mourad_B_2
Beginner
564 Views

the hotspots analysis is working well. thanks for your message.

--mb

0 Kudos
Reply