On 11/16/2015 8:06 AM, Jan Kubalek wrote:
> Hello,
>> What happens if you compile without "-static"?  Valgrind wants to replace
>> system libraries with its own versions so that it can trace memory
>> allocation and release.  It does so at runtime, so static linking is not
>> good for it.
> If I compile program without "-static"
>      gcc -gdwarf-2 -O0 main.c -lpthread &&
>      valgrind --tool=helgrind --read-var-info=yes ./a.out
> I get the same error :(.
>
> (I have valgrind 3.1.0)
>
> Thanks,
> John
> (i forgot send copy to the mailing list)

There are two possibilities:

There may be a bug in valgrind 3.1.0 which has been fixed; the current 
release is 3.11.0.  Can you compile or download binaries for version 3.11.0?

If it still fails (or if you can't use a copy of 3.11.0), the next step 
is to try to reduce the problem to a program small enough to post to the 
list.  Since no one else has (to my limited knowledge) reported a 
similar problem, there may be something unique about your code.  
Hopefully someone on the list would spot it.

-- 
     David Chapman      dcchap...@acm.org
     Chapman Consulting -- San Jose, CA
     Software Development Done Right.
     www.chapman-consulting-sj.com


------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to