[LLVMbugs] [Bug 20754] New: Clang crashed when building with -fstack-protector-all -fcatch-undefined-behavior

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 26 08:20:04 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20754

            Bug ID: 20754
           Summary: Clang crashed when building with -fstack-protector-all
                    -fcatch-undefined-behavior
           Product: clang
           Version: 3.4
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: notorca at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12937
  --> http://llvm.org/bugs/attachment.cgi?id=12937&action=edit
Preprocessed source and run script

libtool: compile:  clang -DHAVE_CONFIG_H -I. -I./include -I./celt -I./silk
-I./silk/float -I./silk/fixed -O1 -g -fstack-protector-all
-fcatch-undefined-behavior -fvisibility=hidden -W -Wall -Wextra -Wcast-align
-Wnested-externs -Wshadow -Wstrict-prototypes -MT silk/fixed/solve_LS_FIX.lo
-MD -MP -MF silk/fixed/.deps/solve_LS_FIX.Tpo -c silk/fixed/solve_LS_FIX.c 
-fPIC -DPIC -o silk/fixed/.libs/solve_LS_FIX.o
clang: warning: argument '-fcatch-undefined-behavior' is deprecated, use
'-fsanitize=undefined-trap -fsanitize-undefined-trap-on-error' instead
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I./include -I./celt -I./silk
-I./silk/float -I./silk/fixed -O1 -g -fstack-protector-all
-fcatch-undefined-behavior -fvisibility=hidden -W -Wall -Wextra -Wcast-align
-Wnested-externs -Wshadow -Wstrict-prototypes -MT
silk/fixed/warped_autocorrelation_FIX_neon.lo -MD -MP -MF
silk/fixed/.deps/warped_autocorrelation_FIX_neon.Tpo -c
silk/fixed/warped_autocorrelation_FIX_neon.c  -fPIC -DPIC -o
silk/fixed/.libs/warped_autocorrelation_FIX_neon.o
clang: warning: argument '-fcatch-undefined-behavior' is deprecated, use
'-fsanitize=undefined-trap -fsanitize-undefined-trap-on-error' instead
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple
armv7-unknown-linux-gnueabihf -S -disable-free -disable-llvm-verifier
-main-file-name warped_autocorrelation_FIX_neon.c -mrelocation-model pic
-pic-level 2 -mdisable-fp-elim -fmath-errno -mconstructor-aliases
-fuse-init-array -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard
-target-linker-version 2.24 -g -coverage-file
/tmp/warped_autocorrelation_FIX_neon-f6a71e.s -resource-dir
/usr/bin/../lib/clang/3.4.2 -dependency-file
silk/fixed/.deps/warped_autocorrelation_FIX_neon.Tpo -sys-header-deps -MP -MT
silk/fixed/warped_autocorrelation_FIX_neon.lo -D HAVE_CONFIG_H -D PIC -I . -I
./include -I ./celt -I ./silk -I ./silk/float -I ./silk/fixed -internal-isystem
/usr/local/include -internal-isystem /usr/bin/../lib/clang/3.4.2/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O1
-W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes
-fno-dwarf-directory-asm -fdebug-compilation-dir /home/lorca/src/opus
-ferror-limit 19 -fmessage-length 150 -fvisibility hidden
-fsanitize=alignment,array-bounds,bool,enum,float-cast-overflow,float-divide-by-zero,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable,vla-bound
-fsanitize-undefined-trap-on-error -stack-protector 2 -mstackrealign
-fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-slp -o
/tmp/warped_autocorrelation_FIX_neon-f6a71e.s -x c
silk/fixed/warped_autocorrelation_FIX_neon.c
1.    <eof> parser at end of file
2.    silk/fixed/warped_autocorrelation_FIX_neon.c:52:6
<Spelling=silk/fixed/warped_autocorrelation_FIX_neon.c:52:17>: LLVM IR
generation of declaration 'silk_warped_autocorrelation_FIX'
3.    silk/fixed/warped_autocorrelation_FIX_neon.c:52:6
<Spelling=silk/fixed/warped_autocorrelation_FIX_neon.c:52:17>: Generating code
for declaration 'silk_warped_autocorrelation_FIX'
4.    silk/fixed/warped_autocorrelation_FIX_neon.c:70:35: LLVM IR generation of
compound statement ('{}')
5.    silk/fixed/warped_autocorrelation_FIX_neon.c:84:9
<Spelling=silk/fixed/warped_autocorrelation_FIX_neon.c:38:41>: LLVM IR
generation of compound statement ('{}')
6.    silk/fixed/warped_autocorrelation_FIX_neon.c:84:9
<Spelling=silk/fixed/warped_autocorrelation_FIX_neon.c:74:14>: LLVM IR
generation of compound statement ('{}')
7.    silk/fixed/warped_autocorrelation_FIX_neon.c:84:9
<Spelling=/usr/bin/../lib/clang/3.4.2/include/arm_neon.h:4236:47>: LLVM IR
generation of compound statement ('{}')
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: armv7l-unknown-linux-gnueabihf
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I./include -I./celt -I./silk
-I./silk/float -I./silk/fixed -O1 -g -fstack-protector-all
-fcatch-undefined-behavior -fvisibility=hidden -W -Wall -Wextra -Wcast-align
-Wnested-externs -Wshadow -Wstrict-prototypes -MT silk/fixed/solve_LS_FIX.lo
-MD -MP -MF silk/fixed/.deps/solve_LS_FIX.Tpo -c silk/fixed/solve_LS_FIX.c -o
silk/fixed/solve_LS_FIX.o >/dev/null 2>&1
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140826/b7fba866/attachment.html>


More information about the llvm-bugs mailing list