Coder Social home page Coder Social logo

Comments (3)

colesbury avatar colesbury commented on June 24, 2024 2

Yeah, this function is not thread-safe. We need to figure out what to do about it.

More precisely, the call sys._current_frames() is okay, but accessing other thread's frames while they are running is not thread-safe without the GIL.

from cpython.

savannahostrowski avatar savannahostrowski commented on June 24, 2024

I can't reproduce the crash on a Mac (M3 Pro), in case that's helpful!

from cpython.

erlend-aasland avatar erlend-aasland commented on June 24, 2024

I can repro on a MacBook Pro (M1), using ./configure --disable-gil --with-pydebug && make:

$ ./python.exe ./crash.py
Assertion failed: (frame->frame_obj == NULL), function _PyFrame_MakeAndSetFrameObject, file frame.c, line 48.
[1]    27564 abort      ./python.exe ./crash.py
$ ./python.exe -VV
Python 3.13.0a6+ (heads/main-dirty:d3c7821335, May  7 2024, 09:27:50) [Clang 15.0.0 (clang-1500.3.9.4)]
$ ./python.exe -c "import sys; print(sys._is_gil_enabled())"
False

from cpython.

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.