Valgrid issues on Ubuntu [message #7531] |
Wed, 20 May 2009 10:26  |
Eclipse User |
|
|
|
Hi,
I am trying to get the Valgrind plugin working on Ubuntu 9.04.
The first issue which I overcame was that the version number returned by
by the Valgrind binary was in the form "valgrind-3.4.1-Debian" which
caused an exception. I worked around this with a wrapper that returns
"valgrind-3.4.1".
Then I was able to invoke the profile I created but the output was
returned into the console in a raw XML format (nothing I could click on).
The output seems to make sense, so I believe that Valgrind was invoked
correctly.
Is there a way to define a console that can interpretate the XML correctly?
I am using Eclipse CDT 3.4.2 and have installed via the update site (so I
have BIRT too).
Thanks,
Gidi
|
|
|
Re: Valgrid issues on Ubuntu [message #9743 is a reply to message #7531] |
Thu, 21 May 2009 10:55   |
Eclipse User |
|
|
|
Hi Gidi,
The first issue with the version number is addressed by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=275685. This should be fixed
very soon.
What's happening with the XML being dumped to the console is not the usual
behaviour of the plugin. In the current released version, this happens
when Valgrind returns a non-zero exit code. In some cases this means that
the XML cannot be parsed. If your program has a fatal error like a
segmentation fault in it, this is likely the problem. Since the 0.2
release, we have moved to using Valgrind's standard plain text output.
This way we can even parse fatal error conditions, since we don't rely on
a well-formed XML document structure. If you'd like to give this a try,
you can install it from our nightly update site at
http://download.eclipse.org/technology/linuxtools/updates-ni ghtly.
Unfortunately, the version number issue hasn't been fixed in the nightly
build yet as I'm waiting on the patch contributor to add his intellectual
property info, so you'll still need your wrapper for now.
Thanks for enduring through these issues,
Elliott
|
|
|
|
|
Re: Valgrid issues on Ubuntu [message #566175 is a reply to message #7531] |
Thu, 21 May 2009 10:55   |
Eclipse User |
|
|
|
Hi Gidi,
The first issue with the version number is addressed by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=275685 This should be fixed
very soon.
What's happening with the XML being dumped to the console is not the usual
behaviour of the plugin. In the current released version, this happens
when Valgrind returns a non-zero exit code. In some cases this means that
the XML cannot be parsed. If your program has a fatal error like a
segmentation fault in it, this is likely the problem. Since the 0.2
release, we have moved to using Valgrind's standard plain text output.
This way we can even parse fatal error conditions, since we don't rely on
a well-formed XML document structure. If you'd like to give this a try,
you can install it from our nightly update site at
http://download.eclipse.org/technology/linuxtools/updates-ni ghtly
Unfortunately, the version number issue hasn't been fixed in the nightly
build yet as I'm waiting on the patch contributor to add his intellectual
property info, so you'll still need your wrapper for now.
Thanks for enduring through these issues,
Elliott
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04863 seconds