From owner-freebsd-ports-bugs@freebsd.org Fri Aug 11 19:29:23 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FF9BDB62FB for ; Fri, 11 Aug 2017 19:29:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2882FC60 for ; Fri, 11 Aug 2017 19:29:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v7BJTMjA096092 for ; Fri, 11 Aug 2017 19:29:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 221423] gcc std::locale(LocaleName) crashes instead of throwing an exception Date: Fri, 11 Aug 2017 19:29:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: artyomtnk@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gerald@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2017 19:29:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221423 Bug ID: 221423 Summary: gcc std::locale(LocaleName) crashes instead of throwing an exception Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: gerald@FreeBSD.org Reporter: artyomtnk@yahoo.com Assignee: gerald@FreeBSD.org Flags: maintainer-feedback?(gerald@FreeBSD.org) This simple program crashes "Abort trap (core dumped)" when it either expec= ted to succeed or to catch an exception. $ g++ -v Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/usr/local/libexec/gcc5/gcc/x86_64-portbld-freebsd11.= 0/5.4.0/lto-wrapper Target: x86_64-portbld-freebsd11.0 Configured with: /wrkdirs/usr/ports/lang/gcc5/work/gcc-5.4.0/configure --with-build-config=3Dbootstrap-debug --disable-nls --enable-gnu-indirect-function --libdir=3D/usr/local/lib/gcc5 --libexecdir=3D/usr/local/libexec/gcc5 --program-suffix=3D5 --with-as=3D/usr/local/bin/as --with-gmp=3D/usr/local --with-gxx-include-dir=3D/usr/local/lib/gcc5/include/c++/ --with-ld=3D/usr/local/bin/ld --with-pkgversion=3D'FreeBSD Ports Collection' --with-system-zlib --with-ecj-jar=3D/usr/local/share/java/ecj-4.5.jar --enable-languages=3Dc,c++,objc,fortran,java --prefix=3D/usr/local --localstatedir=3D/var --mandir=3D/usr/local/man --infodir=3D/usr/local/inf= o/gcc5 --build=3Dx86_64-portbld-freebsd11.0 Thread model: posix gcc version 5.4.0 (FreeBSD Ports Collection)=20 $ pkg info gcc gcc-5.4.0_2 Name : gcc Version : 5.4.0_2 Installed on : Wed Aug 9 03:18:50 2017 IDT Origin : lang/gcc Architecture : FreeBSD:11:* Prefix : /usr/local Categories : lang java Licenses :=20 Maintainer : gerald@FreeBSD.org WWW : http://gcc.gnu.org Comment : Meta-port for the default version of the GNU Compiler Collection Annotations : repo_type : binary repository : FreeBSD Flat size : 17.0B Description : GCC, the GNU Compiler Collection, supports a number of languages. This port pulls in gcc5 (or another version-specific port) and defines symlinks called gcc, g++, and gfortran. WWW: http://gcc.gnu.org Gerald Pfeifer $ uname -a FreeBSD freebsd11 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GEN= ERIC amd64 ////////////////// Code: //////////// #include #include int main() { try { std::locale l =3D std::locale("en_US.UTF-8"); } catch(std::exception const &e) { std::cerr << e.what() << std::endl; } catch(...) { std::cerr << "Unknown exception " << std::endl; } } --=20 You are receiving this mail because: You are the assignee for the bug.=