Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Linux Tools Project » Valgrid issues on Ubuntu
Valgrid issues on Ubuntu [message #7531] Wed, 20 May 2009 14:26 Go to next message
Gideon Kaempfer is currently offline Gideon KaempferFriend
Messages: 2
Registered: July 2009
Junior Member
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 14:55 Go to previous messageGo to next message
Elliott Baron is currently offline Elliott BaronFriend
Messages: 28
Registered: July 2009
Junior Member
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 #9766 is a reply to message #9743] Wed, 27 May 2009 11:46 Go to previous messageGo to next message
Henrik Jespersen is currently offline Henrik JespersenFriend
Messages: 2
Registered: July 2009
Junior Member
Hi there,
could you please tell me how you did the wrapper? I'm having the same
startup issue as you did. Unfortunately it seems that the bug hasn't been
fixed yet.
Re: Valgrid issues on Ubuntu [message #9788 is a reply to message #9766] Wed, 27 May 2009 17:51 Go to previous messageGo to next message
Elliott Baron is currently offline Elliott BaronFriend
Messages: 28
Registered: July 2009
Junior Member
Hi Henrik,

Henrik Jespersen wrote:
> Hi there, could you please tell me how you did the wrapper? I'm having
> the same startup issue as you did. Unfortunately it seems that the bug
> hasn't been fixed yet.

There will be a 0.2.1 release soon to specifically address this issue.

As for a wrapper, you could rename your valgrind binary and replace it
with something like this:

#!/bin/bash

if [ $1 == '--version' ]; then
echo 'valgrind-3.4.0'
else
exec /usr/bin/valgrind.bak "$@"
fi

Of course replace 3.4.0 with whatever your version happens to be.

Thanks,
Elliott
Re: Valgrid issues on Ubuntu [message #566175 is a reply to message #7531] Thu, 21 May 2009 14:55 Go to previous messageGo to next message
Elliott Baron is currently offline Elliott BaronFriend
Messages: 28
Registered: July 2009
Junior Member
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 #566192 is a reply to message #9743] Wed, 27 May 2009 11:46 Go to previous messageGo to next message
Henrik Jespersen is currently offline Henrik JespersenFriend
Messages: 2
Registered: July 2009
Junior Member
Hi there,
could you please tell me how you did the wrapper? I'm having the same
startup issue as you did. Unfortunately it seems that the bug hasn't been
fixed yet.
Re: Valgrid issues on Ubuntu [message #566218 is a reply to message #9766] Wed, 27 May 2009 17:51 Go to previous messageGo to next message
Elliott Baron is currently offline Elliott BaronFriend
Messages: 28
Registered: July 2009
Junior Member
Hi Henrik,

Henrik Jespersen wrote:
> Hi there, could you please tell me how you did the wrapper? I'm having
> the same startup issue as you did. Unfortunately it seems that the bug
> hasn't been fixed yet.

There will be a 0.2.1 release soon to specifically address this issue.

As for a wrapper, you could rename your valgrind binary and replace it
with something like this:

#!/bin/bash

if [ $1 == '--version' ]; then
echo 'valgrind-3.4.0'
else
exec /usr/bin/valgrind.bak "$@"
fi

Of course replace 3.4.0 with whatever your version happens to be.

Thanks,
Elliott
Re: Valgrid issues on Ubuntu [message #840933] Tue, 10 April 2012 17:36 Go to previous message
Eclipse UserFriend
1
Previous Topic:Migration from eclipse 3.6 to 3.7
Next Topic:gcov plugin on windows
Goto Forum:
  


Current Time: Fri Mar 29 14:02:41 GMT 2024

Powered by FUDForum. Page generated in 0.02002 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top