Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Calling threadpool_info in cython parallel block may cause a deadlock

オープン
#27 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
backend

調査の方向性

The report shows a Cython nogil parallel block calling threadpool_info() under the GIL, and says the behavior may depend on multiple OpenMP runtimes. Start by checking how threadpool_info() inspects loaded thread pools and how the project handles OpenMP calls from parallel regions. Done means reproducing the deadlock and establishing whether this usage is supported or needs a documented limitation.

索引モデルが issue の本文から書いたものです。

説明

When there are multiple OpenMP loaded. Replacing 0 by any other thread_num (below) can cause the issue.

with nogil, parallel():
    if openmp.omp_get_thread_num() == 0:
        with gil:
            threadpool_info()

I'm not sure if it's a real issue. It means that trying to control the number of inner threads independently in each outer threads is a bad idea. But I think it's not the purpose of threadpoolctl.

主要言語
Python
スター
434
フォーク
38
平均マージ
2日 14時間
マージ済み PR(30日)
8

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

joblib/threadpoolctl のほかの issue

joblib/threadpoolctl の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。