Skip to contentSkip to conversation

QEMU: "qemu -M pc" works, "qemu-i386" crashes.

Qemu-devel Alexander van Heukelum 2 participants 2 messages Jun 25, 2007 – Jun 26, 2007 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 12 lines · Rob Landley
Quoted 6 lines · On Sunday 24 June 2007 09:13:57 Alexander van Heukelum wrote:

Hi,

$SUBJECT

At least for me ;), for the latest snapshot of qemu, on Ubuntu 7.04 on an AMD Opteron system.

Yeah, I think that's what I'm seeing too. Could you tell the list instead of
just me? :)

Hi all,

Well, http://qemu.com/lists.html is down at the moment, so I have no idea if the fix has appeared here yet, but the patch attached to the following Ubuntu bug report fixes the segfault at startup of qemu-i386.

https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/90660

(patch copy/pasted below, so it will be damaged)

main.c (copie de travail) renamed from main.c (révision 527) +0 -1
@@ -44,7 +44,7 @@
 
 /* for recent libc, we add these dummy symbols which are not declared
    when generating a linked object (bug in ld ?) */
-#if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) &&

!defined(CONFIG_STATIC)
+#if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 3) && !defined(CONFIG_STATIC)
long __preinit_array_start[0];
long __preinit_array_end[0];
long __init_array_start[0];

Quoted 4 lines

Rob

Signature · 2 lines
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.
Signature · 5 lines
  Alexander van Heukelum
  [email protected]

-- 
http://www.fastmail.fm - Choose from over 50 domains or use your own
#3 lore raw
Quoted 11 lines · On Monday 25 June 2007 10:37:27 Alexander van Heukelum wrote:
main.c (copie de travail) renamed from main.c (révision 527) +1 -1
@@ -44,7 +44,7 @@
 
 /* for recent libc, we add these dummy symbols which are not declared
    when generating a linked object (bug in ld ?) */
-#if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) &&
 !defined(CONFIG_STATIC)
+#if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 3) && !defined(CONFIG_STATIC)
 long __preinit_array_start[0];
 long __preinit_array_end[0];
Quoted 1 line

long __init_array_start[0];

Nope, I still get an immediate segfault on the snapshot from the 23rd.

Rob

Signature · 2 lines
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.