Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 707
    • Issues 707
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPyPyPy
  • pypypypy
  • Issues
  • #3729
Closed
Open
Issue created Apr 27, 2022 by jkoan@jkoan

Multithreaded read on blocking IO emits RPython error

Reading blocking IO emits RPython error:

$ ./pypy3.9-v7.3.9-linux64/bin/pypy ./python_comminicate.py
RPython traceback:
  File "pypy_module__io_1.c", line 31711, in W_BufferedReader__read_generic
  File "pypy_module__io.c", line 27756, in W_BufferedReader__fill_buffer
  File "pypy_module__io.c", line 30419, in W_BufferedReader__raw_read
Fatal RPython error: AssertionError
Abgebrochen (core dumped)

Tested with:

  • pypy3.9-v7.3.9
  • pypy3.8-v7.3.7

(Minimal) Code Example:

import subprocess
import threading
process=subprocess.Popen("true", stdin=subprocess.PIPE,stdout=subprocess.PIPE)
threading.Timer(1, process.communicate).start()
while True:
    process.stdout.read(1)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking