Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 650
    • Issues 650
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPy
  • pypypypy
  • Issues
  • #3729

Closed
Open
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