Skip to content

xml find stucks if invoked via io.popen #115

Closed

Description

@pierisimone

Hi, I have a ruby program (prova5.rb) that contains a xml find. I use libxml-ruby gem.
With Ruby 2.1.8 I have no problem, even if I execute it via "ruby prova5.rb" than if I execute it via io.popen in prova2.rb.

In a 2.2.4 environment I have success if I execute "ruby prova5.rb", but xml find stucks if I execute it via prova2.rb (io-popen).

I attach prova5.rb, prova2.rb out218.txt and out224.txt.

Same problem in all ruby 2.2 versions.
out218.txt
out224.txt

prova2.rb.txt
prova5.rb.txt

Activity

  1. blackwinter commented on Jan 5, 2016

    @blackwinter
    Contributor

    Associated Ruby issue: #11909.

    Related libxml-ruby issue: #109 (executing test.rb via IO.popen exhibits the same problem).

  2. cfis commented on Jun 11, 2016

    @cfis
    Member

    So I could not reproduce this. But if you still have the issue, turn off buffering on the ruby io objects. STDOUT.sync = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions