this post was submitted on 28 Feb 2024
1010 points (97.0% liked)

Programmer Humor

32490 readers
512 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] 139 points 8 months ago (20 children)

Except the C++ "Core dumped" line is telling you it just wrote a file out with the full state of the program at the time of the crash, you can load it up and see where it crashed and then go and look at what every local variable was at the time of the crash.

Pretty sure you can even step backwards in time with a good debugger to find out exactly how you got to the state you're currently in.

[–] [email protected] 50 points 8 months ago (19 children)
[–] [email protected] 16 points 8 months ago

If you are using systemd, there's a tool called coredumpctl.

load more comments (18 replies)
load more comments (18 replies)