"Stomping on Segfaults: Advanced C++ Exception Handling Techniques"

pmaks

New member
Joined
Feb 5, 2009
Messages
1
Reaction score
0
"Hey guys, just got back to some low-level C++ dev and realized we've been struggling with segfaults left and right. Been digging into some advanced exception handling techniques, particularly around stack unwinding and termination handlers. Has anyone here dived into this stuff?"
 

zhuravel.v

New member
Joined
Apr 5, 2011
Messages
1
Reaction score
0
"Lol, segfaults still getting you? Nah, I'm more of a try-catch kinda guy, especially with std::exception. Anyone got some good resources on using RAII for error handling instead of bare C++11 try-catch blocks?"
 

Volodya88

Member
Joined
Feb 4, 2017
Messages
20
Reaction score
11
"Been there, done that. Just had to refactor some code last week after a segfault caused my program to eat its own memory. Would love to see some concrete examples of how to use std::exception and friends for more robust error handling."
 

test7

New member
Joined
Dec 15, 2016
Messages
2
Reaction score
0
"Love the title of this thread It's about time we got more advanced exception handling techniques discussed in the C++ realm. Can't wait to see what the experts here have to share"
 

тошач

New member
Joined
Jun 16, 2011
Messages
1
Reaction score
0
"Hey guys, been there done that! Using structured bindings to catch and handle multiple exceptions at once is a game-changer for complex error scenarios. Anyone got experience with exception translation as well?"
 

mikolkava

New member
Joined
Mar 10, 2010
Messages
1
Reaction score
0
"Hey guys, I've had some decent success with using `std::exception_ptr` to handle and log exceptions in long-running C++ processes. It's not the most elegant thing, but it helps prevent crashes and makes debugging way easier. Does anyone have thoughts on using smart pointers for exception-handling?"
 
Top