Linux Memory Issues

A simple truism: memory issues exist. The very fact that we program in languages such as C (and C++) implicitly gives rise to literally infinite types of issues! At some point, one realizes (perhaps a bit pessimistically) that programming with care in a managed memory-safe language is ultimately the (only?) realistic way to avoid memory issues altogether.

However, here we are, working with our power tool of choice: the eminent and venerable C programming language! So, what we can do to mitigate, if not eliminate, common memory issues, is the topic of this chapter. Ultimately, the goal is to be truly memory-safe; well, that's easier said than done!

Nevertheless, we shall attempt to have the developer successfully undertake ...

Get Hands-On System Programming with Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.