Can I write to NULL (0x0000000000) without seg faulting? @JacobSorber
Can I write to NULL (0x0000000000) without seg faulting?  @JacobSorber
Uploaded September 2022 | Updated September 2026, 2 weeks ago
Patreon ➤ patreon.com/jacobsorber
Courses ➤ jacobsorber.thinkific.com
Website ➤ jacobsorber.com
---

Can I write to NULL (0x0000000000) without seg faulting? // Inspired by a student question. I think I know the answer, but I've never tried. So, let's see if I can convince the operating system (kernel) to map page #0 into my address space and allow me to access it like I would any other page.

Related Videos:
mmap-basics: youtu.be/XV5sRaSVtXQ

***

Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.


About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.

More about me and what I do:
jacobsorber.com
https://people.cs.clemson.edu/~jsorber/
http://persist.cs.clemson.edu/

To Support the Channel:
+ like, subscribe, spread the word
+ contribute via Patreon --- [patreon.com/jacobsorber]

Source code is also available to Patreon supporters. --- [jsorber-youtube-source.herokuapp.com/]
Can I write to NULL (0x0000000000) without seg faulting?A Few Embedded Systems Tips for BeginnersThe Call Stack and Stack Overflows (example in C)Can I use connect with UDP sockets?What is a function prototype in CScanf scansets, and reading a CSV file in C (fixed)Make your own 50k YouTube Play Button (C / curses tutorial)Why that Perfect Makefile Doesnt Work.Code Review #2: Generalizing and D.R.Y.ing things up.The Most Useless Keyword in C?Real Programming vs TutorialsDebugging Embedded Systems With GDB?
Jacob Sorber |

Can I write to NULL (0x0000000000) without seg faulting?

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER