Skip to content

Is there a method for the terminal window to also receive the "segmentation fault (core dumped) ./a.exe" message? #293

Open
@0BananaBig0

Description

@0BananaBig0

I found that if the segmentation fault occurred because of my bad code, the terminal window does not receive or display this information. Is there a method to address this issue?

#include <iostream>

class DerivedA {
   public:
      ~DerivedA() { delete this; };
};

class DerivedB {};

int main() {
   [[maybe_unused]] DerivedA a;
   return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions