Unix/Linux Go Back    

Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Invalid Read access


valgrind invalid read

Thread Tools Search this Thread Display Modes
Old Unix and Linux 11-15-2016   -   Original Discussion by SA_Palani
SA_Palani's Unix or Linux Image
SA_Palani SA_Palani is offline
Registered User
Join Date: Aug 2016
Last Activity: 7 October 2017, 11:49 PM EDT
Posts: 26
Thanks: 2
Thanked 0 Times in 0 Posts
Invalid Read access

Hi All,

I would like to know how the valgrind find the runtime allocation related issues?such as the below

invalid read of size 4.
Invalid write of size 4.

Even the size of memory is known at runtime,valgrind reports this

I am asking this since i got an issue which is trying to access unknown memory and that size is declared at compile time.
memcpy() statement throws

Invalid read error


Thank you

Moderator's Comments:
Invalid Read access Please use CODE tags as required by forum rules!

Last edited by RudiC; 11-15-2016 at 07:44 AM.. Reason: Added CODE tags.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to loop read command and print valid invalid states.? Flowoftruth Shell Programming and Scripting 1 12-22-2014 04:11 PM
samba read write access to owner and no access to other users sahil_shine Solaris 1 10-17-2012 04:52 PM
User creation (with only read only access) pinga123 UNIX for Dummies Questions & Answers 2 02-03-2011 05:37 AM
Read variables from Access table Sn33R UNIX for Dummies Questions & Answers 2 09-24-2003 02:01 PM

All times are GMT -4. The time now is 01:58 PM.