https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98812
Bug ID: 98812
Summary: Abort trap: 6 on MacOS with homebrew gcc when
exceptions are thrown
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: awsteiner at utk dot edu
Target Milestone: ---
I'm using gcc 10.2.0_2 on homebrew on MacOS Big Sur 11.1 (see below). I have a
standard homebrew installation of gcc and 'brew doctor' doesn't report any
unexpected
issues.
My problem is that throwing an exception causes "abort trap: 6", even trivial
examples like the code at the top of
https://www.cplusplus.com/doc/tutorial/exceptions/
cause the same issue. Everything else seems to run fine.
I'm not using any flags to compile, as with examples this simple they aren't
necessary.
Any ideas?
Thank you,
Andrew
gcc-10 -v:
Using built-in specs.
COLLECT_GCC=gcc-10
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/10.2.0_2/libexec/gcc/x86_64-apple-darwin20/10.2.0/lto-wrapper
Target: x86_64-apple-darwin20
Configured with: ../configure --build=x86_64-apple-darwin20
--prefix=/usr/local/Cellar/gcc/10.2.0_2
--libdir=/usr/local/Cellar/gcc/10.2.0_2/lib/gcc/10 --disable-nls
--enable-checking=release --enable-languages=c,c++,objc,obj-c++,fortran
--program-suffix=-10 --with-gmp=/usr/local/opt/gmp
--with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc
--with-isl=/usr/local/opt/isl --with-system-zlib --with-pkgversion='Homebrew
GCC 10.2.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues
--disable-multilib --with-native-system-header-dir=/usr/include
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
SED=/usr/bin/sed
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (Homebrew GCC 10.2.0_2)