All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 722311] [NEW] Segmentation fault if started without -enable-kvm parameter
@ 2011-02-20 20:37 Bug Reporter
  2011-02-21  8:00 ` Markus Armbruster
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bug Reporter @ 2011-02-20 20:37 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

I start qemu (Linux) from the same USB memory stick on several
computers. Up to and including qemu 0.12.5, I could use or not use
qemu's "-enable-kvm" command line parameter as appropriate for the
hardware, and qemu would run. In contrast, qemu 0.13.0 and 0.14.0
segfault if started without "-enable-kvm". I get a black window
appearing for fractions of a second, disappearing immediately, and then
the error message "Segmentation fault".

Hardware: Pentium 4, and Core 2 Duo.
Command line: either "qemu" or "qemu -enable-kvm" (after manually loading the kvm-intel module on the Core 2 Duo).
Reproducible: always.

** 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/722311

Title:
  Segmentation fault if started without -enable-kvm parameter

Status in QEMU:
  New

Bug description:
  I start qemu (Linux) from the same USB memory stick on several
  computers. Up to and including qemu 0.12.5, I could use or not use
  qemu's "-enable-kvm" command line parameter as appropriate for the
  hardware, and qemu would run. In contrast, qemu 0.13.0 and 0.14.0
  segfault if started without "-enable-kvm". I get a black window
  appearing for fractions of a second, disappearing immediately, and
  then the error message "Segmentation fault".

  Hardware: Pentium 4, and Core 2 Duo.
  Command line: either "qemu" or "qemu -enable-kvm" (after manually loading the kvm-intel module on the Core 2 Duo).
  Reproducible: always.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Bug 722311] [NEW] Segmentation fault if started without -enable-kvm parameter
  2011-02-20 20:37 [Qemu-devel] [Bug 722311] [NEW] Segmentation fault if started without -enable-kvm parameter Bug Reporter
@ 2011-02-21  8:00 ` Markus Armbruster
  2011-02-21 16:01 ` [Qemu-devel] [Bug 722311] " Bug Reporter
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Markus Armbruster @ 2011-02-21  8:00 UTC (permalink / raw)
  To: Bug 722311; +Cc: qemu-devel

Bug Reporter <722311@bugs.launchpad.net> writes:

> Public bug reported:
>
> I start qemu (Linux) from the same USB memory stick on several
> computers. Up to and including qemu 0.12.5, I could use or not use
> qemu's "-enable-kvm" command line parameter as appropriate for the
> hardware, and qemu would run. In contrast, qemu 0.13.0 and 0.14.0
> segfault if started without "-enable-kvm". I get a black window
> appearing for fractions of a second, disappearing immediately, and then
> the error message "Segmentation fault".

Stack backtrace, please!

If you don't know how to capture it, ask for assistance.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 722311] Re: Segmentation fault if started without -enable-kvm parameter
  2011-02-20 20:37 [Qemu-devel] [Bug 722311] [NEW] Segmentation fault if started without -enable-kvm parameter Bug Reporter
  2011-02-21  8:00 ` Markus Armbruster
