GithubHelp home page GithubHelp logo

Comments (4)

ivmai avatar ivmai commented on June 11, 2024

Reproduced locally: ./configure --enable-gc-assertions --disable-shared && make -j check CFLAGS_EXTRA="-O0 -g -D _FORTIFY_SOURCE=2 -D FIND_LEAK -D SKIP_LEAKED_OBJECTS_PRINTING"
Output:
Signals delivery fails constantly at GC #1

from bdwgc.

ivmai avatar ivmai commented on June 11, 2024

The scenario of the failure (on Linux):

  • Find-leak mode is on
  • pthread_create/join primitives are not redirected
  • GC is initialized from a thread other than primordial
  • that thread is terminated (but not unregistered as the 1st one in GC)
  • the primordial thread exits and launches GC_exit_check
  • GC_gcollect tries to suspend the terminated thread by sending a signal
  • the signal is not delivered but pthread_kill just returns zero
  • the signal sending is retried until aborting with the proper message.

The proposed solution (workaround) is not to call GC_gcollect at the process exit (in the find-leak mode) if GC_init was called from a thread other than primordial one.

from bdwgc.

ivmai avatar ivmai commented on June 11, 2024

the signal is not delivered but pthread_kill just returns zero

Such behavior is first observed on Ubuntu 22.04 (Jammy) x64.

from bdwgc.

ivmai avatar ivmai commented on June 11, 2024

The solution should also solve #533 (because no need to modify GC_in_thread_creation inside GC_exit_check).

from bdwgc.

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.