Skip to content

Instantly share code, notes, and snippets.

@dmilith
Created January 7, 2024 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmilith/419f27309b9ed60c0e95312de8365e17 to your computer and use it in GitHub Desktop.
Save dmilith/419f27309b9ed60c0e95312de8365e17 to your computer and use it in GitHub Desktop.
# Crash reproducer for FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)
# Driver args: "-pthread" "-c" "-fno-strict-overflow" "-D" "NDEBUG" "-fuse-ld=lld" "-ferror-limit=1" "-fstack-protector" "-Wformat" "-Wformat-security" "-Wl,-z,relro,-z,now" "-I" "/Software/Python312/include" "-w" "-O3" "-fvisibility=default" "-gdwarf-5" "-fPIC" "-Wl,-rpath=/Software/Python312/lib,--enable-new-dtags" "--param" "ssp-buffer-size=4" "-fuse-ld=lld" "-ferror-limit=1" "-fstack-protector" "-Wformat" "-Wformat-security" "-Wl,-z,relro,-z,now" "-I" "/Software/Python312/include" "-w" "-O3" "-fvisibility=default" "-gdwarf-5" "-fPIC" "-Wl,-rpath=/Software/Python312/lib,--enable-new-dtags" "--param" "ssp-buffer-size=4" "-flto=full" "-g" "-std=c11" "-Werror=implicit-function-declaration" "-fvisibility=hidden" "-fprofile-instr-use=code.profclangd" "-I" "./Include/internal" "-I" "." "-I" "./Include" "-fPIC" "-D" "Py_BUILD_CORE" "-o" "Parser/token.o" "Parser/token.c"
# Original command: "/usr/bin/clang" "-cc1" "-triple" "aarch64-unknown-freebsd14.0" "-emit-llvm-bc" "-flto=full" "-flto-unit" "-disable-free" "-clear-ast-before-backend" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "token.c" "-mrelocation-model" "pic" "-pic-level" "2" "-fhalf-no-semantic-interposition" "-mframe-pointer=non-leaf" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "generic" "-target-feature" "+neon" "-target-feature" "+v8a" "-target-abi" "aapcs" "-mllvm" "-treat-scalable-fixed-error-as-warning" "-debug-info-kind=standalone" "-dwarf-version=5" "-debugger-tuning=gdb" "-fprofile-instrument-use-path=code.profclangd" "-fcoverage-compilation-dir=/Software/Python312/.src_34340eab1ef9bee6/Python-3.12.1" "-resource-dir" "/usr/lib/clang/16" "-D" "NDEBUG" "-I" "/Software/Python312/include" "-I" "/Software/Python312/include" "-I" "./Include/internal" "-I" "." "-I" "./Include" "-D" "Py_BUILD_CORE" "-internal-isystem" "/usr/lib/clang/16/include" "-internal-externc-isystem" "/usr/include" "-O3" "-Wformat" "-Wformat-security" "-Wformat" "-Wformat-security" "-Werror=implicit-function-declaration" "-w" "-std=c11" "-fdebug-compilation-dir=/Software/Python312/.src_34340eab1ef9bee6/Python-3.12.1" "-ferror-limit" "1" "-fvisibility=hidden" "-fwrapv" "-pthread" "-stack-protector" "1" "-stack-protector-buffer-size" "4" "-stack-protector-buffer-size" "4" "-fno-signed-char" "-fgnuc-version=4.2.1" "-vectorize-loops" "-vectorize-slp" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "Parser/token.o" "-x" "c" "Parser/token.c"
"/usr/bin/clang" "-cc1" "-triple" "aarch64-unknown-freebsd14.0" "-emit-llvm-bc" "-flto=full" "-flto-unit" "-disable-free" "-clear-ast-before-backend" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "token.c" "-mrelocation-model" "pic" "-pic-level" "2" "-fhalf-no-semantic-interposition" "-mframe-pointer=non-leaf" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "generic" "-target-feature" "+neon" "-target-feature" "+v8a" "-target-abi" "aapcs" "-mllvm" "-treat-scalable-fixed-error-as-warning" "-debug-info-kind=standalone" "-dwarf-version=5" "-debugger-tuning=gdb" "-fprofile-instrument-use-path=code.profclangd" "-fcoverage-compilation-dir=/Software/Python312/.src_34340eab1ef9bee6/Python-3.12.1" "-D" "NDEBUG" "-D" "Py_BUILD_CORE" "-O3" "-Wformat" "-Wformat-security" "-Wformat" "-Wformat-security" "-Werror=implicit-function-declaration" "-w" "-std=c11" "-fdebug-compilation-dir=/Software/Python312/.src_34340eab1ef9bee6/Python-3.12.1" "-ferror-limit" "1" "-fvisibility=hidden" "-fwrapv" "-pthread" "-stack-protector" "1" "-stack-protector-buffer-size" "4" "-stack-protector-buffer-size" "4" "-fno-signed-char" "-fgnuc-version=4.2.1" "-vectorize-loops" "-vectorize-slp" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-x" "c" "token-7986e1.c"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment