Bug 4251

Summary: some stap scripts freeze Eclipse when ran from the System Tap plugin
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Adrian Dudau <adrian.dudau>
Component: eclipse-pluginAssignee: Jessica <jessica.zhang>
Status: VERIFIED FIXED QA Contact: Andra Necula <andrax.g.necula>
Severity: major    
Priority: Medium+ CC: alexandru.c.georgescu, andrax.g.necula, ioanax.grigoropol, yp.ep.watcher, yp.watcher
Version: 1.4   
Target Milestone: 1.4 M6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Adrian Dudau 2013-04-11 12:52:32 UTC
Most of the stap scripts from http://sourceware.org/systemtap/examples/index.html will work using crosstap script from command line but will send Eclispe into non-responding state when run from the plugin.

Steps to reproduce:
1. wget http://sourceware.org/systemtap/examples/profiling/sched_switch.stp
2. fill in system tap dialog (metadata, login, path to script)
3. add ' -c "sleep 1"  ' in the arguments field
4. launch the script
Comment 1 Alexandru Georgescu 2013-04-11 16:03:18 UTC
I think this is related to: https://bugzilla.yoctoproject.org/show_bug.cgi?id=4099
Comment 2 Adrian Dudau 2013-04-11 16:08:35 UTC
I don't think so. This issue is specific to the Eclipse plugin. When manually running the crosstap script from the terminal everything works fine.
Comment 3 Alexandru Georgescu 2013-04-11 16:20:51 UTC
Adrian,
Which commit are you using?
I have tested with:
commit fe336b149552b1f4f24d979c40302653298b98cc
Author: Khem Raj <raj.khem@gmail.com>
Date:   Wed Apr 3 05:11:50 2013 +0000


And it reproduces for me...
Comment 5 Adrian Dudau 2013-04-12 09:34:05 UTC
I verified and the problem is solved for scripts with a limited running duration. However, for streaming scripts we still have the same issue. See Bug 4270. This might prove a bit more complex.
Comment 6 Andra Necula 2014-08-26 11:18:43 UTC
Verified with eclipse Kepler, on master branch
commit 2d1660112e54653f7bb763939d0416472c49fe01
Host Ubuntu 14.04 
x86_64
Cheers! Andra N.