# Crash reproducer for clang version 3.8.0 (git://github.com/CTSRD-CHERI/clang.git 5cb14ce28a05af60f3a31b8dc14403511ddaac80) (git://github.com/CTSRD-CHERI/llvm.git e00577c8572f9157dd3493b89b9be6a7af425e8d) # Driver args: "-g" "-fintegrated-as" "--target=cheri-unknown-freebsd" "-msoft-float" "--sysroot=/var/tmp/obj/mips.mips64/home/sson/src/cheribsd/tmp" "-mabi=sandbox" "-mxgot" "-cheri-linker" "-O2" "-pipe" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/include" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/locale" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/mips" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libcheri" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libmalloc_simple" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../../contrib/gdtoa" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../../contrib/tzcode/stdtime" "-mxgot" "-G" "0" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/include" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/mips" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/mips/softfloat" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/locale" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/regex" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/softfloat" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/string" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/stdlib" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/stdtime" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../../contrib/gdtoa" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../../include" "-Wno-cast-align" "-D" "FORCE_C_LOCALE" "-D" "FORCE_UTC_TZ" "-O2" "-ftls-model=local-exec" "-Wno-error" "-MD" "-MP" "-MF" ".depend.malloc.o" "-MT" "malloc.o" "-std=gnu99" "-Wsystem-headers" "-Wall" "-Wno-format-y2k" "-W" "-Wno-unused-parameter" "-Wstrict-prototypes" "-Wmissing-prototypes" "-Wpointer-arith" "-Wreturn-type" "-Wcast-qual" "-Wwrite-strings" "-Wswitch" "-Wshadow" "-Wunused-parameter" "-Wcast-align" "-Wchar-subscripts" "-Winline" "-Wnested-externs" "-Wredundant-decls" "-Wold-style-definition" "-Wno-pointer-sign" "-Wmissing-variable-declarations" "-Wthread-safety" "-Wno-empty-body" "-Wno-string-plus-int" "-Wno-unused-const-variable" "-Qunused-arguments" "-Wno-cast-align" "-c" "/home/sson/src/cheribsd/lib/libc_cheri/../libmalloc_simple/malloc.c" "-o" "malloc.o" # Original command: "/home/sson/tmp/llvm/Build/bin/clang-3.8" "-cc1" "-triple" "cheri-unknown-freebsd" "-emit-obj" "-disable-free" "-disable-llvm-verifier" "-main-file-name" "malloc.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-mconstructor-aliases" "-target-feature" "+soft-float" "-target-abi" "sandbox" "-msoft-float" "-mfloat-abi" "soft" "-mllvm" "-mxgot" "-mllvm" "-mips-ssection-threshold=0" "-dwarf-column-info" "-debug-info-kind=standalone" "-dwarf-version=2" "-coverage-file" "/var/tmp/obj/mips.mips64/home/sson/src/cheribsd/lib/libc_cheri/malloc.o" "-resource-dir" "/home/sson/tmp/llvm/Build/bin/../lib/clang/3.8.0" "-dependency-file" ".depend.malloc.o" "-sys-header-deps" "-MP" "-MT" "malloc.o" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/include" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/locale" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/mips" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libcheri" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libmalloc_simple" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../../contrib/gdtoa" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../../contrib/tzcode/stdtime" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/include" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/mips" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/mips/softfloat" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/locale" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/regex" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/softfloat" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/string" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/stdlib" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../libc/stdtime" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../../contrib/gdtoa" "-I" "/home/sson/src/cheribsd/lib/libc_cheri/../../include" "-D" "FORCE_C_LOCALE" "-D" "FORCE_UTC_TZ" "-isysroot" "/var/tmp/obj/mips.mips64/home/sson/src/cheribsd/tmp" "-O2" "-Wno-cast-align" "-Wno-error" "-Wsystem-headers" "-Wall" "-Wno-format-y2k" "-W" "-Wno-unused-parameter" "-Wstrict-prototypes" "-Wmissing-prototypes" "-Wpointer-arith" "-Wreturn-type" "-Wcast-qual" "-Wwrite-strings" "-Wswitch" "-Wshadow" "-Wunused-parameter" "-Wcast-align" "-Wchar-subscripts" "-Winline" "-Wnested-externs" "-Wredundant-decls" "-Wold-style-definition" "-Wno-pointer-sign" "-Wmissing-variable-declarations" "-Wthread-safety" "-Wno-empty-body" "-Wno-string-plus-int" "-Wno-unused-const-variable" "-Wno-cast-align" "-std=gnu99" "-fconst-strings" "-fdebug-compilation-dir" "/var/tmp/obj/mips.mips64/home/sson/src/cheribsd/lib/libc_cheri" "-ferror-limit" "19" "-fmessage-length" "80" "-ftls-model=local-exec" "-fobjc-runtime=gnustep" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-cheri-linker" "-o" "malloc.o" "-x" "c" "/home/sson/src/cheribsd/lib/libc_cheri/../libmalloc_simple/malloc.c" "/home/sson/tmp/llvm/Build/bin/clang-3.8" "-cc1" "-triple" "cheri-unknown-freebsd" "-emit-obj" "-disable-free" "-disable-llvm-verifier" "-main-file-name" "malloc.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-mconstructor-aliases" "-target-feature" "+soft-float" "-target-abi" "sandbox" "-msoft-float" "-mfloat-abi" "soft" "-mllvm" "-mxgot" "-mllvm" "-mips-ssection-threshold=0" "-dwarf-column-info" "-debug-info-kind=standalone" "-dwarf-version=2" "-sys-header-deps" "-D" "FORCE_C_LOCALE" "-D" "FORCE_UTC_TZ" "-O2" "-Wno-cast-align" "-Wno-error" "-Wsystem-headers" "-Wall" "-Wno-format-y2k" "-W" "-Wno-unused-parameter" "-Wstrict-prototypes" "-Wmissing-prototypes" "-Wpointer-arith" "-Wreturn-type" "-Wcast-qual" "-Wwrite-strings" "-Wswitch" "-Wshadow" "-Wunused-parameter" "-Wcast-align" "-Wchar-subscripts" "-Winline" "-Wnested-externs" "-Wredundant-decls" "-Wold-style-definition" "-Wno-pointer-sign" "-Wmissing-variable-declarations" "-Wthread-safety" "-Wno-empty-body" "-Wno-string-plus-int" "-Wno-unused-const-variable" "-Wno-cast-align" "-std=gnu99" "-fconst-strings" "-ferror-limit" "19" "-fmessage-length" "80" "-ftls-model=local-exec" "-fobjc-runtime=gnustep" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-cheri-linker" "-x" "c" "malloc-6a6a21.c"