Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Stephen P. Becker" <geoman@gentoo.org>
To: Daniel Jacobowitz <dan@debian.org>
Cc: Ralf Baechle <ralf@linux-mips.org>,
	Bryan Althouse <bryan.althouse@3phoenix.com>,
	"'Linux/MIPS Development'" <linux-mips@linux-mips.org>
Subject: Re: Seg fault when compiled with -mabi=64 and -lpthread
Date: Fri, 01 Jul 2005 10:56:17 -0400	[thread overview]
Message-ID: <42C55991.70109@gentoo.org> (raw)
In-Reply-To: <20050701035105.GA9601@nevyn.them.org>

>>Hmm, well with respect to my problem, I'm using a pretty recent
>>toolchain, with gcc 3.4.4, binutils-2.16.1, glibc-2.3.5, and headers
>>from a linux-mips 2.6.11 snapshot.  Interestingly, I tried to reproduce
>>Bryan's segfault, but could not.  That code ran without error when I
>>linked with libpthread.  Any thoughts?
> 
> 
> I don't think glibc 2.3.5 worked for mips64.  But I haven't checked it
> in a long time.  Try CVS HEAD of glibc instead.
> 
> Other than that, you're on your own - building glibc is extremely error
> prone.
> 

I'm sure it can be error prone, but that isn't the problem here at all.
  My n32 glibc 2.3.5 compiled and seems to work just fine, and I was
able to compile an entire userland around it that has no (other)
problems so far as I can tell.  By this, I mean "emerge system" in
Gentoo terms, which is a pretty good test of whether the toolchain works
or not.  Furthermore, other programs that are linked against libpthread
run without causing a segfault and oops.  I'm talking about glib, as in
the glib that used to be part of GTK+ before it was split out some time
ago.

The segfault with kernel oops that I can't get around occurs while
glib's configure script is checking for libpthread.  Specifically, it
links http://beerandrocks.net:8080/~spbecker/oops/conftest.c against
libpthread and then runs it.

I've somewhat convinced myself this is either a kernel and/or a header
problem.  It seems I'm only able to reproduce this problem when trying
to compile and run that code while running 2.6.12 from cvs.  As I
previously mentioned, I tested the offending code on a kernel I compiled
from a 2.6.10 snapshot some time ago, and it ran with no segfault or oops.

-Steve

  parent reply	other threads:[~2005-07-01 14:58 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30 17:33 Seg fault when compiled with -mabi=64 and -lpthread Bryan Althouse
2005-06-30 19:08 ` Stephen P. Becker
2005-06-30 19:31   ` Bryan Althouse
2005-06-30 20:21 ` Ralf Baechle
2005-06-30 21:03   ` Daniel Jacobowitz
2005-06-30 22:09     ` Stephen P. Becker
2005-07-01  3:51       ` Daniel Jacobowitz
2005-07-01  4:44         ` Kumba
2005-07-01  8:49         ` Maciej W. Rozycki
2005-07-01 13:39           ` Daniel Jacobowitz
2005-07-01 14:10             ` Maciej W. Rozycki
2005-07-01 14:46               ` Daniel Jacobowitz
2005-07-01 15:04                 ` Maciej W. Rozycki
2005-07-01 14:56         ` Stephen P. Becker [this message]
2005-07-01 15:22           ` Maciej W. Rozycki
2005-07-01 16:39             ` Stephen P. Becker
2005-07-01 17:02           ` Daniel Jacobowitz
2005-07-01 17:15             ` Stephen P. Becker
2005-07-01 15:09         ` Bryan Althouse
2005-07-01 14:54           ` sjhill
2005-07-01 15:09           ` Bryan Althouse
2005-07-01 15:29           ` Maciej W. Rozycki

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=42C55991.70109@gentoo.org \
    --to=geoman@gentoo.org \
    --cc=bryan.althouse@3phoenix.com \
    --cc=dan@debian.org \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.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