Giter Site home page Giter Site logo

Comments (3)

brixen avatar brixen commented on June 9, 2024

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.

philr avatar philr commented on June 9, 2024

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.

brixen avatar brixen commented on June 9, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.