Skip to content

PyGILState_Ensure on non-Python thread causes fatal error #65090

Description

@zooba
BPO20891
Nosy@gvanrossum, @warsaw, @ncoghlan, @pitrou, @vstinner, @ericsnowcurrently, @zooba
PRs
  • bpo-20891: Fix PyGILState_Ensure() #4650
  • [3.6] bpo-20891: Fix PyGILState_Ensure() (#4650) #4655
  • [2.7] bpo-20891: Fix PyGILState_Ensure() (#4650) #4657
  • bpo-20891: Py_Initialize() now creates the GIL #4700
  • bpo-20891: Skip test_embed.test_bpo20891() #4967
  • [3.6] bpo-20891: Skip test_embed.test_bpo20891() (#4967) #4969
  • bpo-20891: Reenable test_embed.test_bpo20891() #5420
  • [3.6] bpo-20891: Py_Initialize() now creates the GIL (#4700) #5421
  • [3.6] bpo-20891: Remove test_capi.test_bpo20891() #5425
  • Files
  • test.c
  • ptest.c
  • PyGILState_Ensure.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee=Noneclosed_at=<Date2018-01-29.13:07:27.074>created_at=<Date2014-03-11.18:40:13.148>labels= ['extension-modules', '3.7']
    title='PyGILState_Ensure on non-Python thread causes fatal error'updated_at=<Date2018-01-29.15:35:52.778>user='https://github.com/zooba'

    bugs.python.org fields:

    activity=<Date2018-01-29.15:35:52.778>actor='vstinner'assignee='none'closed=Trueclosed_date=<Date2018-01-29.13:07:27.074>closer='vstinner'components= ['Extension Modules']
    creation=<Date2014-03-11.18:40:13.148>creator='steve.dower'dependencies= []
    files= ['34358', '42173', '42174']
    hgrepos= []
    issue_num=20891keywords= ['patch']
    message_count=31.0messages= ['213160', '213161', '213398', '261820', '261821', '307038', '307330', '307331', '307342', '307349', '307350', '307351', '307550', '307551', '307552', '307553', '307554', '307571', '307583', '307586', '307628', '308588', '308914', '308917', '311090', '311091', '311095', '311099', '311124', '311125', '311143']
    nosy_count=10.0nosy_names= ['gvanrossum', 'barry', 'ncoghlan', 'pitrou', 'vstinner', 'Mekk', 'kchen', 'eric.snow', 'steve.dower', 'xcombelle']
    pr_nums= ['4650', '4655', '4657', '4700', '4967', '4969', '5420', '5421', '5425']
    priority='normal'resolution='fixed'stage='resolved'status='closed'superseder=Nonetype=Noneurl='https://bugs.python.org/issue20891'versions= ['Python 2.7', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions