Skip to contentSkip to conversation

broken HMP command: info mtree

Qemu-devel Igor Mammedov 3 participants 6 messages Feb 11, 2016 – Feb 12, 2016

lore
Share & tools
lore
#0 lore raw

executing 'info mtree' from monitor prompt causes infinite loop printing it over and over.

to reproduce build current master adn run:

qemu-system-x86_64 -monitor stdio

and then execute 'info mtree' in monitor prompt

#1 lore raw
Quoted 9 lines · On Thu, 11 Feb 2016 16:35:39 +0100 Igor Mammedov <[email protected]> wrote:

executing 'info mtree' from monitor prompt causes infinite loop printing it over and over.

to reproduce build current master adn run:

qemu-system-x86_64 -monitor stdio

and then execute 'info mtree' in monitor prompt

it bisects to:

commit 9894dc0cdcc397ee5b26370bc53da6d360a363c2

Author: Daniel P. Berrange <[email protected]>
Date:   Tue Jan 19 11:14:29 2016 +0000

char: convert from GIOChannel to QIOChannel

In preparation for introducing TLS support to the TCP chardev backend, convert existing chardev code from using GIOChannel to QIOChannel. This simplifies the chardev code by removing most of the OS platform conditional code for dealing with file descriptor passing.

Message-Id: <[email protected]>

build with:
./configure --target-list=x86_64-softmmu --enable-debug on RHEL72ish host

monitor output has to be stdio

#2 lore raw
Quoted 29 lines · Igor Mammedov
Quoted 9 lines · On Thu, 11 Feb 2016 16:35:39 +0100 Igor Mammedov <[email protected]> wrote:

executing 'info mtree' from monitor prompt causes infinite loop printing it over and over.

to reproduce build current master adn run:

qemu-system-x86_64 -monitor stdio

and then execute 'info mtree' in monitor prompt

it bisects to:

commit 9894dc0cdcc397ee5b26370bc53da6d360a363c2

Author: Daniel P. Berrange <[email protected]>
Date:   Tue Jan 19 11:14:29 2016 +0000

char: convert from GIOChannel to QIOChannel

In preparation for introducing TLS support to the TCP chardev backend, convert existing chardev code from using GIOChannel to QIOChannel. This simplifies the chardev code by removing most of the OS platform conditional code for dealing with file descriptor passing.

Message-Id: <[email protected]>

Quoted 8 lines

build with:
./configure --target-list=x86_64-softmmu --enable-debug on RHEL72ish host

monitor output has to be stdio

Sigh, so much pain from the chardev code. I'll investigate and send a suitable patch asap.

Regards,
Daniel

Signature · 4 lines
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|
#3 lore raw
Quoted 32 lines · Daniel P. Berrange
Quoted 31 lines · Igor Mammedov
Quoted 8 lines · On Thu, 11 Feb 2016 16:35:39 +0100 Igor Mammedov <[email protected]> wrote:

executing 'info mtree' from monitor prompt causes infinite loop printing it over and over.

to reproduce build current master adn run:

qemu-system-x86_64 -monitor stdio

and then execute 'info mtree' in monitor prompt

it bisects to:

commit 9894dc0cdcc397ee5b26370bc53da6d360a363c2

Author: Daniel P. Berrange <[email protected]>
Date:   Tue Jan 19 11:14:29 2016 +0000

char: convert from GIOChannel to QIOChannel

In preparation for introducing TLS support to the TCP chardev backend, convert existing chardev code from using GIOChannel to QIOChannel. This simplifies the chardev code by removing most of the OS platform conditional code for dealing with file descriptor passing.

Message-Id: <[email protected]>

Quoted 8 lines
Quoted 5 lines

build with:
./configure --target-list=x86_64-softmmu --enable-debug on RHEL72ish host

monitor output has to be stdio

Sigh, so much pain from the chardev code. I'll investigate and send a suitable patch asap.

Hmm, I cannot reproduce this though.

Paolo

#4 lore raw
Quoted 37 lines · On Fri, 12 Feb 2016 14:08:32 +0100 Paolo Bonzini <[email protected]> wrote:
Quoted 36 lines · Daniel P. Berrange
Quoted 35 lines · Igor Mammedov
Quoted 8 lines · On Thu, 11 Feb 2016 16:35:39 +0100 Igor Mammedov <[email protected]> wrote:

executing 'info mtree' from monitor prompt causes infinite loop printing it over and over.

to reproduce build current master adn run:

qemu-system-x86_64 -monitor stdio

and then execute 'info mtree' in monitor prompt

it bisects to:

commit 9894dc0cdcc397ee5b26370bc53da6d360a363c2

Author: Daniel P. Berrange <[email protected]>
Date:   Tue Jan 19 11:14:29 2016 +0000

char: convert from GIOChannel to QIOChannel

In preparation for introducing TLS support to the TCP chardev backend, convert existing chardev code from using GIOChannel to QIOChannel. This simplifies the chardev code by removing most of the OS platform conditional code for dealing with file descriptor passing.

Message-Id: <[email protected]>

build with:
./configure --target-list=x86_64-softmmu --enable-debug on RHEL72ish host

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

monitor output has to be stdio

Sigh, so much pain from the chardev code. I'll investigate and send a suitable patch asap.

Hmm, I cannot reproduce this though.

Perhaps I'm affected because my stdout goes via remote ssh session.

It looks like monitor tries to flush buffer but succeeds only partially and returns with EAGAIN and on the next flush attempt it tries to flush the same buffer again from the first byte again

Quoted 3 lines

Paolo

#5 lore raw
Quoted 45 lines · Igor Mammedov
Quoted 42 lines · On Fri, 12 Feb 2016 14:08:32 +0100 Paolo Bonzini <[email protected]> wrote:
Quoted 40 lines · Daniel P. Berrange
Quoted 28 lines · Igor Mammedov
Quoted 8 lines · On Thu, 11 Feb 2016 16:35:39 +0100 Igor Mammedov <[email protected]> wrote:

executing 'info mtree' from monitor prompt causes infinite loop printing it over and over.

to reproduce build current master adn run:

qemu-system-x86_64 -monitor stdio

and then execute 'info mtree' in monitor prompt

it bisects to:

commit 9894dc0cdcc397ee5b26370bc53da6d360a363c2

Author: Daniel P. Berrange <[email protected]>
Date:   Tue Jan 19 11:14:29 2016 +0000

char: convert from GIOChannel to QIOChannel

In preparation for introducing TLS support to the TCP chardev backend, convert existing chardev code from using GIOChannel to QIOChannel. This simplifies the chardev code by removing most of the OS platform conditional code for dealing with file descriptor passing.

Message-Id: <[email protected]>

Quoted 8 lines

build with:
./configure --target-list=x86_64-softmmu --enable-debug on RHEL72ish host

monitor output has to be stdio

Sigh, so much pain from the chardev code. I'll investigate and send a suitable patch asap.

Quoted 6 lines
Quoted 1 line

Hmm, I cannot reproduce this though.

Perhaps I'm affected because my stdout goes via remote ssh session.

It looks like monitor tries to flush buffer but succeeds only partially and returns with EAGAIN and on the next flush attempt it tries to flush the same buffer again from the first byte again

Yes, it turned out to need a moderately slow console like a distant ssh connection to trigger the EGAIN situation. I've just sent a patch.

Regards,
Daniel

Signature · 4 lines
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|