Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Aug 2019 23:42:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 221423] gcc std::locale(LocaleName) crashes instead of throwing an exception
Message-ID:  <bug-221423-29464-ZNxojcEdcq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-221423-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-221423-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221423

--- Comment #11 from Mark Millard <marklmi26-fbsd@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=3Dc++17 -Wpedantic -Wall -pthread -Wl,-rpath=3D/usr/local/lib/g=
cc8 -O2
cpp_clocks_investigation.cpp
# ldd a.out
a.out:
        libstdc++.so.6 =3D> /usr/local/lib/gcc8/libstdc++.so.6 (0x800661000)
        libm.so.5 =3D> /lib/libm.so.5 (0x8009f5000)
        libgcc_s.so.1 =3D> /usr/local/lib/gcc8/libgcc_s.so.1 (0x800a27000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x800c3e000)
        libc.so.7 =3D> /lib/libc.so.7 (0x800c6b000)
# ./a.out
. . .

# g++9 -std=3Dc++17 -Wpedantic -Wall -pthread -Wl,-rpath=3D/usr/local/lib/g=
cc9 -O2
cpp_clocks_investigation.cpp
# ldd a.out
a.out:
        libstdc++.so.6 =3D> /usr/local/lib/gcc9/libstdc++.so.6 (0x800663000)
        libm.so.5 =3D> /lib/libm.so.5 (0x800a54000)
        libgcc_s.so.1 =3D> /usr/local/lib/gcc9/libgcc_s.so.1 (0x800a86000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x800c9d000)
        libc.so.7 =3D> /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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221423-29464-ZNxojcEdcq>