Git Product home page Git Product logo

Comments (7)

mihails-strasuns-sociomantic avatar mihails-strasuns-sociomantic commented on August 12, 2024 1

Closing for now, please reopen if issue still manifests with increased wait time

from turtle.

mihails-strasuns-sociomantic avatar mihails-strasuns-sociomantic commented on August 12, 2024

What happens if you send SIGABRT to your app manually (kill -6 <pid>)?

from turtle.

joseph-wakeling-sociomantic avatar joseph-wakeling-sociomantic commented on August 12, 2024

First attempts, it always seems to just abort immediately. But this is a very basic case where the app is not actually "busy" (I didn't set up a DHT for it to work with).

from turtle.

joseph-wakeling-sociomantic avatar joseph-wakeling-sociomantic commented on August 12, 2024

I've also tried issuing a SIGABRT to the tested app mid-integration-test-run, and again, it seems to shut down immediately.

BTW, the test suite has some special-casing to handle the fact that the app may wait up to 5 seconds for a task to complete. I tried removing this, and it doesn't seem to create any problems for the app to shut down.

That said, I don't think I've ever seen this failure in a local test run, only in CI.

from turtle.

nemanja-boric-sociomantic avatar nemanja-boric-sociomantic commented on August 12, 2024

I do wonder if the D2 runtime is blocking the signal dispatch while in GC cycle or something similar, where the application will not be able to react to SIGABRT.

from turtle.

nemanja-boric-sociomantic avatar nemanja-boric-sociomantic commented on August 12, 2024

Here's one such place where the all signals except the resume signal are masked:

https://github.com/dlang/druntime/blob/86cd40a036a67d9b1bff6c14e91cba1e5557b119/src/core/thread.d#L446-L456

from turtle.

mihails-strasuns-sociomantic avatar mihails-strasuns-sociomantic commented on August 12, 2024

Current guess is that because of that GC intervention default turtle wait time of 0.1 seconds is not enough. New #48 PR allows to configure final wait time from the test suite to be able to confirm this suspicion.

from turtle.

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.