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

Programmer Humor

32039 readers
990 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] 50 points 6 months ago (4 children)
[–] [email protected] 74 points 6 months ago (1 children)
[–] [email protected] 28 points 6 months ago (1 children)

Probably the same place as failed sudo reports

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

On a secret FBI server somewhere where they watch your failures and laugh

[–] [email protected] 11 points 6 months ago

When you apply for a home loan or a passport:

"Unfortunately we will have to reject your application"

"Why?"

"We have received several reports of failed sudo attempts and segmentation faults"

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

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

[–] [email protected] 55 points 6 months ago (3 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] 25 points 6 months ago (1 children)

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

[–] [email protected] 14 points 6 months ago (3 children)

gdb gives you waaaaaaaaaaaaaaay more than a stack trace.

[–] [email protected] 5 points 6 months ago

...unless you build the executable with optimizations that remove the stack frame. Good luck debugging that sucker!

[–] [email protected] 5 points 6 months ago

I love gdb! I recently had to do a debug and wow its so cool! On gentoo I can compile everything with symbols and source and can do a complete stack trace.

[–] [email protected] 2 points 6 months ago

Am I the only one in this thread who uses VSCode + GDB together? The inspection panes and ability to breakpoint and hover over variables to drill down in them is just great, seems like everyone should set up their own c_cpp_properties.json && tasks.json files and give it a try.

[–] [email protected] 0 points 6 months ago

i mean you're expected to know the basic functioning of the compiler when you use it

[–] [email protected] 17 points 6 months ago

you can set it

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

[–] [email protected] 16 points 6 months ago

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