From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luiz Capitulino Subject: segfault when kvm modules are not loaded Date: Wed, 2 Sep 2009 16:30:47 -0300 Message-ID: <20090902163047.4ceefce4@doriath> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:6498 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbZIBTaw (ORCPT ); Wed, 2 Sep 2009 15:30:52 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n82JUsp1017657 for ; Wed, 2 Sep 2009 15:30:54 -0400 Received: from doriath (vpn-10-40.bos.redhat.com [10.16.10.40]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n82JUoBj030075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 2 Sep 2009 15:30:53 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Hi there, This is probably minor, but I'm getting the following segfault when trying to run qemu-kvm w/o kvm modules loaded: """ sudo ./qemu-kvm -hda fedora-11-kratos-i386.img -m 1G -snapshot open /dev/kvm: No such file or directory Could not initialize KVM, will disable KVM support Segmentation fault (core dumped) """ I've debugged a little and found that: 1. Problem was introduced by 79c788 2. Segfault happens in exec.c:901, because the second call to tb_alloc() fails