Comments (3)
Hey @philr thanks for opening the issue. Have you been able to debug this at all? Would you be interested in digging into it if I can help get you started?
from rubinius.
Other than running strace to find it was stuck waiting on a futex, I've not done any debugging. I'm happy to run commands to capture some stack traces, process dumps, etc, but I don't really have the time to dig into this right now.
from rubinius.
@philr thanks again for opening the issue. A bit more explanation of the issue: recently I added the ability to tag nil
values so that locating where a nil value originated (which is often distant from where a NoMethodError
may be raised) would be possible. Unfortunately, this requires handling all equality checks for nil
in a special way. This was one of the checks that was missed.
Another change that I've been slowly making is to replace all "primitive" functions with proper instructions so that the semantics of a program can be fully understood by only looking at how source code is compiled to the instruction set. If this had already been completed, this sort of defect (ie missing a special check for nil
) wouldn't occur.
One other thing, what you observed in the strace was likely not be "stuck" in a futex, but repeatedly entering a futex because the naive implementation of CAS (compare and swap) simply loops optimistically expecting eventually to achieve the update operation, but that would never happen in the case of a tagged nil
. If a debugger had been available, it would likely have been very easy for you to identify this looping behavior. I've started work on a new console interface (ie replacement for IRB) that includes a debugging mode to make this easy.
from rubinius.
Related Issues (20)
- Workaround for Rubinius on Travis HOT 4
- Rubinius fails to compile with openssl 1.1.1 HOT 4
- Rubinius does not install gems binary in $PREFIX/bin and so bundle and pry are not available HOT 7
- SSL cert on rubinius.com is expired HOT 1
- Rubinius fails to build on Ubuntu 18.04 in GitHub Actions HOT 6
- Rubinius 4.12 failed to build on OS X Catalina HOT 4
- Rubinius fails to build on macOS in GitHub Actions HOT 15
- rubyc vs rubinius-x HOT 1
- Rubinius 5.0 fails to compile with clang 9.0.1 on Fedora
- How can i get a machine code using rubinius?
- llvm-config tbd file system argument mac
- about the sourcecode HOT 1
- Error on installing rbx-2 with rvm on wsl ubuntu 20.04 HOT 1
- error: implicit declaration of function 'rb_sys_fail_str' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
- Improvements to C code that can improvement robustness
- undefined method `to_sexp' on an instance of String. (NoMethodError)
- HTTPS certificate expired for https://rubinius.com HOT 5
- (non-issue) rubinius cache file rubinius-codedb-cache.bz2 is not a tape archive
- Error 'gettid' is missing exception specification 'throw()' when compiling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubinius.