Received: from [140.186.70.92] (port=48813 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ318-0001Vn-4F for qemu-devel@nongnu.org; Thu, 18 Nov 2010 06:51:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJ315-0002wO-GL for qemu-devel@nongnu.org; Thu, 18 Nov 2010 06:51:05 -0500 Received: from adelie.canonical.com ([91.189.90.139]:60279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJ315-0002wD-9C for qemu-devel@nongnu.org; Thu, 18 Nov 2010 06:51:03 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1PJ313-0004iH-9E for ; Thu, 18 Nov 2010 11:51:01 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id AB4382E80CE for ; Thu, 18 Nov 2010 11:50:52 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 18 Nov 2010 11:41:21 -0000 From: Michael Tokarev <676029@bugs.launchpad.net> Sender: bounces@canonical.com References: <20101116134732.17540.19683.malonedeb@wampee.canonical.com> Message-Id: <20101118114121.31386.30776.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 676029] Re: Silently fail with wrong vde socket dir Reply-To: Bug 676029 <676029@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org There's no need to add any more specific information. The bug's in the code in qemu. net/vde.c: static int net_vde_init(VLANState *vlan, const char *model, const char *name, const char *sock, int port, const char *group, int mode) { ... vde =3D vde_open(init_sock, (char *)"QEMU", &args); if (!vde){ return -1; } ... } There's no message generated there. Callers merely pass the failure up the road, where it's finally handled as exit(1). If _anything_ is wrong in vde_open() (which can fail due to variety of reasons, including wrong path to the listening socket and what not), nothing will indicate that, just a trivial, silent exit. ** Changed in: qemu Status: New =3D> Confirmed -- = Silently fail with wrong vde socket dir https://bugs.launchpad.net/bugs/676029 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Confirmed Bug description: Hi, Using qemu 0.12.5, kvm silently fail with exit code 1 when using -net vde a= nd a wrong path for sock. Actually, the sock option is mean to be the socke= t dir of the vde_switch, not the socket itself. With -net vde,sock=3D/var/run/vde/vde0/ctl , strace ends with the following= messages=C2=A0: connect(7, {sa_family=3DAF_FILE, path=3D"/var/run/vde/vde0/ctl/ctl"}, 110) = =3D -1 ENOTDIR (Not a directory) close(7) =3D 0 close(8) =3D 0 exit_group(1) =3D ? root ~# = Please add a meaningful message. Regards, =C3=89tienne