this post was submitted on 10 Nov 2024
201 points (95.5% liked)

Programmer Humor

32472 readers
992 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 42 points 5 days ago (5 children)

You don't get segmentation faults if you don't have an MMU. That can certainly make debugging more interesting when your firmware starts overwriting memory that it shouldn't until it finally crashes.

[โ€“] [email protected] 12 points 5 days ago* (last edited 5 days ago)

Even if you do have an MMU, there's no guarantee that you'll get a segmentation fault from a memory bug. You can still just get the weird side effects, if you fail to access the incorrect memory.

Undefined behaviour means exactly that. You have no idea what you could get.

load more comments (4 replies)