[Bug 221423] gcc std::locale(LocaleName) crashes instead of throwing an exception
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Aug 7 23:42:24 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221423
--- Comment #11 from Mark Millard <marklmi26-fbsd at yahoo.com> ---
(In reply to w.schwarzenfeld from comment #10)
Well, I tried one of my old failing examples, but for
more recent g++ vintages (8 and 9) in a more recent
amd64 head release ( -r350364 ) and the failure did
not happen . . .
# g++8 -std=c++17 -Wpedantic -Wall -pthread -Wl,-rpath=/usr/local/lib/gcc8 -O2
cpp_clocks_investigation.cpp
# ldd a.out
a.out:
libstdc++.so.6 => /usr/local/lib/gcc8/libstdc++.so.6 (0x800661000)
libm.so.5 => /lib/libm.so.5 (0x8009f5000)
libgcc_s.so.1 => /usr/local/lib/gcc8/libgcc_s.so.1 (0x800a27000)
libthr.so.3 => /lib/libthr.so.3 (0x800c3e000)
libc.so.7 => /lib/libc.so.7 (0x800c6b000)
# ./a.out
. . .
# g++9 -std=c++17 -Wpedantic -Wall -pthread -Wl,-rpath=/usr/local/lib/gcc9 -O2
cpp_clocks_investigation.cpp
# ldd a.out
a.out:
libstdc++.so.6 => /usr/local/lib/gcc9/libstdc++.so.6 (0x800663000)
libm.so.5 => /lib/libm.so.5 (0x800a54000)
libgcc_s.so.1 => /usr/local/lib/gcc9/libgcc_s.so.1 (0x800a86000)
libthr.so.3 => /lib/libthr.so.3 (0x800c9d000)
libc.so.7 => /lib/libc.so.7 (0x800cca000)
# ./a.out
. . .
Both of those worked: no "Segmentation fault (core dumped)".
Like earlier for g++7, locale_failure_test.cc did not fail
either.
I've no 11.x or 12.x context around to test. Being based only
on head, this might not be enough evidence to close the submittal.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list