* segfault at start with latest qemu-kvm.git
@ 2010-03-03 20:54 David S. Ahern
2010-03-03 23:08 ` Jan Kiszka
0 siblings, 1 reply; 7+ messages in thread
From: David S. Ahern @ 2010-03-03 20:54 UTC (permalink / raw)
To: kvm-devel
With latest qemu-kvm.git I am getting a segfault at start:
/tmp/qemu-kvm-test/bin/qemu-system-x86_64 -m 1024 -smp 2 \
-drive file=/images/f12-x86_64.img,if=virtio,cache=none,boot=on
kvm_create_vcpu: Invalid argument
Segmentation fault (core dumped)
git bisect points to:
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[52b03dd70261934688cb00768c4b1e404716a337] qemu-kvm: Move
kvm_set_boot_cpu_id
$ git show
commit 7811d4e8ec057d25db68f900be1f09a142faca49
Author: Marcelo Tosatti <mtosatti@redhat.com>
Date: Mon Mar 1 21:36:31 2010 -0300
If I manually back out the patch it will boot fine.
--
David
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: segfault at start with latest qemu-kvm.git
2010-03-03 20:54 segfault at start with latest qemu-kvm.git David S. Ahern
@ 2010-03-03 23:08 ` Jan Kiszka
2010-03-03 23:11 ` David S. Ahern
0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2010-03-03 23:08 UTC (permalink / raw)
To: David S. Ahern; +Cc: kvm-devel
[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
David S. Ahern wrote:
> With latest qemu-kvm.git I am getting a segfault at start:
>
> /tmp/qemu-kvm-test/bin/qemu-system-x86_64 -m 1024 -smp 2 \
> -drive file=/images/f12-x86_64.img,if=virtio,cache=none,boot=on
>
> kvm_create_vcpu: Invalid argument
> Segmentation fault (core dumped)
>
>
> git bisect points to:
>
> Bisecting: 0 revisions left to test after this (roughly 0 steps)
> [52b03dd70261934688cb00768c4b1e404716a337] qemu-kvm: Move
> kvm_set_boot_cpu_id
>
>
> $ git show
> commit 7811d4e8ec057d25db68f900be1f09a142faca49
> Author: Marcelo Tosatti <mtosatti@redhat.com>
> Date: Mon Mar 1 21:36:31 2010 -0300
>
>
> If I manually back out the patch it will boot fine.
>
Problem persists after removing the build directory and doing a fresh
configure && make? I'm asking before taking the bug (which would be
mine, likely) as I recently spent some hours "debugging" a volatile
build system issue.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: segfault at start with latest qemu-kvm.git
2010-03-03 23:08 ` Jan Kiszka
@ 2010-03-03 23:11 ` David S. Ahern
2010-03-03 23:20 ` Jan Kiszka
0 siblings, 1 reply; 7+ messages in thread
From: David S. Ahern @ 2010-03-03 23:11 UTC (permalink / raw)
To: Jan Kiszka; +Cc: kvm-devel
On 03/03/2010 04:08 PM, Jan Kiszka wrote:
> David S. Ahern wrote:
>> With latest qemu-kvm.git I am getting a segfault at start:
>>
>> /tmp/qemu-kvm-test/bin/qemu-system-x86_64 -m 1024 -smp 2 \
>> -drive file=/images/f12-x86_64.img,if=virtio,cache=none,boot=on
>>
>> kvm_create_vcpu: Invalid argument
>> Segmentation fault (core dumped)
>>
>>
>> git bisect points to:
>>
>> Bisecting: 0 revisions left to test after this (roughly 0 steps)
>> [52b03dd70261934688cb00768c4b1e404716a337] qemu-kvm: Move
>> kvm_set_boot_cpu_id
>>
>>
>> $ git show
>> commit 7811d4e8ec057d25db68f900be1f09a142faca49
>> Author: Marcelo Tosatti <mtosatti@redhat.com>
>> Date: Mon Mar 1 21:36:31 2010 -0300
>>
>>
>> If I manually back out the patch it will boot fine.
>>
>
> Problem persists after removing the build directory and doing a fresh
> configure && make? I'm asking before taking the bug (which would be
> mine, likely) as I recently spent some hours "debugging" a volatile
> build system issue.
>
> Jan
>
Before sending the email I pulled a fresh clone in a completely
different directory (/tmp) to determine if it was something I
introduced. I then went back to my usual location, unapplied the patch
and it worked fine.
David
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: segfault at start with latest qemu-kvm.git
2010-03-03 23:11 ` David S. Ahern
@ 2010-03-03 23:20 ` Jan Kiszka
2010-03-03 23:23 ` David S. Ahern
0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2010-03-03 23:20 UTC (permalink / raw)
To: David S. Ahern; +Cc: kvm-devel
[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]
David S. Ahern wrote:
>
>
>
> On 03/03/2010 04:08 PM, Jan Kiszka wrote:
>> David S. Ahern wrote:
>>> With latest qemu-kvm.git I am getting a segfault at start:
>>>
>>> /tmp/qemu-kvm-test/bin/qemu-system-x86_64 -m 1024 -smp 2 \
>>> -drive file=/images/f12-x86_64.img,if=virtio,cache=none,boot=on
>>>
>>> kvm_create_vcpu: Invalid argument
>>> Segmentation fault (core dumped)
>>>
>>>
>>> git bisect points to:
>>>
>>> Bisecting: 0 revisions left to test after this (roughly 0 steps)
>>> [52b03dd70261934688cb00768c4b1e404716a337] qemu-kvm: Move
>>> kvm_set_boot_cpu_id
>>>
>>>
>>> $ git show
>>> commit 7811d4e8ec057d25db68f900be1f09a142faca49
>>> Author: Marcelo Tosatti <mtosatti@redhat.com>
>>> Date: Mon Mar 1 21:36:31 2010 -0300
>>>
>>>
>>> If I manually back out the patch it will boot fine.
>>>
>> Problem persists after removing the build directory and doing a fresh
>> configure && make? I'm asking before taking the bug (which would be
>> mine, likely) as I recently spent some hours "debugging" a volatile
>> build system issue.
>>
>> Jan
>>
>
> Before sending the email I pulled a fresh clone in a completely
> different directory (/tmp) to determine if it was something I
> introduced. I then went back to my usual location, unapplied the patch
> and it worked fine.
OK, that reason can be excluded. What's your host kernel kvm version?
(Of course, the issue does not show up here. But virtio currently does
not boot for me - independent of my patch.)
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: segfault at start with latest qemu-kvm.git
2010-03-03 23:20 ` Jan Kiszka
@ 2010-03-03 23:23 ` David S. Ahern
2010-03-03 23:55 ` Jan Kiszka
0 siblings, 1 reply; 7+ messages in thread
From: David S. Ahern @ 2010-03-03 23:23 UTC (permalink / raw)
To: Jan Kiszka; +Cc: kvm-devel
On 03/03/2010 04:20 PM, Jan Kiszka wrote:
> David S. Ahern wrote:
>>
>>
>>
>> On 03/03/2010 04:08 PM, Jan Kiszka wrote:
>>> David S. Ahern wrote:
>>>> With latest qemu-kvm.git I am getting a segfault at start:
>>>>
>>>> /tmp/qemu-kvm-test/bin/qemu-system-x86_64 -m 1024 -smp 2 \
>>>> -drive file=/images/f12-x86_64.img,if=virtio,cache=none,boot=on
>>>>
>>>> kvm_create_vcpu: Invalid argument
>>>> Segmentation fault (core dumped)
>>>>
>>>>
>>>> git bisect points to:
>>>>
>>>> Bisecting: 0 revisions left to test after this (roughly 0 steps)
>>>> [52b03dd70261934688cb00768c4b1e404716a337] qemu-kvm: Move
>>>> kvm_set_boot_cpu_id
>>>>
>>>>
>>>> $ git show
>>>> commit 7811d4e8ec057d25db68f900be1f09a142faca49
>>>> Author: Marcelo Tosatti <mtosatti@redhat.com>
>>>> Date: Mon Mar 1 21:36:31 2010 -0300
>>>>
>>>>
>>>> If I manually back out the patch it will boot fine.
>>>>
>>> Problem persists after removing the build directory and doing a fresh
>>> configure && make? I'm asking before taking the bug (which would be
>>> mine, likely) as I recently spent some hours "debugging" a volatile
>>> build system issue.
>>>
>>> Jan
>>>
>>
>> Before sending the email I pulled a fresh clone in a completely
>> different directory (/tmp) to determine if it was something I
>> introduced. I then went back to my usual location, unapplied the patch
>> and it worked fine.
>
> OK, that reason can be excluded. What's your host kernel kvm version?
>
> (Of course, the issue does not show up here. But virtio currently does
> not boot for me - independent of my patch.)
>
> Jan
>
Fedora Core 12,
Linux daahern-lx 2.6.31.12-174.2.22.fc12.x86_64 #1 SMP Fri Feb 19
18:55:03 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
David
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: segfault at start with latest qemu-kvm.git
2010-03-03 23:23 ` David S. Ahern
@ 2010-03-03 23:55 ` Jan Kiszka
2010-03-04 8:28 ` Jan Kiszka
0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2010-03-03 23:55 UTC (permalink / raw)
To: David S. Ahern; +Cc: kvm-devel
[-- Attachment #1: Type: text/plain, Size: 1921 bytes --]
David S. Ahern wrote:
> On 03/03/2010 04:20 PM, Jan Kiszka wrote:
>> David S. Ahern wrote:
>>>
>>>
>>> On 03/03/2010 04:08 PM, Jan Kiszka wrote:
>>>> David S. Ahern wrote:
>>>>> With latest qemu-kvm.git I am getting a segfault at start:
>>>>>
>>>>> /tmp/qemu-kvm-test/bin/qemu-system-x86_64 -m 1024 -smp 2 \
>>>>> -drive file=/images/f12-x86_64.img,if=virtio,cache=none,boot=on
>>>>>
>>>>> kvm_create_vcpu: Invalid argument
>>>>> Segmentation fault (core dumped)
>>>>>
>>>>>
>>>>> git bisect points to:
>>>>>
>>>>> Bisecting: 0 revisions left to test after this (roughly 0 steps)
>>>>> [52b03dd70261934688cb00768c4b1e404716a337] qemu-kvm: Move
>>>>> kvm_set_boot_cpu_id
>>>>>
>>>>>
>>>>> $ git show
>>>>> commit 7811d4e8ec057d25db68f900be1f09a142faca49
>>>>> Author: Marcelo Tosatti <mtosatti@redhat.com>
>>>>> Date: Mon Mar 1 21:36:31 2010 -0300
>>>>>
>>>>>
>>>>> If I manually back out the patch it will boot fine.
>>>>>
>>>> Problem persists after removing the build directory and doing a fresh
>>>> configure && make? I'm asking before taking the bug (which would be
>>>> mine, likely) as I recently spent some hours "debugging" a volatile
>>>> build system issue.
>>>>
>>>> Jan
>>>>
>>> Before sending the email I pulled a fresh clone in a completely
>>> different directory (/tmp) to determine if it was something I
>>> introduced. I then went back to my usual location, unapplied the patch
>>> and it worked fine.
>> OK, that reason can be excluded. What's your host kernel kvm version?
>>
>> (Of course, the issue does not show up here. But virtio currently does
>> not boot for me - independent of my patch.)
>>
>> Jan
>>
>
> Fedora Core 12,
>
> Linux daahern-lx 2.6.31.12-174.2.22.fc12.x86_64 #1 SMP Fri Feb 19
> 18:55:03 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
>
Reproduced after switching back to kvm-kmod-2.6.31, will debug.
Thanks,
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: segfault at start with latest qemu-kvm.git
2010-03-03 23:55 ` Jan Kiszka
@ 2010-03-04 8:28 ` Jan Kiszka
0 siblings, 0 replies; 7+ messages in thread
From: Jan Kiszka @ 2010-03-04 8:28 UTC (permalink / raw)
To: David S. Ahern; +Cc: kvm-devel
[-- Attachment #1: Type: text/plain, Size: 2231 bytes --]
Jan Kiszka wrote:
> David S. Ahern wrote:
>> On 03/03/2010 04:20 PM, Jan Kiszka wrote:
>>> David S. Ahern wrote:
>>>>
>>>> On 03/03/2010 04:08 PM, Jan Kiszka wrote:
>>>>> David S. Ahern wrote:
>>>>>> With latest qemu-kvm.git I am getting a segfault at start:
>>>>>>
>>>>>> /tmp/qemu-kvm-test/bin/qemu-system-x86_64 -m 1024 -smp 2 \
>>>>>> -drive file=/images/f12-x86_64.img,if=virtio,cache=none,boot=on
>>>>>>
>>>>>> kvm_create_vcpu: Invalid argument
>>>>>> Segmentation fault (core dumped)
>>>>>>
>>>>>>
>>>>>> git bisect points to:
>>>>>>
>>>>>> Bisecting: 0 revisions left to test after this (roughly 0 steps)
>>>>>> [52b03dd70261934688cb00768c4b1e404716a337] qemu-kvm: Move
>>>>>> kvm_set_boot_cpu_id
>>>>>>
>>>>>>
>>>>>> $ git show
>>>>>> commit 7811d4e8ec057d25db68f900be1f09a142faca49
>>>>>> Author: Marcelo Tosatti <mtosatti@redhat.com>
>>>>>> Date: Mon Mar 1 21:36:31 2010 -0300
>>>>>>
>>>>>>
>>>>>> If I manually back out the patch it will boot fine.
>>>>>>
>>>>> Problem persists after removing the build directory and doing a fresh
>>>>> configure && make? I'm asking before taking the bug (which would be
>>>>> mine, likely) as I recently spent some hours "debugging" a volatile
>>>>> build system issue.
>>>>>
>>>>> Jan
>>>>>
>>>> Before sending the email I pulled a fresh clone in a completely
>>>> different directory (/tmp) to determine if it was something I
>>>> introduced. I then went back to my usual location, unapplied the patch
>>>> and it worked fine.
>>> OK, that reason can be excluded. What's your host kernel kvm version?
>>>
>>> (Of course, the issue does not show up here. But virtio currently does
>>> not boot for me - independent of my patch.)
>>>
>>> Jan
>>>
>> Fedora Core 12,
>>
>> Linux daahern-lx 2.6.31.12-174.2.22.fc12.x86_64 #1 SMP Fri Feb 19
>> 18:55:03 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
>>
>
> Reproduced after switching back to kvm-kmod-2.6.31, will debug.
>
Subtle memory corruption: qemu_malloc is returning a pointer that
happens to become kvm_state twice. I bet my patch just exchanges some of
the involved parties and exposes the issue more prominently. Trying to
understand malloc's issue now...
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-03-04 8:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-03 20:54 segfault at start with latest qemu-kvm.git David S. Ahern
2010-03-03 23:08 ` Jan Kiszka
2010-03-03 23:11 ` David S. Ahern
2010-03-03 23:20 ` Jan Kiszka
2010-03-03 23:23 ` David S. Ahern
2010-03-03 23:55 ` Jan Kiszka
2010-03-04 8:28 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox