awful.systems
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@devilish666@lemmy.world to Programmer Humor@lemmy.ml • 1 year ago

C++ Moment

lemmy.world

message-square
138
fedilink
1.03K

C++ Moment

lemmy.world

@devilish666@lemmy.world to Programmer Humor@lemmy.ml • 1 year ago
message-square
138
fedilink
  • @Strykker@programming.dev
    link
    fedilink
    138•1 year ago

    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.

    • @neosheo@discuss.tchncs.de
      link
      fedilink
      49•1 year ago

      Where does it write the file

      • @Agent641@lemmy.world
        link
        fedilink
        74•1 year ago

        Nobody knows

        • @unionagainstdhmo@aussie.zone
          link
          fedilink
          English
          28•
          edit-2
          8 months ago

          deleted by creator

          • @flashgnash@lemm.ee
            link
            fedilink
            13•1 year ago

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

            • @unionagainstdhmo@aussie.zone
              link
              fedilink
              English
              11•
              edit-2
              8 months ago

              deleted by creator

      • Elsie
        link
        fedilink
        22•1 year ago

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

      • @elxeno@lemm.ee
        link
        fedilink
        17•1 year ago

        you can set it

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

      • @soulsource@discuss.tchncs.de
        link
        fedilink
        16•1 year ago

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

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml

remote_follow_modal_title

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

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.
  • 451 users / day
  • 1.34K users / week
  • 3.55K users / month
  • 9.59K users / 6 months
  • 36.6K subscribers
  • 1.7K Posts
  • 31K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org