Debian Bug report logs - #549195
bad terminal state after -daemonize -nographic

version graph

Package: qemu; Maintainer for qemu is Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>; Source for qemu is src:qemu (PTS, buildd, popcon).

Affects: qemu-kvm

Reported by: Christoph Egger <debian@christoph-egger.org>

Date: Thu, 1 Oct 2009 11:57:01 UTC

Severity: normal

Tags: confirmed, fixed-upstream, patch, upstream

Found in versions qemu/0.10.6-1, qemu/1.1.0+dfsg-1

Fixed in version 1.4.0~rc0+dfsg-1exp

Done: Michael Tokarev <mjt@tls.msk.ru>

Bug is archived. No further changes may be made.

Forwarded to https://bugs.launchpad.net/qemu/+bug/1024275

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>:
Bug#549195; Package qemu. (Thu, 01 Oct 2009 11:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to Christoph Egger <debian@christoph-egger.org>:
New Bug report received and forwarded. Copy sent to Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>. (Thu, 01 Oct 2009 11:57:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Christoph Egger <debian@christoph-egger.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: sudo not working on terminal after launch of qemu
Date: Thu, 1 Oct 2009 12:56:30 +0200
[Message part 1 (text/plain, inline)]
Package: qemu
Version: 0.10.6-1
Severity: normal

Hi all!

	After launching qemu the terminal starting qemu does not work with
sudo any more, seems something of the hidden input part does not
receive any input any more (at least pressing return does not cause
any reaction).

	This happends independent from the way qemu was launched, e.g.
backgrounding with &, using -daemonize or just shutting down the
guest.

Regards

	Christoph

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable'), (400, 'unstable'), (100, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages qemu depends on:
ii  bochsbios              2.4.1-2           BIOS for the Bochs emulator
ii  libasound2             1.0.21a-1         shared library for ALSA applicatio
ii  libbluetooth3          4.42-2            Library to use the BlueZ Linux Blu
ii  libc6                  2.9-25            GNU C Library: Shared libraries
ii  libesd0                0.2.41-5          Enlightened Sound Daemon - Shared 
ii  libgnutls26            2.8.3-3           the GNU TLS library - runtime libr
ii  libncurses5            5.7+20090803-2    shared libraries for terminal hand
ii  libpulse0              0.9.15-4.1        PulseAudio client libraries
ii  libsdl1.2debian        1.2.13-4+b1       Simple DirectMedia Layer
ii  libvdeplug2            2.2.3-3           Virtual Distributed Ethernet - Plu
ii  libx11-6               2:1.2.2-1         X11 client-side library
ii  openbios-ppc           1.0-3             PowerPC Open Firmware
ii  openbios-sparc         1.0-1             SPARC Open Firmware
ii  openhackware           0.4.1-4           OpenFirmware emulator for PowerPC
ii  vgabios                0.6c-1            VGA BIOS software for the Bochs an
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

Versions of packages qemu recommends:
ii  debootstrap                   1.0.19     Bootstrap a basic Debian system
ii  sharutils                     1:4.6.3-3  shar, unshar, uuencode, uudecode
ii  vde2                          2.2.3-3    Virtual Distributed Ethernet

Versions of packages qemu suggests:
ii  kqemu-source                1.4.0~pre1-3 Source for the QEMU Accelerator mo
ii  samba                       2:3.3.4-1    SMB/CIFS file, print, and login se
ii  sudo                        1.7.2p1-1    Provide limited super user privile

-- no debconf information

-- 
/"\  ASCII Ribbon : GPG-Key ID: 0x0372275D
\ /    Campaign   : GPG 4096R : 0xD49AE731
 X   against HTML : Debian NM
/ \   in eMails   : http://www.debian.org/

http://www.christoph-egger.org/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>:
Bug#549195; Package qemu. (Thu, 01 Oct 2009 13:03:11 GMT) (full text, mbox, link).


Acknowledgement sent to Aurelien Jarno <aurelien@aurel32.net>:
Extra info received and forwarded to list. Copy sent to Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>. (Thu, 01 Oct 2009 13:03:11 GMT) (full text, mbox, link).


Message #10 received at 549195@bugs.debian.org (full text, mbox, reply):

From: Aurelien Jarno <aurelien@aurel32.net>
To: Christoph Egger <debian@christoph-egger.org>, 549195@bugs.debian.org
Subject: Re: Bug#549195: sudo not working on terminal after launch of qemu
Date: Thu, 01 Oct 2009 14:46:31 +0200
Christoph Egger a écrit :
> Package: qemu
> Version: 0.10.6-1
> Severity: normal
> 
> Hi all!

Hi,

> 	After launching qemu the terminal starting qemu does not work with
> sudo any more, seems something of the hidden input part does not
> receive any input any more (at least pressing return does not cause
> any reaction).
> 
> 	This happends independent from the way qemu was launched, e.g.
> backgrounding with &, using -daemonize or just shutting down the
> guest.
> 

This is not reproducible here. Could you please give us the command line
you are using to start qemu?

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net




Information stored :
Bug#549195; Package qemu. (Thu, 01 Oct 2009 13:21:08 GMT) (full text, mbox, link).


Acknowledgement sent to Christoph Egger <debian@christoph-egger.org>:
Extra info received and filed, but not forwarded. (Thu, 01 Oct 2009 13:21:08 GMT) (full text, mbox, link).


Message #15 received at 549195-quiet@bugs.debian.org (full text, mbox, reply):

From: Christoph Egger <debian@christoph-egger.org>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: 549195-quiet@bugs.debian.org
Subject: Re: Bug#549195: sudo not working on terminal after launch of qemu
Date: Thu, 1 Oct 2009 15:06:59 +0200
[Message part 1 (text/plain, inline)]
On Thu, Oct 01, 2009 at 02:46:31PM +0200, Aurelien Jarno wrote:
> Christoph Egger a écrit :
> > Package: qemu
> > Version: 0.10.6-1
> > Severity: normal
> > 
> > Hi all!
> 
> Hi,
> 
> > 	After launching qemu the terminal starting qemu does not work with
> > sudo any more, seems something of the hidden input part does not
> > receive any input any more (at least pressing return does not cause
> > any reaction).
> > 
> > 	This happends independent from the way qemu was launched, e.g.
> > backgrounding with &, using -daemonize or just shutting down the
> > guest.
> > 
> 
> This is not reproducible here. Could you please give us the command line
> you are using to start qemu?

 qemu -kernel-kqemu -hda /media/extern/freeart/kfreebsd.img -daemonize -redir tcp:1922::22 -nographic
 % ssh root@localhost
 root@localhost's password:

And here it hangs, No reaction on, at least, the return
character. Same for sudo but ssh was easier as sudo password is cached
for some time.


> -- 
> Aurelien Jarno                          GPG: 1024D/F1BCDB73
> aurelien@aurel32.net                 http://www.aurel32.net

-- 
/"\  ASCII Ribbon : GPG-Key ID: 0x0372275D
\ /    Campaign   : GPG 4096R : 0xD49AE731
 X   against HTML : Debian NM
/ \   in eMails   : http://www.debian.org/

http://www.christoph-egger.org/
[signature.asc (application/pgp-signature, inline)]

Information stored :
Bug#549195; Package qemu. (Thu, 01 Oct 2009 13:30:11 GMT) (full text, mbox, link).


Acknowledgement sent to Aurelien Jarno <aurelien@aurel32.net>:
Extra info received and filed, but not forwarded. (Thu, 01 Oct 2009 13:30:12 GMT) (full text, mbox, link).


Message #20 received at 549195-quiet@bugs.debian.org (full text, mbox, reply):

From: Aurelien Jarno <aurelien@aurel32.net>
To: Christoph Egger <debian@christoph-egger.org>
Cc: 549195-quiet@bugs.debian.org
Subject: Re: Bug#549195: sudo not working on terminal after launch of qemu
Date: Thu, 01 Oct 2009 15:10:55 +0200
Christoph Egger a écrit :
> On Thu, Oct 01, 2009 at 02:46:31PM +0200, Aurelien Jarno wrote:
>> Christoph Egger a écrit :
>>> Package: qemu
>>> Version: 0.10.6-1
>>> Severity: normal
>>>
>>> Hi all!
>> Hi,
>>
>>> 	After launching qemu the terminal starting qemu does not work with
>>> sudo any more, seems something of the hidden input part does not
>>> receive any input any more (at least pressing return does not cause
>>> any reaction).
>>>
>>> 	This happends independent from the way qemu was launched, e.g.
>>> backgrounding with &, using -daemonize or just shutting down the
>>> guest.
>>>
>> This is not reproducible here. Could you please give us the command line
>> you are using to start qemu?
> 
>  qemu -kernel-kqemu -hda /media/extern/freeart/kfreebsd.img -daemonize -redir tcp:1922::22 -nographic
>  % ssh root@localhost
>  root@localhost's password:
> 
> And here it hangs, No reaction on, at least, the return
> character. Same for sudo but ssh was easier as sudo password is cached
> for some time.
> 

Ok, it's reproducible now, it's a bad interaction between -daemonize and
-nographic.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net




Information forwarded to debian-bugs-dist@lists.debian.org, Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>:
Bug#549195; Package qemu. (Fri, 13 Jul 2012 07:54:04 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>. (Fri, 13 Jul 2012 07:54:05 GMT) (full text, mbox, link).


Message #25 received at 549195@bugs.debian.org (full text, mbox, reply):

From: Michael Tokarev <mjt@tls.msk.ru>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: Christoph Egger <debian@christoph-egger.org>, 549195@bugs.debian.org
Subject: Re: Bug#549195: sudo not working on terminal after launch of qemu
Date: Fri, 13 Jul 2012 11:49:03 +0400
retitle 549195 bad terminal state after -daemonize -nographic
tags 549195 + upstream confirmed
forwarded 549195 https://bugs.launchpad.net/qemu/+bug/1024275
thanks

On 01.10.2009 17:10, Aurelien Jarno wrote:

>>  qemu -kernel-kqemu -hda /media/extern/freeart/kfreebsd.img -daemonize -redir tcp:1922::22 -nographic
>>  % ssh root@localhost
>>  root@localhost's password:
>>
>> And here it hangs, No reaction on, at least, the return
>> character. Same for sudo but ssh was easier as sudo password is cached
>> for some time.
> 
> Ok, it's reproducible now, it's a bad interaction between -daemonize and
> -nographic.

Retitling, tagging, and reporting upstream.

Thanks,

/mjt





Changed Bug title to 'bad terminal state after -daemonize -nographic' from 'sudo not working on terminal after launch of qemu' Request was from Michael Tokarev <mjt@tls.msk.ru> to control@bugs.debian.org. (Fri, 13 Jul 2012 07:54:10 GMT) (full text, mbox, link).


Added tag(s) upstream and confirmed. Request was from Michael Tokarev <mjt@tls.msk.ru> to control@bugs.debian.org. (Fri, 13 Jul 2012 07:54:11 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://bugs.launchpad.net/qemu/+bug/1024275'. Request was from Michael Tokarev <mjt@tls.msk.ru> to control@bugs.debian.org. (Fri, 13 Jul 2012 07:54:12 GMT) (full text, mbox, link).


Marked as found in versions qemu/1.1.0+dfsg-1. Request was from mjt@tls.msk.ru (Michael Tokarev) to control@bugs.debian.org. (Fri, 13 Jul 2012 07:54:17 GMT) (full text, mbox, link).


Added indication that 549195 affects qemu-kvm Request was from mjt@tls.msk.ru (Michael Tokarev) to control@bugs.debian.org. (Fri, 13 Jul 2012 07:54:20 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>:
Bug#549195; Package qemu. (Tue, 25 Sep 2012 11:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>. (Tue, 25 Sep 2012 11:09:03 GMT) (full text, mbox, link).


Message #40 received at 549195@bugs.debian.org (full text, mbox, reply):

From: Michael Tokarev <mjt@tls.msk.ru>
To: 549195@bugs.debian.org
Subject: Re: Bug#549195: sudo not working on terminal after launch of qemu
Date: Tue, 25 Sep 2012 15:04:32 +0400
Control: -1 tag + patch

This is fixed by http://thread.gmane.org/gmane.comp.emulators.qemu/172317

Thanks,

/mjt



Added tag(s) patch. Request was from mjt@tls.msk.ru (Michael Tokarev) to control@bugs.debian.org. (Tue, 25 Sep 2012 11:15:03 GMT) (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from <mjt@corpit.ru> to control@bugs.debian.org. (Mon, 21 Jan 2013 11:39:05 GMT) (full text, mbox, link).


Reply sent to Michael Tokarev <mjt@tls.msk.ru>:
You have taken responsibility. (Sun, 03 Feb 2013 19:36:05 GMT) (full text, mbox, link).


Notification sent to Christoph Egger <debian@christoph-egger.org>:
Bug acknowledged by developer. (Sun, 03 Feb 2013 19:36:05 GMT) (full text, mbox, link).


Message #49 received at 549195-done@bugs.debian.org (full text, mbox, reply):

From: Michael Tokarev <mjt@tls.msk.ru>
To: Michael Tokarev <mjt@tls.msk.ru>, 549195-done@bugs.debian.org
Subject: Re: Bug#549195: bad terminal state after -daemonize -nographic
Date: Sun, 03 Feb 2013 23:32:48 +0400
Version: 1.4.0~rc0+dfsg-1exp

This is finally fixed upstream with this patch:

 http://git.qemu.org/?p=qemu.git;a=commit;h=ab51b1d568e02c80b1abf9016bda3a86dc1db389

Qemu now does not allow to use -daemonize and -nographic together,
because -nographic - according to the docs - redirects guest
serial, parallel and other ports - to stdin/stdout, which are
closed by -daemonize.  In order to achieve the desired effect,
one have to redirect all "extra" ports to null explicitly,
instead of using -nographic.  See comments in the patch
for details.

/mjt



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 05 Dec 2013 07:43:08 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Nov 24 04:00:35 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.