Odin icon indicating copy to clipboard operation
Odin copied to clipboard

Compiler Segfault & Double Free

Open jon-lipstate opened this issue 2 years ago • 1 comments

Context

In the process of porting a library, I allowed a good number of errors to accrue before bothering to address them. I noticed that >20 errors (guessing) the compiler starts giving Segmentation fault and occasionally Double Free or corruption (out)\n Aborted . I was using odin build . to chase errors and clean them. An additional observation (unrelated (?) ) is that errors were ping ponging locations in the file, eg error on 343, error on 1052, next on 128, next on 744 and so forth.

Operating System & Odin Version:

  • Odin: dev-2023-04:0234f50d ( i think i have pulled since i had the errors, but likely exact build is within the last week)
  • OS: Windows 10 Professional (version: 22H2), build 19045.2728
  • CPU: AMD Ryzen 9 3950X 16-Core Processor
  • RAM: 32686 MiB

Failure Information (for bugs)

image image image

Please provide detailed steps for reproducing the issue.

I retained a copy of the files that still contains a good number of errors and was producing the error state for me here:

https://gist.github.com/jon-lipstate/4635994a86ff18863e3d0311353906aa

jon-lipstate avatar Apr 12 '23 03:04 jon-lipstate

Similar issue as this one: https://github.com/odin-lang/Odin/issues/3169 and should also be fixed by the latest error system overhaul

laytan avatar Apr 02 '24 22:04 laytan