>> I tried a similar test case like yours and it works ok. 
>Unfortunately my 
>> program is extremely large and complicated. In fact I get 
>other errors 
>> like "conditional jump depends on uninitialized value" but 
>these errors 
>> exist in another part of the code entirely.
>
>If the other errors include any illegal write to memory (outside the
>bounds of an allocated block) then such an error could 
>scramble the data
>on which malloc depends.
>
>Now it is time to try strace:
>   strace -e trace=mmap,mmap2,munmap,brk,mremap  valgrind  \
>       valgrind_args...  ./my_app  app_args...
>which gives an independent report of all the system calls which perform
>address-space manipulation, and includes the decoded system errno.

In case malloc calls are failing under Valgrind, it is also often
useful to run with --profile-heap=yes, to see where the memory
is allocated, and if there is some fragmentation.
If that shows fragmentation, then the patch in bug 250101 might help.

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.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to