public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Clark Williams <williams@redhat.com>
To: Mikael Andersson <mikael@karett.se>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	lkml <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: 2.6.15-rt4 failure with LATENCY_TRACE on x86_64
Date: Sun, 15 Jan 2006 12:59:10 -0600	[thread overview]
Message-ID: <1137351550.3627.15.camel@localhost.localdomain> (raw)
In-Reply-To: <43C88833.9050107@karett.se>

[-- Attachment #1: Type: text/plain, Size: 1750 bytes --]

On Sat, 2006-01-14 at 06:12 +0100, Mikael Andersson wrote:
> Steven Rostedt wrote:
> > On Fri, 13 Jan 2006, Clark Williams wrote:
> >>Have you tried booting your system with a up kernel?
> >>
> > Not a x86_64 up.  But serveral up i386 boxes.
> > 
> 
> I had a very similar problem on a x86_64 up. I got a segfault in init 
> with LATENCY_TRACE enabled on 2.6.15-rt2.
> I get it at ffffffff8010fe30, which should be mcount according to my 
> System.map [1]. It seems a bit weird because i have tried to alter 
> mcount somewhat. Initially by removing the initial comparison, but later
> i tried a few other things also. Nothing had any effect at all.

Glad to see that I'm not completely insane :).

> 
> AFAIK glibc also has a mcount symbol, and it's almost as if ld.so would 
> have linked the glibc mcount symbol to the kernel symbol mcount. That
> would naturally lead to a pagefault :)
>   And it would be consistent with the fact that statically linked shells
> works.
> 
> It's probably something completely different, bevause that would be 
> really weird. OTOH, it was really weird that i could change the asm for 
> mcount in entry.S without any effect whatsoever.
> 

Yeah, I don't really see how ld.so would know about the kernel mcount.
AFAIK it only knows about symbols exported from ELF libraries that it
has loaded in user space. 

I'm still trying to figure out if LATENCY_TRACE could effect
do_execve(), since that's the routine that starts the init program. I'm
wondering if do_execve() is doing something that aggrevates ld.so, so
that it loads the program and/or libraries incorrectly.

Guess that's what I'll be doing Monday morning...

Clark

-- 
Clark Williams <williams@redhat.com>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2006-01-15 18:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1137103652.11354.40.camel@localhost.localdomain>
2006-01-13  3:18 ` 2.6.15-rt4 failure with LATENCY_TRACE on x86_64 Steven Rostedt
2006-01-13 15:06   ` Clark Williams
2006-01-13 15:54     ` Steven Rostedt
2006-01-13 22:58       ` Clark Williams
2006-01-13 23:08         ` Steven Rostedt
2006-01-14  5:12           ` Mikael Andersson
2006-01-15 18:59             ` Clark Williams [this message]

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=1137351550.3627.15.camel@localhost.localdomain \
    --to=williams@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikael@karett.se \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox