All of lore.kernel.org
 help / color / mirror / Atom feed
From: M A Young <m.a.young@durham.ac.uk>
To: Ingo Molnar <mingo@elte.hu>
Cc: Jeff Dike <jdike@addtoit.com>, Gerd Knorr <kraxel@bytesex.org>,
	user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: tt mode tls/glibc crash with 2.6 (Was: Re: uml-patch-2.6.0)
Date: Fri, 23 Jan 2004 23:52:33 +0000 (GMT)	[thread overview]
Message-ID: <Pine.GSO.4.58.0401232342360.24271@altair.dur.ac.uk> (raw)
In-Reply-To: <Pine.LNX.4.58.0401232125410.8188@vega.dur.ac.uk>

On Fri, 23 Jan 2004, M A Young wrote:

> I now know where 0xbeffe018 comes from. The endless segfault is triggered
> from line 1256 of elf/rtld.c in the glibc code (1252-1258 are shown from
> RedHat's glibc-2.3.2-101.4.i686.rpm package)
>
> #ifdef NEED_DL_SYSINFO
>   if (GL(dl_sysinfo_dso) != NULL)
>     {
>       /* We have a prelinked DSO preloaded by the system.  */
>       GL(dl_sysinfo) = GL(dl_sysinfo_dso)->e_entry;
>
>       /* Do an abridged version of the work _dl_map_object_from_fd would do
>
>
> GL(dl_sysinfo_dso) is _dl_sysinfo_dso, _rtld_local._dl_sysinfo_dso or
> _rtld_global._dl_sysinfo_dso according to context
>
> _dl_sysinfo_dso=0 is at 0xa0603f50
> _rtld_local._dl_sysinfo_dso=0xbeffe000 is at 0x40015454
> _rtld_global._dl_sysinfo_dso=0xbeffe000 is at 0x40015454
>
> so I am guessing that _rtld_{local,global}._dl_sysinfo_dso should have
> been initialized from _dl_sysinfo_dso but wasn't. This could be a glibc
> bug, though I haven't looked closely enough to be sure.

Further checking shows that _rtld_global._dl_sysinfo_dso is set from the
value of AT_SYSINFO_EHDR passed by the kernel. So UML tt mode is broken
because it doesn't seem to pass this value. However glibc is also broken,
because it should set _rtld_global._dl_sysinfo_dso=NULL by default in case
AT_SYSINFO_EHDR isn't passed to it by the kernel.

Anyway, I intend to test whether this is the problem tomorrow, either by
recompiling glibc (it is a one-line fix), or possibly using a hex editor
to hack the existing ld.so.

	Michael Young


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-01-26  6:51 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-13  5:05 uml-patch-2.6.0 Jeff Dike
2004-01-13  5:05 ` [uml-devel] uml-patch-2.6.0 Jeff Dike
2004-01-13  5:18 ` uml-patch-2.6.0 Jeff Dike
2004-01-13  5:18   ` [uml-devel] uml-patch-2.6.0 Jeff Dike
2004-01-13 10:19 ` uml-patch-2.6.0 Sven Köhler
2004-01-13 10:19   ` [uml-devel] uml-patch-2.6.0 Sven Köhler
2004-01-13 18:55   ` Gerd Knorr
2004-01-16  2:33     ` Jeff Dike
2004-01-16 10:03       ` M A Young
2004-01-16 11:42         ` Gerd Knorr
2004-01-17 16:10           ` BlaisorBlade
2004-01-16 17:27         ` Jeff Dike
2004-01-16 21:56           ` Gerd Knorr
2004-01-17 21:12           ` M A Young
2004-01-18  4:47             ` Jeff Dike
2004-01-16 23:47       ` Sven Köhler
2004-01-17 19:09       ` BlaisorBlade
2004-01-17 19:50         ` Jeff Dike
2004-01-17 20:03           ` BlaisorBlade
2004-01-18  4:51             ` Jeff Dike
2004-01-18 16:21       ` Ingo Molnar
2004-01-18 21:06         ` [uml-devel] uml 2.6.1 kbuild simplifications Ingo Molnar
2004-01-19  0:08           ` [uml-devel] " Jeff Dike
2004-01-19  7:34             ` Ingo Molnar
2004-01-20 17:40               ` Jeff Dike
2004-01-18 23:57         ` [uml-devel] Re: uml-patch-2.6.0 Jeff Dike
2004-01-19  7:53           ` Ingo Molnar
2004-01-19  8:28             ` Ingo Molnar
2004-01-20  0:19               ` M A Young
2004-01-20  0:23                 ` Ingo Molnar
2004-01-20  0:41                   ` M A Young
2004-01-23 21:52                   ` [uml-devel] tt mode tls/glibc crash with 2.6 (Was: Re: uml-patch-2.6.0) M A Young
2004-01-23 23:52                     ` M A Young [this message]
2004-01-24 12:25                       ` [uml-devel] " M A Young
2004-01-24 18:20                         ` Jeff Dike
2004-01-24 19:31                           ` M A Young
2004-01-28 11:35                             ` Ingo Molnar
2004-02-05 12:30                             ` Ingo Molnar
2004-02-05 12:45                               ` M A Young
2004-02-05 13:13                                 ` Ingo Molnar
2004-02-05 13:28                                   ` M A Young
2004-02-05 18:36                                 ` Ingo Molnar
2004-02-05 19:15                                   ` M A Young
2004-02-05 19:22                                     ` Ingo Molnar
2004-02-05 19:15                                   ` Ingo Molnar
2004-02-05 19:50                                     ` Ingo Molnar
2004-02-06  7:42                                       ` Ingo Molnar
2004-01-20  1:27                 ` [uml-devel] Re: uml-patch-2.6.0 Jeff Dike
2004-01-20 17:22               ` Jeff Dike
2004-01-20 19:59                 ` Ingo Molnar
2004-01-17 19:09 ` [uml-devel] uml-patch-2.6.0 BlaisorBlade
2004-01-17 19:51   ` Jeff Dike
2004-01-18 13:49     ` Ingo Molnar
2004-01-18 13:58       ` [uml-devel] uml-patch-2.6.1-1: VFS: Cannot open root device "ubd0" or unknown-block(0, 0) Ingo Molnar
2004-01-18 14:04         ` [uml-devel] " Ingo Molnar
2004-01-18 23:48           ` Jeff Dike
2004-01-17 20:32   ` [uml-devel] uml-patch-2.6.0 M A Young
2004-01-19 17:06   ` [uml-devel] uml-patch-2.6.0 Gerd Knorr
2004-01-20 19:42     ` BlaisorBlade
2004-01-20 21:30       ` Gerd Knorr

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=Pine.GSO.4.58.0401232342360.24271@altair.dur.ac.uk \
    --to=m.a.young@durham.ac.uk \
    --cc=jdike@addtoit.com \
    --cc=kraxel@bytesex.org \
    --cc=mingo@elte.hu \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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.