How would you use that for debugging?

(Sry I’m too cheap to go and buy the book)

My best guess is that in some configurations it raises SIGSEGV and then dumps core. Then, you use a debugger to analyse the core dump. But then again you could also set a breakpoint, or if you absolutely want a core dump, use abort() and configure SIGABRT to produce a core dump.

Laura
link
fedilink
25M

to see whether your code has executed a certain path (like printf(“here”) but as a crash)

Create a 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.
  • 1 user online
  • 68 users / day
  • 163 users / week
  • 615 users / month
  • 2.29K users / 6 months
  • 1 subscriber
  • 1.66K Posts
  • 36.7K Comments
  • Modlog