Re: [Valgrind-users] valgrind INTERNAL ERROR received a signal 11 (SIGSEV)

2013-03-01 Thread Julian Seward
On 03/01/2013 08:41 AM, Nils Koehler wrote:
 --22265-- Contents of /proc/version:
 --22265--   Linux version 2.4.21-303-smp4G (r...@i386.suse.de) (gcc version
 3.3.1 (SuSE Linux)) #1 SMP Tue Dec 6 12:33:10 UTC 2005

Kernel 2.4 is very old and unsupported by V.  It might work, but we don't
test with it.  What happens if you run the test on a newer distro, with
a 2.6 kernel?

J


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Show where a reference was lost in addition to where it was allocated

2013-03-01 Thread Julian Seward
On 03/01/2013 06:23 AM, David Chapman wrote:
 On 2/28/2013 4:58 PM, John Reiser wrote:
 Hi all, I'm wondering if it's possible for memcheck to show the last place 
 that
 some memory was accessible before being leaked.

This has been discussed before, and there was an experimental tool (Omega)
to do that.  It would be feasible to build a tool to refcount pointers to
blocks, but the fundamental problem is that the last pointer to a block
might get overwritten at some place which is totally nonsensical from the
programmer's point of view.  In particular, imagine that the last pointer
to a block ends up in a spill slot on the stack, and at some later point
the compiler generated code to use the spill slot to hold some new value.
Then, the last pointer would disappear at the point of that overwrite.

IOW .. the idea of tracking the last pointer to a block depends on the
assumption that the only loads/stores in the generated machine code are
directly related to source language constructs.  But that's not the case,
because of spilling during register allocation.  AFAIK, there's no way
to do this reliably at the machine code level.

J



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users