From owner-freebsd-toolchain@freebsd.org Thu Mar 10 06:53:39 2016 Return-Path: Delivered-To: freebsd-toolchain@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 20D9FACAEF9 for ; Thu, 10 Mar 2016 06:53:39 +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 01F7022D for ; Thu, 10 Mar 2016 06:53:39 +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 u2A6rc2W064727 for ; Thu, 10 Mar 2016 06:53:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 207837] www/firefox: clang34 and clang35 crash on i386 with -O2 -fstack-protector Date: Thu, 10 Mar 2016 06:53:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: jbeich@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: flagtypes.name short_desc bug_status Message-ID: In-Reply-To: References: 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-toolchain@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2016 06:53:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207837 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|maintainer-feedback?(gecko@ |maintainer-feedback+ |FreeBSD.org) | Summary|www/firefox build fails on |www/firefox: clang34 and |i386 |clang35 crash on i386 with | |-O2 -fstack-protector Status|New |Open --- Comment #3 from Jan Beich --- lldb37 $(which c++) --core c++.core and if you've built world with symbols (e.g. DEBUG_FLAGS=3D-g) it'll show something like the following. After chec= king your full log I can reproduce it on lang/clang34, lang/clang35, /usr/bin/cl= ang on 10.1, 10.2, 10.3 with -m32 -O2 -fstack-protector. It doesn't crash with = -O0, -O1, -O3. As a workaround try building with OPTIMIZED_CFLAGS=3Don, using lang/clang3[6-8] or lang/gcc*. (lldb) bt * thread #1: tid =3D 100230, 0x00000008064fae9a libc.so.7`thr_kill + 10 at thr_kill.S:3, name =3D 'clang', stop reason =3D signal SIGABRT * frame #0: 0x00000008064fae9a libc.so.7`thr_kill + 10 at thr_kill.S:3 frame #1: 0x00000008064fae6b libc.so.7`__raise(s=3D6) + 59 at raise.c= :52 [opt] frame #2: 0x00000008064fae26 libc.so.7`abort + 150 at abort.c:77 [opt] frame #3: 0x000000080657e931 libc.so.7`__assert(func=3D, file=3D, line=3D, failedexpr=3D) + 8= 1 at assert.c:51 [opt] frame #4: 0x0000000001f63483 clang`clang::Lexer::resetExtendedTokenMode(this=3D0x00007fffffff8680) + 67 = at Lexer.cpp:134 frame #5: 0x0000000001f6c958 clang`clang::Lexer::LexEndOfFile(this=3D0x00007fffffff8680, Result=3D0x00007fffffff85c8, CurPtr=3D"") + 88 at Lexer.cpp:2463 frame #6: 0x0000000001f6dbb4 clang`clang::Lexer::LexTokenInternal(this=3D0x00007fffffff8680, Result=3D0x00007fffffff85c8, TokAtPhysicalStartOfLine=3Dfalse) + 420 at Lexer.cpp:2915 frame #7: 0x0000000001f6c8a8 clang`clang::Lexer::Lex(this=3D0x00007fffffff8680, Result=3D0x00007fffffff8= 5c8) + 216 at Lexer.cpp:2866 frame #8: 0x000000000063c2f3 clang`clang::Lexer::LexFromRawLexer(this=3D0x00007fffffff8680, Result=3D0x00007fffffff85c8) + 83 at Lexer.h:156 frame #9: 0x0000000001aa50e5 clang`(anonymous namespace)::InclusionRewriter::Process(this=3D0x0000000806c5f0f0, FileId=3D= (ID =3D 1624), FileType=3DC_User) + 3989 at InclusionRewriter.cpp:495 frame #10: 0x0000000001aa4667 clang`(anonymous namespace)::InclusionRewriter::Process(this=3D0x0000000806c5f0f0, FileId=3D= (ID =3D 1622), FileType=3DC_User) + 1303 at InclusionRewriter.cpp:401 frame #11: 0x0000000001aa4667 clang`(anonymous namespace)::InclusionRewriter::Process(this=3D0x0000000806c5f0f0, FileId=3D= (ID =3D 667), FileType=3DC_User) + 1303 at InclusionRewriter.cpp:401 frame #12: 0x0000000001aa4667 clang`(anonymous namespace)::InclusionRewriter::Process(this=3D0x0000000806c5f0f0, FileId=3D= (ID =3D 666), FileType=3DC_User) + 1303 at InclusionRewriter.cpp:401 frame #13: 0x0000000001aa4667 clang`(anonymous namespace)::InclusionRewriter::Process(this=3D0x0000000806c5f0f0, FileId=3D= (ID =3D 665), FileType=3DC_User) + 1303 at InclusionRewriter.cpp:401 frame #14: 0x0000000001aa4667 clang`(anonymous namespace)::InclusionRewriter::Process(this=3D0x0000000806c5f0f0, FileId=3D= (ID =3D 9), FileType=3DC_User) + 1303 at InclusionRewriter.cpp:401 frame #15: 0x0000000001aa4667 clang`(anonymous namespace)::InclusionRewriter::Process(this=3D0x0000000806c5f0f0, FileId=3D= (ID =3D 8), FileType=3DC_User) + 1303 at InclusionRewriter.cpp:401 frame #16: 0x0000000001aa4667 clang`(anonymous namespace)::InclusionRewriter::Process(this=3D0x0000000806c5f0f0, FileId=3D= (ID =3D 1), FileType=3DC_User) + 1303 at InclusionRewriter.cpp:401 frame #17: 0x0000000001aa3f83 clang`clang::RewriteIncludesInInput(PP=3D0x0000000806c50800, OS=3D0x0000000806c1a980, Opts=3D0x0000000806c37408) + 579 at InclusionRewriter.cpp:548 frame #18: 0x0000000001aa19bf clang`clang::RewriteIncludesAction::ExecuteAction(this=3D0x0000000806c1a0c0= ) + 175 at FrontendActions.cpp:190 frame #19: 0x0000000000633b37 clang`clang::FrontendAction::Execute(this=3D0x0000000806c1a0c0) + 183 at FrontendAction.cpp:378 frame #20: 0x00000000005f196e clang`clang::CompilerInstance::ExecuteAction(this=3D0x0000000806c34000, Act=3D0x0000000806c1a0c0) + 846 at CompilerInstance.cpp:707 frame #21: 0x00000000005b0996 clang`clang::ExecuteCompilerInvocation(Clang=3D0x0000000806c34000) + 1958 at ExecuteCompilerInvocation.cpp:236 frame #22: 0x000000000059a281 clang`cc1_main(ArgBegin=3D0x00007ffffff= fd028, ArgEnd=3D0x00007fffffffd400, Argv0=3D"/usr/local/llvm34/bin/clang", MainAddr=3D0x00000000005a78e0) + 993 at cc1_main.cpp:100 frame #23: 0x00000000005a7cc6 clang`main(argc_=3D125, argv_=3D0x00007fffffffd888) + 806 at driver.cpp:314 frame #24: 0x00000000005994cf clang`_start(ap=3D, cleanup=3D) + 383 at crt1.c:72 [opt] --=20 You are receiving this mail because: You are on the CC list for the bug.=