linux-mips
[Top] [All Lists]

How to debug glibc-2.10.1 mips on linux multilib o32 ld or libc Segment

To: libc-help@sourceware.org, linux-mips@linux-mips.org, issues@eglibc.org
Subject: How to debug glibc-2.10.1 mips on linux multilib o32 ld or libc Segmentation fault?
From: Cheng Renquan <crquan@gmail.com>
Date: Thu, 3 Sep 2009 11:48:59 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=dDJFC9y6nTBskvboK2b2JNiC2P1h49rjgto6tohHado=; b=A36yBJBshKqqQl+Q9zS9ZKzAmVFULn0nm6ewfYgZDiPvfV4DcTko0vmYqqTrxR5HSZ 7b1VlJ6n0LSa3L4lqnWGSzwRcilRjQ5nNrjD7e3jEZjcOyXcrUPYFau4JuerHP0smILj u4gA7KUeMikO84bobqqXyKo+QCFdT4b6T8MII=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=cdSLC+MfnOb3pBBoDmDS3RTy3JKIhy+dQgz8D0Go4DT7w9Xt1VmT1hXSeMeGDqqo4J ck9P/2nlqwPl4+Vorr9iTLoKbvzRhOTHYNNZDd/cCwyXyaNqA0CJeJqfRwSkuiERUPTZ +EMMFATTeItTMa2kwy/XS4j35iIvEXYstV2h4=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hello, all,
  Recently I have cross compiled GCC-4.4.1 with eglibc-2.10.1,
with a multilib configuration, o32/n32/n64, the result is that n32/n64
can work well, while o32 libs always Segmentation fault,

I have read this but still have no good idea on how to debug,

http://sources.redhat.com/glibc/wiki/Debugging/Development_Debugging

then I run it like this,

$ LD_DEBUG=all eglibc-install-root-o32/lib/ld.so.1 --library-path
$PWD/eglibc-install-root-o32/lib
eglibc-install-root-o32/usr/bin/locale

it ends with:

     30257:     symbol=__stack_chk_guard;  lookup in
file=eglibc-install-root-o32/usr/bin/locale [0]
     30257:     symbol=__stack_chk_guard;  lookup in
file=/mnt/nas/yutech/homes/user/eglibc-install-root-o32/lib/libc.so.6
[0]
     30257:     symbol=__stack_chk_guard;  lookup in
file=eglibc-install-root-o32/lib/ld.so.1 [0]
     30257:     binding file eglibc-install-root-o32/lib/ld.so.1 [0] to
eglibc-install-root-o32/lib/ld.so.1 [0]: normal symbol
`__stack_chk_guard' [GLIBC_2.4]
     30257:     
     30257:     calling init:
/mnt/nas/yutech/homes/user/eglibc-install-root-o32/lib/libc.so.6
     30257:     
Segmentation fault

So please give some inputs on how to resolve this? Thanks,

-- 
Cheng Renquan

<Prev in Thread] Current Thread [Next in Thread>
  • How to debug glibc-2.10.1 mips on linux multilib o32 ld or libc Segmentation fault?, Cheng Renquan <=