Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
mu-client-pypy
mu-client-pypy
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 12
    • Issues 12
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • mu
  • mu-client-pypymu-client-pypy
  • Issues
  • #16

Closed
Open
Opened Aug 26, 2017 by John Zhang@u5157779
  • Report abuse
  • New issue
Report abuse New issue

PyPy-Holstein: execute subprocess.Popen failure

Problem Description

The compiled PyPy interpreter is having problem executing subprocess.Popen(). The function calls os.fork(), then os.execvp() in the child process. Though a second process is forked, the execution seems to halt and not making any progress after that (CPU usage become 0).

Following test exposes the problem:

def test_subproc():
    import sys
    import subprocess

    target = sys.executable
    proc = subprocess.Popen(['file', target],
                            stdout=subprocess.PIPE,
                            stderr=subprocess.STDOUT)
    output = proc.communicate()[0]
    print output
    
    rc = proc.wait()
    assert rc == 0
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
3
Labels
AoT PyPy Interp bug
Assign labels
  • View project labels
Reference: mu/mu-client-pypy#16