[uClibc]Problems with uClibc 0.9.11 on powerpc

Bodo Bauer bb at bb-zone.com
Sat Apr 13 00:27:31 UTC 2002


On Fri, 2002-04-12 at 16:20, David Schleef wrote:

    On Thu, Apr 11, 2002 at 01:19:53PM -0700, Bodo Bauer wrote:
    > However if I run arg_test without arguments I get this interesting
    > message and no segfault:
    > 
    >     bb at pmacg4:~/work/RescueNew/Build/uClibc-0.9.11/test/args [563] 
    >     > ./arg_test 
    >     stack pointer is unaligned! (7ffff5a8)
    >     argc=1
    >     argv[0]='./arg_test'
    >     environ[0]='PWD=/home/bb/work/RescueNew/Build/uClibc-0.9.11/test/args'
    >     environ[1]='GS_FONTPATH=/usr/share/lilypond/afm:/usr/share/lilypond/pfa'
    >     environ[2]='XAUTHORITY=/tmp/ssh-XXQwVgBE/cookies'
    >     environ[3]='PAGER=less'
    >     environ[4]='HOSTNAME=pmacg4'
    >     ...
    >     
    > Note the unaligned stack pointer. Could this be part of the problem?
    
> Yes.
>
> Can you make sure that it's not using an old version of
> ld-uClibc.so?  The best way to figure this out is to start the
> program in gdb, wait for it to crash, and (in a different
> terminal), look at /proc/NNNN/maps, where NNNN is the PID of
> the offending process.

Seems to use the correct copy uClibc:

  [GDB Window]
    bb at pmacg4:~/work/RescueNew/Build/uClibc-0.9.11/test/args [547] 
    > gdb arg_test
    GNU gdb 5.0
    [...]
    This GDB was configured as "ppc-suse-linux"...(no debugging symbols found)...
    (gdb) run a b c d e f
    Starting program: /export/beavis/work/bodo/RescueNew/Build/uClibc-0.9.11/test/args/arg_test a b c d e f
    
    Program received signal SIGSEGV, Segmentation fault.
    0x30001c70 in ?? ()
    (gdb) 

  [other Xterm]
    bb at pmacg4:~ [504] 
    > cat /proc/10631/maps 
    01800000-01801000 r-xp 00000000 00:0a 16695869   /export/beavis/work/bodo/RescueNew/Build/uClibc-0.9.11/test/args/arg_test
    01810000-01811000 rwxp 00000000 00:0a 16695869   /export/beavis/work/bodo/RescueNew/Build/uClibc-0.9.11/test/args/arg_test
    30000000-30005000 r-xp 00000000 00:0a 20299881   /export/beavis/work/bodo/RescueNew/Build/uClibc-0.9.11/lib/ld-uClibc-0.9.11.so
    30014000-30016000 rwxp 00004000 00:0a 20299881   /export/beavis/work/bodo/RescueNew/Build/uClibc-0.9.11/lib/ld-uClibc-0.9.11.so
    7ffff000-80000000 rwxp 00000000 00:00 0

> Also, what kernel versoin are you running?

    bb at pmacg4:~ [505] 
    > uname -a
    Linux pmacg4 2.4.2 #1 Mon Mar 12 12:22:18 GMT 2001 ppc unknown
    
This is a vanilla SuSE 7.1 PPC kernel. The target system will run something much 
more recent. /usr/src/linux is linked to the sources of the target system. Do you
think this makes a difference? I can try to create a boot image with uClibc linked
binaries and see if it runs on the target system. But not until Monday. This takes
more than 5 minutes... :)


Thanks for looking into it.

BB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20020412/8b2c40fe/attachment.pgp 


More information about the uClibc mailing list