Unix/Linux Go Back    


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

Invalid Read access

Programming


Tags
valgrind invalid read

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-15-2016
SA_Palani SA_Palani is offline
Registered User
 
Join Date: Aug 2016
Last Activity: 21 February 2017, 11:01 AM EST
Posts: 24
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


Code:
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
Code:
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
Reply

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 02:07 PM.