Skip to contentSkip to conversation

Seg Faults from 0.5.4

Qemu-devel Michael Jennings 3 participants 8 messages May 4, 2004 – May 6, 2004

lore
Share & tools
lore
#0 lore raw

I can't seem to get qemu or qemu-fast to boot properly. The latter hangs using up gobs of CPU, and the former seg faults.

mej@cardinal ~ >> qemu -boot d -cdrom /dev/cdrom -hda /home/mej/disk.img
warning: could not open /dev/net/tun: no virtual network emulation Serial port redirected to /dev/pts/0
No disk in drive
No disk in drive
QEMU 0.5.4 monitor - type 'help' for more information
(qemu) Segmentation fault

mej@cardinal ~ >> gdb qemu
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"...(no debugging symbols found)... (gdb) run -boot d -cdrom /dev/cdrom -hda /home/mej/disk.img
Starting program: /usr/bin/qemu -boot d -cdrom /dev/cdrom -hda /home/mej/disk.img [New Thread 8192 (LWP 29377)]
warning: could not open /dev/net/tun: no virtual network emulation Serial port redirected to /dev/pts/0
No disk in drive
No disk in drive
QEMU 0.5.4 monitor - type 'help' for more information
(qemu)

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 8192 (LWP 29377)] 0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
(gdb) quit
The program is running. Exit anyway? (y or n) y

Any ideas? I've tried a number of boot images, including the linux-test and freedos images from the qemu site. All do the same thing.

Thanks,
Michael

Signature · 7 lines
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[email protected]>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "We both lie silently still in the dead of the night.  Although we
  both lie close together, we feel miles apart inside.  Was it
  something I said or something I did?  Did my words not come out
  right?"                        -- Poison, "Every Rose Has Its Thorn"
#1 lore raw
Quoted 10 lines · Michael Jennings

I can't seem to get qemu or qemu-fast to boot properly. The latter hangs using up gobs of CPU, and the former seg faults.

mej@cardinal ~ >> qemu -boot d -cdrom /dev/cdrom -hda /home/mej/disk.img
warning: could not open /dev/net/tun: no virtual network emulation Serial port redirected to /dev/pts/0
No disk in drive
No disk in drive
QEMU 0.5.4 monitor - type 'help' for more information
(qemu) Segmentation fault

What is your architecture?

Signature · 1 line
Martin.
#2 lore raw
Quoted 1 line · Martin Garton

What is your architecture?

Intel Pentium IV 2.4GHz UP

Thanks,
Michael

Signature · 5 lines
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[email protected]>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "It is possible to commit no mistakes and still lose.  That is not a
  weakness; that is life."       -- Captain Picard, "Peak Performance"
#3 lore raw
Quoted 6 lines · Michael Jennings
Quoted 1 line · Martin Garton

What is your architecture?

Intel Pentium IV 2.4GHz UP

I only asked because I get the same problems on only one machine, but its amd64. It's fine for me on all x86 boxen, so I don't think I can help in this case.

Signature · 1 line
Martin.
#4 lore raw
In reply to Michael Jennings
Quoted 6 lines · Michael Jennings
Quoted 1 line · Martin Garton

What is your architecture?

Intel Pentium IV 2.4GHz UP

hmm, distro? compiler? binutils?

TIA,
Herbert

Quoted 15 lines

Thanks,
Michael

Signature · 11 lines
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[email protected]>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "It is possible to commit no mistakes and still lose.  That is not a
  weakness; that is life."       -- Captain Picard, "Peak Performance"


_______________________________________________
Qemu-devel mailing list
[email protected]
http://mail.nongnu.org/mailman/listinfo/qemu-devel
#5 lore raw
Quoted 1 line · Herbert Poetzl

hmm, distro? compiler? binutils?

caos 1, gcc3-3.2.3-6.caos, binutils-2.14.90.0.7-2.caos

Michael

Signature · 5 lines
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[email protected]>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "It takes more than your saline eyes to make things right."
                                        -- Jars of Clay, "Crazy Times"
#6 lore raw
Quoted 6 lines · Michael Jennings
Quoted 1 line · Herbert Poetzl

hmm, distro? compiler? binutils?

caos 1, gcc3-3.2.3-6.caos, binutils-2.14.90.0.7-2.caos

not convinced that this is the reason, but I'd try with a 3.3 or 3.4 gcc as 3.2.x had some issues with the optimization ...

HTH,
Herbert

Quoted 14 lines

Michael

Signature · 11 lines
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[email protected]>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "It takes more than your saline eyes to make things right."
                                        -- Jars of Clay, "Crazy Times"


_______________________________________________
Qemu-devel mailing list
[email protected]
http://mail.nongnu.org/mailman/listinfo/qemu-devel
#7 lore raw
Quoted 2 lines · Herbert Poetzl

not convinced that this is the reason, but I'd try with a 3.3 or 3.4 gcc as 3.2.x had some issues with the optimization ...

The optimization of the qemu code as it's compiled? I built using "-O2 -march=pentium" if that makes a difference...should I try -O0 or -O1 instead? Perhaps build for a different architecture?

Unfortunately I don't have gcc 3.4 packaged quite yet, but I should within the next week or so.

Thanks!
Michael

Signature · 8 lines
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[email protected]>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "IMPORTANT NOTICE:  If you are one of the hundreds of parachuting
  enthusiasts who bought our 'Easy Sky Diving' book, please make the
  following correction:   on page 8, line 7, the words 'state zip
  code' should have read 'pull rip cord.'"
               -- notice appearing in a Warrenton, Virginia, newspaper