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

Occasional memory corruption in the interpreter #12528

Open
straight-shoota opened this issue Sep 27, 2022 · 2 comments
Open

Occasional memory corruption in the interpreter #12528

straight-shoota opened this issue Sep 27, 2022 · 2 comments
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter

Comments

@straight-shoota
Copy link
Member

The CI job for testing the interpreter occasionally fails with an invalid memory access. Example: https://github.com/crystal-lang/crystal/actions/runs/3128470721/jobs/5076354940

Invalid memory access (signal 11) at address 0x8
  [0x560cf663c2b6] ?? +94613673329334 in /mnt/.build/crystal
  [0x560cf663c27d] ?? +94613673329277 in /mnt/.build/crystal
  [0x7f2347ded420] ?? +139789506368544 in /lib/x86_64-linux-gnu/libpthread.so.0
  [0x560cf6302b97] ?? +94613669948311 in /mnt/.build/crystal
  [0x560cf60c4ec5] ?? +94613667598021 in /mnt/.build/crystal
  [0x560cf670aaaa] ?? +94613674175146 in /mnt/.build/crystal
  [0x7f2347d75e06] ?? +139789505879558 in /lib/x86_64-linux-gnu/libffi.so.7
  [0x7f2347d76188] ?? +139789505880456 in /lib/x86_64-linux-gnu/libffi.so.7
  [0x560cf675c031] GC_inner_start_routine +81 in /mnt/.build/crystal
  [0x560cf6753c63] GC_call_with_stack_base +19 in /mnt/.build/crystal
  [0x7f2347de1609] ?? +139789506319881 in /lib/x86_64-linux-gnu/libpthread.so.0
  [0x7f2347c81133] clone +67 in /lib/x86_64-linux-gnu/libc.so.6
  [0x0] ???

The failure does not reproduce consistently.

I think it first appeared roughly together with #12495 which made it look like different symptom of the same bug. But it was not fixed by #12496 which completely reset the effects of #12456 (which caused problems in the interpreter).
So it's most likely a different problem. But it might be related. The very similar stack trace suggests that (it's not repeating, though).

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter labels Sep 27, 2022
@asterite
Copy link
Member

It would be nice to run interpreter specs with -v to see which spec is failing.

@straight-shoota
Copy link
Member Author

straight-shoota commented Sep 27, 2022

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. topic:compiler:interpreter
Projects
None yet
Development

No branches or pull requests

2 participants