View All num of num See all Photos Cisco Systems This employer has taken extra steps to respond to reviews and provide job seekers with accurate company information, photos, and reviews. Interested for your company?Learn More. www.cisco.com www.cisco.com Work in HR? Unlock Free Profile Overview Reviews Salaries Interviews Jobs Photos Benefits 5.4k Reviews 12k Salaries 1.2k Interviews 3.1k Jobs Follow Add Review or Salary Follow Add Review or Salary Cisco Systems 5427 Interview Question Senior Software Engineer Interview San Jose, CA Cisco Systems How would you debug Memory Corruption ? Tags: See more , See less 8 Answer Add Tags Flag as Inappropriate Thank you! Your feedback has been sent to the team and we'll look into it. Oops! We're sorry but your feedback didn't make it to the team. Your input is valuable to us — would you mind trying again? Send Answer Interview Answer 1 Answer ▲ 2 ▼ Lots of answers to this one. There are some memory bounds-checker type tools, and it's not that complicated to write a basic one from scratch on a decent CPU.Usually the tools override malloc/free/mmap/... and change them all to mmap protected memory with guard pages before and after the user region. Trying to access beyond the bounds of the region, trying to access a freed region will immediately result in a seg-fault.Other than that, you can always put some guard data at the beginning and end of every structure and check them occasionally in your code. In many cases you'll be able to see the corrupt data before the program crashes and in some cases you might even be able to identify what data it is (hence where it came from), e.g. strings overriding other data. Boaz Sedan on Jun 9, 2010 Flag as Inappropriate Thank you! Your feedback has been sent to the team and we'll look into it. Oops! We're sorry but your feedback didn't make it to the team. Your input is valuable to us — would you mind trying again? Send Add Answers or Comments To comment on this, Sign In or Sign Up.