]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix crash on older boost when receiving an exception from an MThread
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 10 Oct 2017 10:48:55 +0000 (12:48 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Tue, 10 Oct 2017 13:38:25 +0000 (15:38 +0200)
commit580f51c22e2443bf5abe30f8d7e770fc30511a92
treefae720701a970d698a8aba59c1794a2e6e75f598
parent359c02799ca861b20313de6ee23cf603c3c90c38
Fix crash on older boost when receiving an exception from an MThread

for older boost fcontext versions, we would return a boolean that said 'we
caught an exception for you and stored it in ctx', but we would not actually
retrieve the origin ctx, and then blindly attempt to rethrow the exception
(not) stored in the ctx we did have, leading to a crash. We now send back the
actual ctx, and check it for a stored exception.
pdns/mtasker_fcontext.cc