Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cygwin: popen3 lock up #43419

Closed
jpsc986hj mannequin opened this issue May 26, 2006 · 6 comments
Closed

cygwin: popen3 lock up #43419

jpsc986hj mannequin opened this issue May 26, 2006 · 6 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@jpsc986hj
Copy link
Mannequin

jpsc986hj mannequin commented May 26, 2006

BPO 1495802
Files
  • unnamed
  • 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 = <Date 2011-06-02.10:03:11.925>
    created_at = <Date 2006-05-26.23:30:15.000>
    labels = ['invalid', 'type-bug', 'library']
    title = 'cygwin: popen3 lock up'
    updated_at = <Date 2011-06-02.10:03:11.923>
    user = 'https://bugs.python.org/jpsc986hj'

    bugs.python.org fields:

    activity = <Date 2011-06-02.10:03:11.923>
    actor = 'neologix'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-06-02.10:03:11.925>
    closer = 'neologix'
    components = ['Library (Lib)']
    creation = <Date 2006-05-26.23:30:15.000>
    creator = 'jpsc986_hj'
    dependencies = []
    files = ['18611']
    hgrepos = []
    issue_num = 1495802
    keywords = []
    message_count = 6.0
    messages = ['28660', '28661', '28662', '114666', '114718', '137470']
    nosy_count = 5.0
    nosy_names = ['nnorwitz', 'jpsc986_hj', 'jpham', 'neologix', 'BreamoreBoy']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1495802'
    versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

    @jpsc986hj
    Copy link
    Mannequin Author

    jpsc986hj mannequin commented May 26, 2006

    Look like I have similar problem with cygwin

    I do the followings

    si,so,se = os.popen3('make all')
    dresult = so.readlines()
    eresult = so.readlines()

    where make all does a build - and with tons of error
    on stderror. After x minutes, I can see the program
    to lock up.

    @jpsc986hj jpsc986hj mannequin added stdlib Python modules in the Lib dir labels May 26, 2006
    @nnorwitz
    Copy link
    Mannequin

    nnorwitz mannequin commented May 27, 2006

    Logged In: YES
    user_id=33168

    A similar problem to what?

    Can you provide any more info or help debug this problem? I
    don't have a windows box, so I can't begin to help with this.

    @jpsc986hj
    Copy link
    Mannequin Author

    jpsc986hj mannequin commented May 27, 2006

    Logged In: YES
    user_id=1356401

    Ooops - I make a typo

    it should be

       eresult = se.readlines()
    not 
        ersult = so.readlines()

    @devdanzin devdanzin mannequin added type-bug An unexpected behavior, bug, or error labels Mar 21, 2009
    @BreamoreBoy
    Copy link
    Mannequin

    BreamoreBoy mannequin commented Aug 22, 2010

    Any Cygwin/Windows people interested in this, or can it be closed?

    @jpham
    Copy link
    Mannequin

    jpham mannequin commented Aug 23, 2010

    last time I use - it is still a problem

    @neologix
    Copy link
    Mannequin

    neologix mannequin commented Jun 2, 2011

    It's not a bug.
    so.readlines reads the subprocess' stdout until EOF is encountered, but in the meantime, if it writes a lot to stderr, the corresponding pipe fills up, and the subprocess blocks on the write.
    You should use Popen's communicate method.

    Closing as invalid.

    @neologix neologix mannequin closed this as completed Jun 2, 2011
    @neologix neologix mannequin added the invalid label Jun 2, 2011
    @neologix neologix mannequin closed this as completed Jun 2, 2011
    @neologix neologix mannequin added the invalid label Jun 2, 2011
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants