All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qemu-i386 segfaults running "hello world".
Date: Sun, 24 Jun 2007 03:36:36 -0400	[thread overview]
Message-ID: <200706240336.36647.rob@landley.net> (raw)
In-Reply-To: <467D0027.6040503@mail.berlios.de>

On Saturday 23 June 2007 07:12:39 Stefan Weil wrote:
> Rob Landley schrieb:
> > Ok, it's a more fundamental problem:
> >
> > landley@triolith:/sys$ qemu-i386
> > Segmentation fault (core dumped)
> >
> > Nothing to do with the program it's trying to run, it segfaults with no
> > arguments.
> >
> > Is anybody else seeing this?
> >
> > Rob
>
> Yes, I see this on Debian Linux since several months (libc update?).

Ubuntu 7.04 is using glibc-2.5.

> The crash is caused by libc startup code which calls a null pointer.
> QEMU provides this null pointer with the __init_array_start
> workaround in linux-user/main.c.

What exactly is this working around, anyway?  There are comments in the code 
that it's doing something fancy (being both a shared library and an 
executable, I think) but I'm not sure why...

> This can be fixed with some kind of code hack - see my patch
> (which is not really a solution, but one more workaround).

I applied your patch and still got the segfault.

> Nevertheless user mode emulations remains unusable even
> with this patch because of TLS problems.

That I know how to work around.  Set the environment variable 
LD_ASSUME_KERNEL=2.4.1 and glibc won't try to use TLS.

> Regards,
> Stefan

Rob

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

  reply	other threads:[~2007-06-24  7:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-22 21:15 [Qemu-devel] qemu-i386 segfaults running "hello world" Rob Landley
2007-06-22 22:31 ` Rob Landley
2007-06-22 23:13   ` Alexander Graf
2007-06-22 23:27     ` andrzej zaborowski
2007-06-23  6:38       ` Rob Landley
2007-06-23  5:31     ` Rob Landley
2007-06-23  7:27       ` Alexander Graf
2007-06-24  5:40         ` Rob Landley
2007-06-23  7:41   ` Rob Landley
2007-06-23 11:00     ` Jens Axboe
2007-06-24  7:01       ` Rob Landley
2007-06-26 13:05         ` Jens Axboe
2007-06-23  9:50   ` Nigel Horne
2007-06-23 11:12   ` [Qemu-devel] [PATCH] " Stefan Weil
2007-06-24  7:36     ` Rob Landley [this message]
2007-07-02 15:02       ` Alexander Graf
2007-07-10 15:47         ` Rob Landley
2007-07-10 16:10           ` Andreas Färber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200706240336.36647.rob@landley.net \
    --to=rob@landley.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.