* [Qemu-devel] [Bug 904617] [NEW] device_add usb-hub causes segfault in qemu-1.0
@ 2011-12-15 8:18 Erik Rull
2011-12-15 10:09 ` Stefan Hajnoczi
2016-10-31 12:40 ` [Qemu-devel] [Bug 904617] " Thomas Huth
0 siblings, 2 replies; 3+ messages in thread
From: Erik Rull @ 2011-12-15 8:18 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
When calling the command
(qemu) device_add usb-hub,bus=usb.0,port=4
qemu replies
Error: usb port 4 (bus usb.0) not found (in use?)
Then qemu crashes with a segfault:
[ 1546.177627] qemu-system-x86[1710]: segfault at 0 ip b75d3f8b sp
bfddb0b0 error 6 in qemu-system-x86_64[b7488000+2e2000]
Maybe it might be related to the docs/usb2.txt where UHCI has only 2
ports. But a mistake in the port number should not cause qemu to crash
** Affects: qemu
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/904617
Title:
device_add usb-hub causes segfault in qemu-1.0
Status in QEMU:
New
Bug description:
When calling the command
(qemu) device_add usb-hub,bus=usb.0,port=4
qemu replies
Error: usb port 4 (bus usb.0) not found (in use?)
Then qemu crashes with a segfault:
[ 1546.177627] qemu-system-x86[1710]: segfault at 0 ip b75d3f8b sp
bfddb0b0 error 6 in qemu-system-x86_64[b7488000+2e2000]
Maybe it might be related to the docs/usb2.txt where UHCI has only 2
ports. But a mistake in the port number should not cause qemu to crash
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/904617/+subscriptions
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [Bug 904617] [NEW] device_add usb-hub causes segfault in qemu-1.0
2011-12-15 8:18 [Qemu-devel] [Bug 904617] [NEW] device_add usb-hub causes segfault in qemu-1.0 Erik Rull
@ 2011-12-15 10:09 ` Stefan Hajnoczi
2016-10-31 12:40 ` [Qemu-devel] [Bug 904617] " Thomas Huth
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2011-12-15 10:09 UTC (permalink / raw)
To: Erik Rull; +Cc: qemu-devel
On Thu, Dec 15, 2011 at 08:18:31AM -0000, Erik Rull wrote:
> Public bug reported:
>
> When calling the command
>
> (qemu) device_add usb-hub,bus=usb.0,port=4
>
> qemu replies
>
> Error: usb port 4 (bus usb.0) not found (in use?)
>
> Then qemu crashes with a segfault:
>
> [ 1546.177627] qemu-system-x86[1710]: segfault at 0 ip b75d3f8b sp
> bfddb0b0 error 6 in qemu-system-x86_64[b7488000+2e2000]
>
> Maybe it might be related to the docs/usb2.txt where UHCI has only 2
> ports. But a mistake in the port number should not cause qemu to crash
Thanks for the bug report. I confirmed this bug is present in
qemu.git/master and have submitted a patch to fix it.
Please consider sending backtraces when you encounter segfaults in the
future, they make it possible to identify the bug immediately in many
cases. Here's how I reproduced this and got the backtrace:
$ gdb --args x86_64-softmmu/qemu-system-x86_64 -usb
(gdb) r
(qemu) device_add usb-hub,bus=usb.0,port=4
Program received signal SIGSEGV, Segmentation fault.
0x00005555556d786a in usb_unregister_port (bus=0x5555567f2ac0, port=0x555556956b40)
at /home/stefanha/qemu/hw/usb-bus.c:231
231 QTAILQ_REMOVE(&bus->free, port, next);
(gdb) bt
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [Bug 904617] Re: device_add usb-hub causes segfault in qemu-1.0
2011-12-15 8:18 [Qemu-devel] [Bug 904617] [NEW] device_add usb-hub causes segfault in qemu-1.0 Erik Rull
2011-12-15 10:09 ` Stefan Hajnoczi
@ 2016-10-31 12:40 ` Thomas Huth
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2016-10-31 12:40 UTC (permalink / raw)
To: qemu-devel
Stefan's patch had been included here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=db3a5ed7e4422491dac
==> Fix released
** 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/904617
Title:
device_add usb-hub causes segfault in qemu-1.0
Status in QEMU:
Fix Released
Bug description:
When calling the command
(qemu) device_add usb-hub,bus=usb.0,port=4
qemu replies
Error: usb port 4 (bus usb.0) not found (in use?)
Then qemu crashes with a segfault:
[ 1546.177627] qemu-system-x86[1710]: segfault at 0 ip b75d3f8b sp
bfddb0b0 error 6 in qemu-system-x86_64[b7488000+2e2000]
Maybe it might be related to the docs/usb2.txt where UHCI has only 2
ports. But a mistake in the port number should not cause qemu to crash
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/904617/+subscriptions
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-31 12:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-15 8:18 [Qemu-devel] [Bug 904617] [NEW] device_add usb-hub causes segfault in qemu-1.0 Erik Rull
2011-12-15 10:09 ` Stefan Hajnoczi
2016-10-31 12:40 ` [Qemu-devel] [Bug 904617] " 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).