0

I compile the resize.c and here is the error message got. I searched it and found it has problem in the clang installed but I'm currently using online ide. Can I change clang in it and how? I love any tips...

clang -fsanitize=integer -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall -
Werror -Wextra -Wno-sign-compare -Wshadow    resize.c  -lcrypt -lcs50 -lm -o 
resize
0  libLLVM-3.6.so.1 0x00002b57e3584912 llvm::sys::PrintStackTrace(_IO_FILE*) 
+ 34
1  libLLVM-3.6.so.1 0x00002b57e3582eb1
2  libpthread.so.0  0x00002b57e427b330
3  libpthread.so.0  0x00000000022067c0
Stack dump:
0.      Program arguments: /usr/lib/llvm-3.6/bin/clang -cc1 -triple x86_64-            
pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -        
main-file-name resize.c -mrelocation-model static -mthread-model posix -
mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-    
tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.24 -g -
dwarf-column-info -resource-dir /usr/lib/llvm-3.6/bin/../lib/clang/3.6.0 -
internal-isystem /usr/local/inclu3  libpthread.so.0  0x00000000022067c0Stack 
dump:0.      Program arguments: /usr/lib/llvm-3.6/bin/clang -cc1 -triple 
x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-
verifier -main-file-name resize.c -mrelocation-model static -mthread-model 
posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -    
munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 
2.24 -g -dwarf-column-info -resource-dir /usr/lib/llvm-
3.6/bin/../lib/clang/3.6.0 -internal-isystem /usr/local/include -internal-
isystem /usr/lib/llvm-3.6/bin/../lib/clang/3.6.0/include -internal-externc-
isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/include -internal-externc-
isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -
internal-externc-isystem /usr/include -O0 -Wall -Werror -Wextra -Wno-sign-
compare -Wshadow -std=c11 -fdebug-compilation-dir 
/home/ubuntu/workspace/resize -ferror-limit 19 -fmessage-length 68 -
fsanitize=alignment,array-bounds,bool,enum,float-cast-overflow,float-divide-
by-zero,function,integer-divide-by-zero,nonnull-attribute,null,object-
size,return,returns-nonnull-attribute,shift,signed-integer-
overflow,unreachable,vla-bound,vptr,unsigned-integer-overflow -fsanitize-
recover=alignment,array-bounds,bool,enum,float-cast-overflow,float-divide-by
zero,function,integer-divide-by-zero,nonnull-attribute,null,object-
size,returns-nonnull-attribute,shift,signed-integer-overflow,vla-
bound,vptr,unsigned-integer-overflow -mstackrealign -fobjc-runtime=gcc -
fdiagnostics-show-option -fcolor-diagnostics -o /tmp/resize-b7b551.o -x c 
resize.c 
1.      resize.c:80:81: current parser token ')'
2.      resize.c:11:1: parsing function body 'main'
3.      resize.c:11:1: in compound statement ('{}')
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see 
invocation)
Ubuntu clang version 3.6.0-2ubuntu1~trusty1 (tags/RELEASE_360/final) (based 
on LLVM 3.6.0)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to 
http://bugs.debian.org/ and include the crash backtrace, preprocessed source, 
and associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/resize-9e5878.c
clang: note: diagnostic msg: /tmp/resize-9e5878.sh
clang: note: diagnostic msg: 

********************
make: *** [resize] Error 254
0

I had a similar error. Try making sure your headers are correct, and then refresh your ide by clicking the three white bars on the top right (left of the cat) then the "restart" button.

1
  • I just found it. I had fault in one of my variables. I typed bi.Height instead of bi.biHeight. Thanks for your help. Apr 20 '17 at 18:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .