Bug 4251 - some stap scripts freeze Eclipse when ran from the System Tap plugin
Summary: some stap scripts freeze Eclipse when ran from the System Tap plugin
Status: VERIFIED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 1.4 M6
Assignee: Jessica
QA Contact: Andra Necula
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-04-11 12:52 UTC by Adrian Dudau
Modified: 2014-08-26 11:18 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.