this post was submitted on 28 Feb 2024
5 points (100.0% liked)

Programmer Humor

31224 readers
70 users here now

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

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 4 months ago (5 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] 0 points 4 months ago (4 children)
[–] [email protected] 0 points 4 months ago (1 children)

I believe it's /var/lib/apport/coredump on Ubuntu.

[–] [email protected] 1 points 4 months ago (1 children)

imagine if it, like, told you this so you didn't have to find out about it via a post on lemmy

[–] [email protected] 1 points 4 months ago

imagine if it like, read that file and gave you a stack trace

load more comments (2 replies)
load more comments (2 replies)