@ 2011-02-21 16:01 ` Bug Reporter
  2011-10-07 20:59 ` Bug Reporter
  2016-09-08 20:33 ` T. Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Bug Reporter @ 2011-02-21 16:01 UTC (permalink / raw)
  To: qemu-devel

It is a bit weird that www.qemu.org tells me to report my bugs on
launchpad, but replies to my bug report then appear ONLY on the
developer mailing list. How shall a lowly end-user know that he must
look there, too?

Anyway. On the developer mailing list, Markus Armbruster (Mon, 21 Feb
2011 09:00:25 +0100) requested:

> Stack backtrace, please!

When recompiling qemu 0.14.0 with "--enable-debug" for that purpose I
also played a bit with the CFLAGS. It turns out that qemu segfaults when
compiled with "-Os" in the CFLAGS, but not when compiled without
"-O<whatever>" in the CFLAGS. The GCC version is 4.5.2.

I have now probably lost the audience. But nevermind, here is the stack
backtrace from qemu compiled with "-Os":

root [~/sandbox] gdb qemu
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qemu...done.
(gdb) r
Starting program: /usr/bin/qemu 
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
raise_interrupt (intno=13, is_int=0, error_code=8, next_eip_addend=0)
    at /root/sandbox/stage4/qemu-0.14.0/target-i386/op_helper.c:1340
1340	    env->exception_index = intno;
(gdb) bt
#0  raise_interrupt (intno=13, is_int=0, error_code=8, next_eip_addend=0)
    at /root/sandbox/stage4/qemu-0.14.0/target-i386/op_helper.c:1340
#1  0x08146e13 in raise_exception_err (exception_index=13, error_code=8)
    at /root/sandbox/stage4/qemu-0.14.0/target-i386/op_helper.c:1351
#2  0xda9abe00 in ?? ()
#3  0x00000000 in ?? ()
(gdb) 


and for comparison, the stack backtrace after compiling qemu with no CFLAGS at all:

root [~/sandbox] gdb qemu
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qemu...done.
(gdb) r
Starting program: /usr/bin/qemu 
[Thread debugging using libthread_db enabled]

Program exited normally.
(gdb) bt
No stack.
(gdb)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/722311

Title:
  Segmentation fault if started without -enable-kvm parameter

Status in QEMU:
  New

Bug description:
  I start qemu (Linux) from the same USB memory stick on several
  computers. Up to and including qemu 0.12.5, I could use or not use
  qemu's "-enable-kvm" command line parameter as appropriate for the
  hardware, and qemu would run. In contrast, qemu 0.13.0 and 0.14.0
  segfault if started without "-enable-kvm". I get a black window
  appearing for fractions of a second, disappearing immediately, and
  then the error message "Segmentation fault".

  Hardware: Pentium 4, and Core 2 Duo.
  Command line: either "qemu" or "qemu -enable-kvm" (after manually loading the kvm-intel module on the Core 2 Duo).
  Reproducible: always.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 722311] Re: Segmentation fault if started without -enable-kvm parameter
  2011-02-20 20:37 [Qemu-devel] [Bug 722311] [NEW] Segmentation fault if started without -enable-kvm parameter Bug Reporter
  2011-02-21  8:00 ` Markus Armbruster
  2011-02-21 16:01 ` [Qemu-devel] [Bug 722311] " Bug Reporter
@ 2011-10-07 20:59 ` Bug Reporter
  2016-09-08 20:33 ` T. Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Bug Reporter @ 2011-10-07 20:59 UTC (permalink / raw)
  To: qemu-devel

The problem reported above was the same up to and including qemu 0.15.0.
Meanwhile I found this on the LinuxFromScratch (LFS) bug tracker:

  "Glibc-2.14 causes segfaults in SDL",
http://wiki.linuxfromscratch.org/lfs/ticket/2920

After applying their patch to GLIBC, qemu finally works again on the
Pentium 4. As far as I am concerned, this bug report can now be closed.


** Bug watch added: Linux From Scratch Trac #2920
   http://wiki.linuxfromscratch.org/lfs/ticket/2920

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/722311

Title:
  Segmentation fault if started without -enable-kvm parameter

Status in QEMU:
  New

Bug description:
  I start qemu (Linux) from the same USB memory stick on several
  computers. Up to and including qemu 0.12.5, I could use or not use
  qemu's "-enable-kvm" command line parameter as appropriate for the
  hardware, and qemu would run. In contrast, qemu 0.13.0 and 0.14.0
  segfault if started without "-enable-kvm". I get a black window
  appearing for fractions of a second, disappearing immediately, and
  then the error message "Segmentation fault".

  Hardware: Pentium 4, and Core 2 Duo.
  Command line: either "qemu" or "qemu -enable-kvm" (after manually loading the kvm-intel module on the Core 2 Duo).
  Reproducible: always.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/722311/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 722311] Re: Segmentation fault if started without -enable-kvm parameter
  2011-02-20 20:37 [Qemu-devel] [Bug 722311] [NEW] Segmentation fault if started without -enable-kvm parameter Bug Reporter
                   ` (2 preceding siblings ...)
  2011-10-07 20:59 ` Bug Reporter
@ 2016-09-08 20:33 ` T. Huth
  3 siblings, 0 replies; 5+ messages in thread
From: T. Huth @ 2016-09-08 20:33 UTC (permalink / raw)
  To: qemu-devel

Closing bug according to comment #2

** 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/722311

Title:
  Segmentation fault if started without -enable-kvm parameter

Status in QEMU:
  Fix Released

Bug description:
  I start qemu (Linux) from the same USB memory stick on several
  computers. Up to and including qemu 0.12.5, I could use or not use
  qemu's "-enable-kvm" command line parameter as appropriate for the
  hardware, and qemu would run. In contrast, qemu 0.13.0 and 0.14.0
  segfault if started without "-enable-kvm". I get a black window
  appearing for fractions of a second, disappearing immediately, and
  then the error message "Segmentation fault".

  Hardware: Pentium 4, and Core 2 Duo.
  Command line: either "qemu" or "qemu -enable-kvm" (after manually loading the kvm-intel module on the Core 2 Duo).
  Reproducible: always.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/722311/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-09-08 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-20 20:37 [Qemu-devel] [Bug 722311] [NEW] Segmentation fault if started without -enable-kvm parameter Bug Reporter
2011-02-21  8:00 ` Markus Armbruster
2011-02-21 16:01 ` [Qemu-devel] [Bug 722311] " Bug Reporter
2011-10-07 20:59 ` Bug Reporter
2016-09-08 20:33 ` T. Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.