odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.55k stars 570 forks source link

Compiler Segfault & Double Free #2454

Closed jon-lipstate closed 3 months ago

jon-lipstate commented 1 year ago

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:

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

laytan commented 5 months ago

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