[Bug 235033] [feature suggestion] Stack should be unwound and exception should be printed when a C++ application throws an uncaught exception

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 17 22:12:21 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235033

Conrad Meyer <cem at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cem at freebsd.org

--- Comment #2 from Conrad Meyer <cem at freebsd.org> ---
I agree it'd be nice, and match a lot of higher level languages!

Not sure what multiple languages means.  If C code is compiled with
-fexceptions, C++ exceptions can be raised across C libraries.  I'm not sure if
we do that.  Probably not; we don't have a lot of C++ libraries in base.

I think a similar behavior might be useful for C programs on SIGABRT.  In fact,
we do this (grabbing the signal-induced exit stack) at Isilon as part of
coredump() in kern_sig.c, and log it to syslog.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list