1016
C++ Moment (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] neosheo@discuss.tchncs.de 49 points 11 months ago
[-] Agent641@lemmy.world 73 points 11 months ago
[-] unionagainstdhmo@aussie.zone 28 points 11 months ago

Probably the same place as failed sudo reports

[-] flashgnash@lemm.ee 13 points 11 months ago

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

[-] unionagainstdhmo@aussie.zone 11 points 11 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"

[-] Plasma@lemmy.ml 22 points 11 months ago

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

[-] Swedneck@discuss.tchncs.de 58 points 11 months ago

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

[-] PotatoesFall@discuss.tchncs.de 24 points 11 months ago

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

[-] ysjet@lemmy.world 14 points 11 months ago

gdb gives you waaaaaaaaaaaaaaay more than a stack trace.

[-] inetknght@lemmy.ml 5 points 11 months ago

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

[-] TarantulaFudge@lemmy.ml 5 points 11 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.

[-] TangledHyphae@lemmy.world 2 points 11 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.

[-] ysjet@lemmy.world 9 points 11 months ago

Imagine if you knew the most basic foundational features of the language you were using.

Next we'll teach you about this neat thing called the compiler.

[-] russjr08@bitforged.space 11 points 11 months ago

I'm not a C/C++ dev, but isn't apport Ubuntu's crash reporter? Why would dumps be going into there?

Though on a rhetorical thought, I am aware of systemd's coredumptctl so perhaps its collecting dumps the same way systemd does.

[-] ysjet@lemmy.world 11 points 11 months ago* (last edited 11 months ago)

https://wiki.ubuntu.com/Apport

It intentionally acts as an intercept for such things, so that core dumps can be nicely packaged up and sent to maintainers in a GUI-friendly way so maintainers can get valuable debugging information even from non-tech-savvy users. If you're running something on the terminal, it won't be intercepted and the core dump will be put in the working directory of the binary, but if you executed it through the GUI it will.

Assuming, of course, you turn crash interception on- it's off by default since it might contain sensitive info. Apport itself is always on and running to handle Ubuntu errors, but the crash interception needs enabled.

[-] russjr08@bitforged.space 7 points 11 months ago

Ah I see, that's actually pretty cool - thanks!

[-] ysjet@lemmy.world 3 points 11 months ago
[-] current@lemmy.ml 9 points 11 months ago

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

[-] elxeno@lemm.ee 17 points 11 months ago

you can set it

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

[-] soulsource@discuss.tchncs.de 16 points 11 months ago

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

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

Programmer Humor

33546 readers
306 users here now

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

Rules:

founded 5 years ago
MODERATORS