Skip to content

Instantly share code, notes, and snippets.

@heimskr
Created December 15, 2021 00:18
Show Gist options
  • Save heimskr/6b3e3dbbdf2485772a05861661975ec3 to your computer and use it in GitHub Desktop.
Save heimskr/6b3e3dbbdf2485772a05861661975ec3 to your computer and use it in GitHub Desktop.
# Crash reproducer for Lemon clang version 13.0.0 (https://github.com/LemonOSProject/llvm-project.git 841704471e60b2d2a8a56c2050abd3047a1a21be)
# Driver args: "--driver-mode=g++" "-I" "Kernel/kernel.sys.p" "-I" "Kernel/" "-I" "../Kernel" "-I" "../Kernel/include" "-I" "../Kernel/include/Arch/x86_64" "-I" "../subprojects/lai/include" "-I" "../subprojects/frigg/include" "-I" "../subprojects/cxxshim/stage2/include" "-Xclang" "-fcolor-diagnostics" "-pipe" "-D" "_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-Wnon-virtual-dtor" "-Wextra" "-Werror" "-std=c++2a" "-g" "-msse3" "-mssse3" "-msse4.1" "-msse4.2" "-mpopcnt" "-mcx16" "-msahf" "-Wno-write-strings" "-Wno-unused-parameter" "-Wno-sign-compare" "-D" "Lemon64" "-ffreestanding" "-nostdlib" "-mcmodel=large" "-mno-red-zone" "-fno-pic" "-mno-mmx" "-mno-sse" "-mno-sse2" "-fno-stack-protector" "-fno-builtin" "-finline-functions" "-fno-exceptions" "-fno-rtti" "-Wno-deprecated-volatile" "-Wno-non-c-typedef-for-linkage" "-MD" "-MQ" "Kernel/kernel.sys.p/src_Objects_Process.cpp.o" "-MF" "Kernel/kernel.sys.p/src_Objects_Process.cpp.o.d" "-o" "Kernel/kernel.sys.p/src_Objects_Process.cpp.o" "-c" "../Kernel/src/Objects/Process.cpp"
# Original command: "/home/kai/.local/share/lemon/bin/clang-13" "-cc1" "-triple" "x86_64-unknown-lemon" "-emit-obj" "-mrelax-all" "--mrelax-relocations" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "Process.cpp" "-mrelocation-model" "static" "-mframe-pointer=all" "-fmath-errno" "-fno-rounding-math" "-mconstructor-aliases" "-ffreestanding" "-mcmodel=large" "-target-cpu" "x86-64" "-target-feature" "+sse3" "-target-feature" "+ssse3" "-target-feature" "+sse4.1" "-target-feature" "+sse4.2" "-target-feature" "+popcnt" "-target-feature" "+cx16" "-target-feature" "+sahf" "-target-feature" "-mmx" "-target-feature" "-sse" "-target-feature" "-sse2" "-disable-red-zone" "-tune-cpu" "generic" "-debug-info-kind=constructor" "-dwarf-version=4" "-debugger-tuning=gdb" "-fcoverage-compilation-dir=/home/kai/src/LemonOS/Build" "-resource-dir" "/home/kai/.local/share/lemon/lib/clang/13.0.0" "-dependency-file" "Kernel/kernel.sys.p/src_Objects_Process.cpp.o.d" "-MT" "Kernel/kernel.sys.p/src_Objects_Process.cpp.o" "-sys-header-deps" "-I" "Kernel/kernel.sys.p" "-I" "Kernel/" "-I" "../Kernel" "-I" "../Kernel/include" "-I" "../Kernel/include/Arch/x86_64" "-I" "../subprojects/lai/include" "-I" "../subprojects/frigg/include" "-I" "../subprojects/cxxshim/stage2/include" "-D" "_FILE_OFFSET_BITS=64" "-D" "Lemon64" "-isysroot" "/home/kai/.local/share/lemon/sysroot" "-internal-isystem" "/home/kai/.local/share/lemon/sysroot/system/include/c++/v1" "-internal-isystem" "/home/kai/.local/share/lemon/bin/../include/c++/v1" "-internal-isystem" "/home/kai/.local/share/lemon/bin/../include/x86_64-unknown-lemon/c++/v1" "-Wall" "-Winvalid-pch" "-Wnon-virtual-dtor" "-Wextra" "-Werror" "-Wno-write-strings" "-Wno-unused-parameter" "-Wno-sign-compare" "-Wno-deprecated-volatile" "-Wno-non-c-typedef-for-linkage" "-std=c++2a" "-fdeprecated-macro" "-fdebug-compilation-dir=/home/kai/src/LemonOS/Build" "-ferror-limit" "19" "-fno-builtin" "-fno-rtti" "-fgnuc-version=4.2.1" "-finline-functions" "-fno-implicit-modules" "-fcolor-diagnostics" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "Kernel/kernel.sys.p/src_Objects_Process.cpp.o" "-x" "c++" "../Kernel/src/Objects/Process.cpp"
"/home/kai/.local/share/lemon/bin/clang-13" "-cc1" "-triple" "x86_64-unknown-lemon" "-emit-obj" "-mrelax-all" "--mrelax-relocations" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "Process.cpp" "-mrelocation-model" "static" "-mframe-pointer=all" "-fmath-errno" "-fno-rounding-math" "-mconstructor-aliases" "-ffreestanding" "-mcmodel=large" "-target-cpu" "x86-64" "-target-feature" "+sse3" "-target-feature" "+ssse3" "-target-feature" "+sse4.1" "-target-feature" "+sse4.2" "-target-feature" "+popcnt" "-target-feature" "+cx16" "-target-feature" "+sahf" "-target-feature" "-mmx" "-target-feature" "-sse" "-target-feature" "-sse2" "-disable-red-zone" "-tune-cpu" "generic" "-debug-info-kind=constructor" "-dwarf-version=4" "-debugger-tuning=gdb" "-fcoverage-compilation-dir=/home/kai/src/LemonOS/Build" "-sys-header-deps" "-D" "_FILE_OFFSET_BITS=64" "-D" "Lemon64" "-Wall" "-Winvalid-pch" "-Wnon-virtual-dtor" "-Wextra" "-Werror" "-Wno-write-strings" "-Wno-unused-parameter" "-Wno-sign-compare" "-Wno-deprecated-volatile" "-Wno-non-c-typedef-for-linkage" "-std=c++2a" "-fdeprecated-macro" "-fdebug-compilation-dir=/home/kai/src/LemonOS/Build" "-ferror-limit" "19" "-fno-builtin" "-fno-rtti" "-fgnuc-version=4.2.1" "-finline-functions" "-fno-implicit-modules" "-fcolor-diagnostics" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-x" "c++" "Process-73debd.cpp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment