Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI failure: Recursion while initializing class variables and/or constants #15029

Open
straight-shoota opened this issue Sep 24, 2024 · 0 comments
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:windows topic:stdlib:runtime

Comments

@straight-shoota
Copy link
Member

This random CI failure happened in x86_64-windows-test: https://github.com/crystal-lang/crystal/actions/runs/10741662759/job/29793143971

  1) IO::FileDescriptor opens STDERR in binary mode
     Failure/Error: io.to_s.should eq("foo\n")

       Expected: "foo\n"
            got: "Unhandled exception: Recursion while initializing class variables and/or constants (Exception)\n" +
       "  from src\\raise.cr:219 in 'raise'\n" +
       "  from src\\raise.cr:244 in 'raise'\n" +
       "  from src\\crystal\\once.cr:21 in 'once'\n" +
       "  from src\\crystal\\once.cr:50 in '__crystal_once'\n" +
       "  from src\\crystal\\system\\win32\\fiber.cr:11 in '__crystal_main'\n" +
       "  from src\\crystal\\main.cr:118 in 'main_user_code'\n" +
       "  from src\\crystal\\main.cr:104 in 'main'\n" +
       "  from src\\crystal\\main.cr:130 in 'main'\n" +
       "  from src\\crystal\\system\\win32\\wmain.cr:37 in 'wmain'\n" +
       "  from D:\\a\\_work\\1\\s\\src\\vctools\\crt\\vcstartup\\src\\startup\\exe_common.inl:288 in '__scrt_common_main_seh'\n" +
       "  from C:\\Windows\\System32\\KERNEL32.DLL +85168 in 'BaseThreadInitThunk'\n" +
       "  from C:\\Windows\\SYSTEM32\\ntdll.dll +519403 in 'RtlUserThreadStart'\n"

     # spec\std\io\file_descriptor_spec.cr:106

I haven't found any repeated occurences yet, so this might just be a fluke. But it seems like a very odd thing to fail and could indicate an issue in the initialization logic.

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:windows topic:stdlib:runtime labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:windows topic:stdlib:runtime
Projects
Status: No status
Development

No branches or pull requests

1 participant