Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2016 06:53:39 +0000
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
Message-ID:  <bug-207837-29464-JDJw8IF5uG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207837-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207837-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=3D207837

Jan Beich <jbeich@FreeBSD.org> 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 <jbeich@FreeBSD.org> ---
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<unavailable>,
file=3D<unavailable>, line=3D<unavailable>, failedexpr=3D<unavailable>) + 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<unavailable>,
cleanup=3D<unavailable>) + 383 at crt1.c:72 [opt]

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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