Exceptions in with_libc not working

Boris Mulder boris.mulder at ...434...
Tue Mar 14 15:11:27 CET 2017


Hi all,

Whenever I throw an exception somewhere in code inside a with_libc
lambda expression, and try to catch it outside of that block, it will
not catch that exception.

Example:

|t||ry {|

|    Libc::with_libc([&] () {         ...         throw E||xception();
        ...     } );|

|} catch (Exception &e) {||
    Genode::log("caught");||||
}

|The "caught" will never be printed in this case. What can I do to
fix/work around this?

-- 

Met vriendelijke groet / kind regards,

Boris Mulder

Cyber Security Labs B.V. | Gooimeer 6-31 | 1411 DD Naarden | The Netherlands
+31 35 631 3253 (office)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genode.org/pipermail/users/attachments/20170314/4931fcb5/attachment.html>


More information about the users mailing list