>> ----8<----
>> #define RZ_SZB (128)
>> char *sp = /* stack pointer value */;
>> char vbits[RZ_SZB] = {0};
>> VALGRIND_GET_VBITS(sp-RZ_SZB, vbits, RZ_SZB);
>> VALGRIND_MAKE_MEM_DEFINED(sp-RZ_SZB, RZ_SZB);
>> /* ... scan the red zone here ... */
>> VALGRIND_SET_VBITS(sp-RZ_SZB, vbits, RZ_SZB);
>> ----8<----
>
>I can try that, but really the problem isn't reading 
>uninitialised values.
>
>My theory is gc is deleting reachable store: the actual bug is NOT
>reading some thing it should not be :)
...
>That would be nice but it is unclear. Consider: the only way** 
>a GC could cause 
>the problem of an over-write would be to delete a reachable object.
>
>** unless there were some stupid bug in the GC, I did have one: chasing
>pointers down with recursion .. blows the stack on a long enough list.
...

I understood that this GC is directly calling malloc/free for each
object
(so there is "GC pool management").
Then valgrind memcheck is (supposed to be) able to detect that GC is
freeing
a piece of memory, which is then dereferenced.

You might need to increase the 
"list of freed objects but kept in a corner to detect such bugs"
by using the option
   --freelist-vol=....

If GC is maintaining its own mempool, then valgrind mempool requests
needs to be used.

If the application is multi-threaded, it might also be a race condition.
You could try helgrind or drd.

Philippe

____
 
This message and any files transmitted with it are legally privileged and 
intended for the sole use of the individual(s) or entity to whom they are 
addressed. If you are not the intended recipient, please notify the sender by 
reply and delete the message and any attachments from your system. Any 
unauthorised use or disclosure of the content of this message is strictly 
prohibited and may be unlawful.
 
Nothing in this e-mail message amounts to a contractual or legal commitment on 
the part of EUROCONTROL, unless it is confirmed by appropriately signed hard 
copy.
 
Any views expressed in this message are those of the sender.

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to