I have been running into non-deterministic build failures on MacOS when compiling with the -debug flag. This seems to have started when I set the context.allocator in a test case but that is probably unrelated.
The compiler should build successfully with debug information
Current Behavior
There are non-deterministic failures that are occurring, and different ones each time. The ones I've seen are:
MDNode context does not match Module context!
!4393 = !DIDerivedType(tag: DW_TAG_typedeffish: Job 1, 'odin build . -debug' terminated by signal SIGSEGV (Address boundary error)
fish: Job 1, 'odin build . -debug' terminated by signal SIGSEGV (Address boundary error)
invalid base type
!4355 = !DIDerivedType(tag: DW_TAG_member, name: "less", file: !4348, baseType: !"fish: Job 1, 'odin build . -debug' terminated by signal SIGSEGV (Address boundary error)
also in some instances the compiler just hangs (deadlocked?)
Failure Information (for bugs)
I have not seen this on other files, so for the record this is the file producing the issue: (txt because github doesn't allow uploading .odin files)
day17.txt
Steps to Reproduce
odin build . -debug or odin test . -debug both cause the issue to occur
Context
I have been running into non-deterministic build failures on MacOS when compiling with the
-debug
flag. This seems to have started when I set thecontext.allocator
in a test case but that is probably unrelated.It also occasionally hangs
Odin report:
Expected Behavior
The compiler should build successfully with debug information
Current Behavior
There are non-deterministic failures that are occurring, and different ones each time. The ones I've seen are:
also in some instances the compiler just hangs (deadlocked?)
Failure Information (for bugs)
I have not seen this on other files, so for the record this is the file producing the issue: (txt because github doesn't allow uploading .odin files) day17.txt
Steps to Reproduce
odin build . -debug
orodin test . -debug
both cause the issue to occurFailure Logs
failure_1_backtrace.txt failure_2_backtrace.txt hang_backtrace.txt
Odin part of backtrace 1
Odin part of backtrace 2
Odin part of hang backtrace: