Received: from eggs.gnu.org ([140.186.70.92]:46466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxajK-0000kA-E0 for qemu-devel@nongnu.org; Wed, 15 Feb 2012 04:00:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxajG-0000gM-Fj for qemu-devel@nongnu.org; Wed, 15 Feb 2012 04:00:50 -0500 Received: from indium.canonical.com ([91.189.90.7]:42929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxajG-0000gC-6m for qemu-devel@nongnu.org; Wed, 15 Feb 2012 04:00:46 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RxajE-000342-Ty for ; Wed, 15 Feb 2012 09:00:44 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id DEBA82E8029 for ; Wed, 15 Feb 2012 09:00:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 15 Feb 2012 08:55:36 -0000 From: Serge Hallyn <932539@bugs.launchpad.net> Sender: bounces@canonical.com References: <20120215053702.27719.77637.malonedeb@soybean.canonical.com> Message-Id: <20120215085536.26691.76622.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 932539] Re: qemu exits with -11 when connecting to a port redirect before the service starts listening Reply-To: Bug 932539 <932539@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Oddly, a bisect suggests this was introduced by commit e3a110b527f749a2acec079c261f4481aadd3edc: slirp: Only start packet expiration for delayed ones which seems rather innocent. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/932539 Title: qemu exits with -11 when connecting to a port redirect before the service starts listening Status in QEMU: New Status in =E2=80=9Cqemu-kvm=E2=80=9D package in Ubuntu: Confirmed Bug description: This was detected initially as a crash in the auto upgrade tester. The code of the upgrade tester basically spawns a kvm instance in the bac= kground with a port redirect from localhost:54322 to tcp:22 in the VM, then= wait for that port to allow for a ssh connection before continuing the upg= rade testing. In the past (Oneiric), all worked well but since Precise, we now get qemu exitting with -11 at every single test :( A quick reproducer is: - start a VM that has openssh-server installed with: -net user,hostfwd= =3Dtcp::54322-:22 - immediately start "ssh -p 54322 127.0.0.1" before the VM starts bootin= g (BIOS/GRUB state) Then wait for sshd to start in the VM and qemu will exit with -11. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/932539/+subscriptions