python / python/cpython

multiprocessing Queue leaks a file descriptor associated with the pipe writer (#33081 still a problem)

Đang mở
#86,918 8 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

3.10 3.7 (EOL) 3.8 (EOL) 3.9 (EOL) stdlib topic-multiprocessing type-bug
Ngôn ngữ chính
Python
Star
77.2k
Fork
36k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

BPO 42752
Nosy @pitrou, @mattip, @graingert, @applio
Files
  • test_queue.py
  • queue_close_write.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 = None
    closed_at = None
    created_at = <Date 2020-12-26.23:03:41.032>
    labels = ['3.8', '3.9', '3.10', 'performance', '3.7', 'library']
    title = 'multiprocessing Queue leaks a file descriptor associated with the pipe writer (#33081 still a problem)'
    updated_at = <Date 2022-02-21.11:50:18.407>
    user = 'https://bugs.python.org/crazycasta'
    

    bugs.python.org fields:

    activity = <Date 2022-02-21.11:50:18.407>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-12-26.23:03:41.032>
    creator = 'crazycasta'
    dependencies = []
    files = ['49701', '49713']
    hgrepos = []
    issue_num = 42752
    keywords = ['patch']
    message_count = 5.0
    messages = ['383832', '384149', '384151', '384737', '388632']
    nosy_count = 5.0
    nosy_names = ['pitrou', 'mattip', 'graingert', 'crazycasta', 'davin']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue42752'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']
    

    Linked PRs
    • gh-112900

    Hướng dẫn đóng góp

    Mở hướng dẫn đóng góp

    Bắt đầu từ đâu

    1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
    2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
    3. Fork repository và làm thay đổi trên một nhánh.
    4. Mở pull request có tham chiếu số hiệu của issue.

    Hướng nghiên cứu

    Bắt đầu với test_queue.py và queue_close_write.patch đã được tải lên, sau đó kiểm tra hành vi của pipe-writer trong multiprocessing Queue liên quan đến việc dọn dẹp file descriptor. Chạy bài kiểm tra Queue được cung cấp và so sánh hành vi hiện tại với PR được liên kết gh-112900. Được xem là hoàn tất khi reproducer không còn cho thấy pipe-writer descriptor bị rò rỉ và các bài kiểm tra liên quan đều đạt.

    Do mô hình lập chỉ mục viết ra từ nội dung của issue.

    Đánh giá

    Công nghệ
    python
    Lĩnh vực
    operating-systems
    Loại issue
    Lỗi
    Độ khó
    4/5
    Thời gian dự kiến
    3-5 ngày
    Mức độ hoạt động
    Đình trệ
    Độ rõ ràng
    Khá rõ ràng
    Mức phù hợp với người mới
    25/100

    Nhận issue mới trong hộp thư của bạn

    Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.