On 31/03/16 09:38, Harish Babu wrote:

>    I'm having trouble getting valgrind working with one of the software
> that I'm working on. I worked around couple of initial issues and got it
> to start. But then I running into other next issues, so I have following
> questions:
>
> 1) Does valgrind work well with mapped file segments. We use these
> segments for execution too! And I run into crashes when trying to
> execute code on these pages.
>
> 2) Is it possible to tell valgrind not to track certain virtual
> addresses? That way we could workaround above issue.
>
> 3) Or, is it possible to make valgrind just track mallocs and not worry
> about mmaps? which could still workaround the issue!

Rather than speculating about what the problem is and asking us to 
answer various questions about your speculations why not just tell us 
what actually happens, with appropriate output messages, and let us see 
what we can advise?

To answer your questions:

1) Yes valgrind works find with mapped file segments, that's exactly 
what an ELF executable is after all.

2) No, you can't "not track" certain addresses because it just wouldn't 
work - valgrind needs to know everything that has happened in the 
program so it can accurately track the state of memory.

3) Again, no, and for the same reasons.

Tom

-- 
Tom Hughes (t...@compton.nu)
http://compton.nu/

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to