Steigern Sie den Fadenertrag in Catch Exception Block
Posted: 15 Feb 2025, 12:05
Ich untersuche derzeit ein Crash -Szenario in Windows, das durch die Durchführung eines Boost -Ertrags in einem C ++ - Catch -Block verursacht wird. Hier ist ein minimal reproduzierbares Beispiel, das zu einem Absturz in Windows führt (zumindest für mich). Stellungnahme. Ich denke, dass etwas im Stapel entspannt und ergibt mischt sich nicht richtig. Irgendeine Idee, ob es sich um ein bekanntes Problem handelt? < /P>
Code: Select all
#include
#include
#include
#include
void throwException() {
throw std::runtime_error("exception");
}
void task() {
try {
throwException();
} catch (const std::runtime_error& e) {
std::cout