Hi Severin
I filed a bug for that issue. It is #353986 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=353986) .
I do not think that it relates to #336977 since I tried w/ different JVMs . Many thanks so far Eric Am 04.08.2011 19:23, schrieb Severin Gehwolf:
On Thu, 2011-08-04 at 19:02 +0200, Eric Schwarz wrote:To solve the error described below "opcontrol process error output: sudo: sorry, you must have a tty to run sudo" 'requiretty' in sudoers file opened by 'install-noconsolehelper.sh' must be commented out.FWIW: I assume consoleholper is available on CentOS. install.sh is intended to be run on those systems. install-noconsolehelper.sh is for systems with no consolehelper.However, then the fun starts again... see screenshot attached (An internal error occurred during: "Launching op (1)") . It is not possible to create an OProfile configuration (Profile As> Profile Configurations) Various errors are the result.Does profiling work if you don't go into Profile Configurations? Please report a bug here: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Linux% 20Tools&component=OProfile Please attach the stack trace from the error log (right-click details). Thanks, Severin-------- Original-Nachricht -------- Betreff: Re: [linuxtools-dev] OProfile + Linux Tools + CentOS Datum: Thu, 04 Aug 2011 17:50:36 +0200 Von: Eric Schwarz<[email protected]> An: Linux Tools developer discussions<[email protected]> CC: [email protected] Hi First, thanks for the reply. Eclipse Error Log says: eclipse.buildId=M20110210-1200 java.version=1.6.0_20 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Framework arguments: -product org.eclipse.epp.package.linuxtools.product Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.linuxtools.product Error Thu Aug 04 06:45:22 EDT 2011 opcontrol process error output: sudo: sorry, you must have a tty to run sudo <<< "opcontrol process error output: sudo: sorry, you must have a tty to run sudo" seems to be the hintDid you verify that oprofile works as expected on the command line?YES. I did it like on http://blogs.epfl.ch/article/24223 I also tried with the latest nightly build today> did not work either I executed both - install.sh - install-noconsolehelper.sh Many thanks for assistance Eric Am 04.08.2011 15:00, schrieb Severin Gehwolf:Hi, On Thu, 2011-08-04 at 10:59 +0200, Eric Schwarz wrote:Hi I have troubles starting OProfile (0.9.4 latest Version for CentOS) out of Eclipse on CentOS. I have tried using CentOS 5.4 + Eclipse Helios 2 SR2 in a virtual machine (put in timer interrupt mode like described in [1]).Eclipse oprofile hasn't worked very well in a virtual machine and is not tested very much. It may work, if the module is manually loaded with timer=1 prior profiling from within Eclipse... Did you verify that oprofile works as expected on the command line? If yes, what sequence of commands did you execute to make it work?The error is the following when clicking on "Profile As> Profile with OProfile" in the Eclipse menu: "Exit code of opcontrol indicates failure" OProfile itself is working and I also executed "natives/linux/scripts/install.sh"Does this mean that if you use opcontrol in a terminal profiling works for you? If yes, what is the sequence of commands you are executing?I have also seen some irregularities concerning the unittests of Linux Tools 0.8.0 for OProfile support. https://hudson.eclipse.org/hudson/job/linuxtools-Indigo/346/testReport/Last time I checked all unit tests passed for me locally. I think we can't run oprofile tests in the hudson job since it requires root access and proper installation of consolehelper/no-consolehelper (for the time being). Perhaps I'm wrong :)I also tried on a real machine (CentOS 5.6 + Eclipse Indigo) and there I get also an error (I think it was the same on - I might deliver the message later since I am currently at an other place).It should definitely work on a physical machine. Could you try installing latest Linux Tools from updates-nightly[1] and try again. If oprofile fails, it should give you some hints in the Eclipse error log.Well, shouldn't it work out of the box?Kind of. If you installed Linux Tools from our update-site, you need to set up consolehelper manually. After this step it should work. Let us know how it goes. Thanks, Severin [1] http://download.eclipse.org/technology/linuxtools/update/ _______________________________________________ linuxtools-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/linuxtools-dev_______________________________________________ linuxtools-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/linuxtools-dev
_______________________________________________ linuxtools-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/linuxtools-dev
