Re: Valgrind 'invalid read of size 4' with LUAJIT_USE_VALGRIND defined

  • From: John Craws <john.craws@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 20 Mar 2013 11:05:31 -0400

On Tue, Mar 19, 2013 at 5:34 PM, Mike Pall <mike-1303@xxxxxxxxxx> wrote:
> John Craws wrote:
>> I have tried modifying the Makefile to enable LUAJIT_USE_VALGRIND,
>
> Umm, have you read the comment block near that option?
>
>   # Use --suppressions=lj.supp to avoid some false positives.

I have but I forgot to mention it in my original description.

Valgrind is executed as follows:

valgrind --tool=memcheck
--suppressions=/home/johncraws/Devel/Checkouts/thirdParty/stable/sources/LuaJIT-2.0.1/src/lj.supp
--leak-check=full --leak-resolution=high --show-reachable=yes
--read-var-info=yes --log-file=valgrind.log prog

Other related posts: