Gustavo Giráldez

Results 12 comments of Gustavo Giráldez

I tracked down this problem to be a memory corruption in LLVM type structures. I'm still not 100% sure how this is happening, but I have a theory (more below)....

> That array of elements ultimately goes to `LLVMStructSetBody`, but is copied, not stored: Interesting, that's one less reason to worry about then. Then I have no idea yet how...

I managed to get a pretty small test case that reproduces the issue consistently (at least in my machine running Ubuntu Linux with the release version of Crystal 1.12.1). What...

Small update: I built a compiler from source using the base Docker image and steps from the [distribution scripts](https://github.com/crystal-lang/distribution-scripts/blob/master/linux/Dockerfile) and I can reproduce the issue with it, consistently. Just using...

Yep, this is sort of abandoned, at least for the moment. Feel free to fork and extend if you find something useful.

Nice! I'd test if it works properly when the threads are in not idle (eg. in a tight loop doing some computation), as sleep already puts the thread in a...

BIG UPDATE: found the root of the problem and I think I understand why is happening, with 98% of certainty (I reserve the remaining 2% because it's late and I'm...

Damn... I wished I saw [this](https://github.com/crystal-lang/crystal/issues/12851) before I even started 😬 The CI is failing anyway, and maybe the reason is the same as the last time. Will investigate further.

> Ah, I assumed you were aware of that. 🙈 I had definitely mentioned there had been a previous attempt that looked nice but didn't work out. No worries. It...

> LGTM. I implemented the remaining suggestions in the comments and [sent a PR](https://github.com/manastech/slang/pull/1) against your branch. If you like the changes, we can merge it first before merging this...