You are viewing a single thread.
View all comments
139 points

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.

permalink
report
reply
50 points

Where does it write the file

permalink
report
parent
reply
74 points

Nobody knows

permalink
report
parent
reply
28 points
*
Deleted by creator
permalink
report
parent
reply
22 points

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

permalink
report
parent
reply
55 points

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

permalink
report
parent
reply
17 points

you can set it

tl;dw: writes to the path in /proc/sys/kernel/core_pattern

permalink
report
parent
reply
16 points

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

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5.3K

    Monthly active users

  • 1.5K

    Posts

  • 33K

    Comments