* [Qemu-devel] [Bug 1314857] Re: seg fault in ivshmem when using ioeventfd=on
[not found] <20140501000512.26604.21360.malonedeb@gac.canonical.com>
@ 2014-05-01 16:53 ` Gene Snider
2014-05-15 19:06 ` Cam Macdonell
2017-10-28 13:26 ` Thomas Huth
1 sibling, 1 reply; 4+ messages in thread
From: Gene Snider @ 2014-05-01 16:53 UTC (permalink / raw)
To: qemu-devel
When I tried the same thing with git master (latest) I get a different error:
qemu_chr_fe_claim_no_fail: error chardev "(null)" already used
** Also affects: qemu-kvm (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1314857
Title:
seg fault in ivshmem when using ioeventfd=on
Status in QEMU:
New
Status in “qemu-kvm” package in Ubuntu:
New
Bug description:
When launching qemu with the ivshmem device and the nahanni guest
server there is segmentation fault in the setup_ioeventfds function of
ivshmem.c. If the ioeventfd=on flag is set the pci_ivshmem_init will
call setup_ioeventfds at line 668. This function relies on the 'peers'
member of the server info which is not allocated until line 669.
To reproduce you will need the nahanni guest server code. The driver
code is not needed. You will also need a qcow2 or other bootable image
to use for launching qemu. The error occurs before the actual image
launch.
Start the nahanni ivshmem server with a small global memory space ( although the bug is not allocation specific )
ivshmem -m 1 -n 2 -p /tmp/ivshmem_socket
Next launch qemu with initialization for the ivshmem device.
qemu-system-x86_64 -hda test_iso.qcow2 -localtime -boot c -chardev socket,path="/tmp/ivshmem_socket",id=ivshmem_socket -device ivshmem,chardev=ivshmem_socket,size=1,ioeventfd=on
If gdb is used the following error is recorded:
Program received signal SIGSEGV, Segmentation fault.
0x000055555579dd52 in setup_ioeventfds (s=0x555556619580)
at /home/genes/work/ubuntu/qemu-kvm-1.0+noroms/hw/ivshmem.c:367
367 for (j = 0; j < s->peers[i].nb_eventfds; j++) {
(gdb) print s->peers
$2 = (Peer *) 0x0
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1314857/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Bug 1314857] Re: seg fault in ivshmem when using ioeventfd=on
2014-05-01 16:53 ` [Qemu-devel] [Bug 1314857] Re: seg fault in ivshmem when using ioeventfd=on Gene Snider
@ 2014-05-15 19:06 ` Cam Macdonell
2014-05-15 19:42 ` Markus Armbruster
0 siblings, 1 reply; 4+ messages in thread
From: Cam Macdonell @ 2014-05-15 19:06 UTC (permalink / raw)
To: Bug 1314857; +Cc: qemu-devel@nongnu.org Developers
[-- Attachment #1: Type: text/plain, Size: 2337 bytes --]
Hello,
The patch for this later bug has been proposed. I'm not sure why it's not
merged.
http://patchwork.ozlabs.org/patch/316785/
Cheers,
Cam
On Thu, May 1, 2014 at 10:53 AM, Gene Snider <gene@cvtt.net> wrote:
> When I tried the same thing with git master (latest) I get a different
> error:
> qemu_chr_fe_claim_no_fail: error chardev "(null)" already used
>
> ** Also affects: qemu-kvm (Ubuntu)
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/1314857
>
> Title:
> seg fault in ivshmem when using ioeventfd=on
>
> Status in QEMU:
> New
> Status in “qemu-kvm” package in Ubuntu:
> New
>
> Bug description:
> When launching qemu with the ivshmem device and the nahanni guest
> server there is segmentation fault in the setup_ioeventfds function of
> ivshmem.c. If the ioeventfd=on flag is set the pci_ivshmem_init will
> call setup_ioeventfds at line 668. This function relies on the 'peers'
> member of the server info which is not allocated until line 669.
>
> To reproduce you will need the nahanni guest server code. The driver
> code is not needed. You will also need a qcow2 or other bootable image
> to use for launching qemu. The error occurs before the actual image
> launch.
>
> Start the nahanni ivshmem server with a small global memory space (
> although the bug is not allocation specific )
> ivshmem -m 1 -n 2 -p /tmp/ivshmem_socket
>
> Next launch qemu with initialization for the ivshmem device.
> qemu-system-x86_64 -hda test_iso.qcow2 -localtime -boot c -chardev
> socket,path="/tmp/ivshmem_socket",id=ivshmem_socket -device
> ivshmem,chardev=ivshmem_socket,size=1,ioeventfd=on
>
> If gdb is used the following error is recorded:
> Program received signal SIGSEGV, Segmentation fault.
> 0x000055555579dd52 in setup_ioeventfds (s=0x555556619580)
> at /home/genes/work/ubuntu/qemu-kvm-1.0+noroms/hw/ivshmem.c:367
> 367 for (j = 0; j < s->peers[i].nb_eventfds; j++) {
> (gdb) print s->peers
> $2 = (Peer *) 0x0
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1314857/+subscriptions
>
>
[-- Attachment #2: Type: text/html, Size: 3158 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Bug 1314857] Re: seg fault in ivshmem when using ioeventfd=on
2014-05-15 19:06 ` Cam Macdonell
@ 2014-05-15 19:42 ` Markus Armbruster
0 siblings, 0 replies; 4+ messages in thread
From: Markus Armbruster @ 2014-05-15 19:42 UTC (permalink / raw)
To: Cam Macdonell; +Cc: Bug 1314857, qemu-devel@nongnu.org Developers
Cam Macdonell <cam@cs.ualberta.ca> writes:
> Hello,
>
> The patch for this later bug has been proposed. I'm not sure why it's not
> merged.
>
> http://patchwork.ozlabs.org/patch/316785/
>
> Cheers,
> Cam
To increase your changes for a merge, repost without the RFC and get
some Reviewed-by.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [Bug 1314857] Re: seg fault in ivshmem when using ioeventfd=on
[not found] <20140501000512.26604.21360.malonedeb@gac.canonical.com>
2014-05-01 16:53 ` [Qemu-devel] [Bug 1314857] Re: seg fault in ivshmem when using ioeventfd=on Gene Snider
@ 2017-10-28 13:26 ` Thomas Huth
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Huth @ 2017-10-28 13:26 UTC (permalink / raw)
To: qemu-devel
Fix had been included here:
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=e9d21c436f716603b3
** Changed in: qemu
Status: New => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1314857
Title:
seg fault in ivshmem when using ioeventfd=on
Status in QEMU:
Fix Released
Status in qemu-kvm package in Ubuntu:
Confirmed
Bug description:
When launching qemu with the ivshmem device and the nahanni guest
server there is segmentation fault in the setup_ioeventfds function of
ivshmem.c. If the ioeventfd=on flag is set the pci_ivshmem_init will
call setup_ioeventfds at line 668. This function relies on the 'peers'
member of the server info which is not allocated until line 669.
To reproduce you will need the nahanni guest server code. The driver
code is not needed. You will also need a qcow2 or other bootable image
to use for launching qemu. The error occurs before the actual image
launch.
Start the nahanni ivshmem server with a small global memory space ( although the bug is not allocation specific )
ivshmem -m 1 -n 2 -p /tmp/ivshmem_socket
Next launch qemu with initialization for the ivshmem device.
qemu-system-x86_64 -hda test_iso.qcow2 -localtime -boot c -chardev socket,path="/tmp/ivshmem_socket",id=ivshmem_socket -device ivshmem,chardev=ivshmem_socket,size=1,ioeventfd=on
If gdb is used the following error is recorded:
Program received signal SIGSEGV, Segmentation fault.
0x000055555579dd52 in setup_ioeventfds (s=0x555556619580)
at /home/genes/work/ubuntu/qemu-kvm-1.0+noroms/hw/ivshmem.c:367
367 for (j = 0; j < s->peers[i].nb_eventfds; j++) {
(gdb) print s->peers
$2 = (Peer *) 0x0
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1314857/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-28 13:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20140501000512.26604.21360.malonedeb@gac.canonical.com>
2014-05-01 16:53 ` [Qemu-devel] [Bug 1314857] Re: seg fault in ivshmem when using ioeventfd=on Gene Snider
2014-05-15 19:06 ` Cam Macdonell
2014-05-15 19:42 ` Markus Armbruster
2017-10-28 13:26 ` Thomas Huth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).