Skip to contentSkip to conversation

New glibc on 715/75

parisc-linux Richard Hirst 1 participant 3 messages Mar 16, 2001

lore
Share & tools
lore
#0 lore raw

I am trying the glibc etc from newcompilers-20010314 on my 715/75. It seems anything that is dynamically linked hangs on exit.

I am booting with init=/bin/sash, and have static and dynamic versions of hello-world (in C, not C++), and of gdb.

I can run the static programs ok, but if I run the dynamic hello-world it outputs HelloWorld and then goes to sleep. Console still echoes, but I don't get the sash prompt back.

This isn't a particularly new problem - I havn't had a working 715/75 root fs since the attempt to part-fix libpthread.

Richard

#1 lore raw
Quoted 2 lines · Richard Hirst

I am trying the glibc etc from newcompilers-20010314 on my 715/75. It seems anything that is dynamically linked hangs on exit.

Hangs in this loop:

0x40014150 <__hppa_make_fptr+56>:       ldw 5f0(sr0,r1),r1
0x40014154 <__hppa_make_fptr+60>:       ldcw  0(sr0,r1),r1
0x40014158 <__hppa_make_fptr+64>:       cmpib,= 0,r1,0x40014150 <__hppa_make_fptr+56>
0x4001415c <__hppa_make_fptr+68>:       addil 0,r19,%r1

r19 = 4001a930.

For a good run on the B180, I get in to this code with the same r19. r1=r19, r1+0x5f0=0x4001af20

0x4001af20 <errno+1848>: 0x4001a7c8

0x4001a7c8 <__hppa_fptr_lock>: 0x00000001

Presumably on the 715/75 __hppa_fptr_lock is zero.

(gdb) bt
#0 0x40014150 in __hppa_make_fptr (sym_map=0x4001c508, value=1075005768,

    root=0x4001a7cc, mem=0x0) at ../linuxthreads/sysdeps/hppa/pt-machine.h:44
#1  0x40014108 in _dl_function_address (map=0x4001c508, start=1075005768)
    at ../sysdeps/hppa/dl-symaddr.c:38
#2  0x4000f5e0 in _dl_fini () at dl-fini.c:170
#3  0x40060ff4 in exit () from /lib/libc.so.6
#4  0x40047460 in __libc_start_main () from /lib/libc.so.6
#5  0x0000139c in _start ()
#6  0x40014108 in _dl_function_address (map=0x4001c508, start=1075005768)
    at ../sysdeps/hppa/dl-symaddr.c:38

__hppa_make_fptr() is in sysdeps/hppa/dl-fptr.c

Richard

#2 lore raw
Quoted 11 lines · Richard Hirst
Quoted 2 lines · Richard Hirst

I am trying the glibc etc from newcompilers-20010314 on my 715/75. It seems anything that is dynamically linked hangs on exit.

Hangs in this loop:

0x40014150 <__hppa_make_fptr+56>:       ldw 5f0(sr0,r1),r1
0x40014154 <__hppa_make_fptr+60>:       ldcw  0(sr0,r1),r1
0x40014158 <__hppa_make_fptr+64>:       cmpib,= 0,r1,0x40014150 <__hppa_make_fptr+56>
0x4001415c <__hppa_make_fptr+68>:       addil 0,r19,%r1
Quoted 8 lines

r19 = 4001a930.

For a good run on the B180, I get in to this code with the same r19. r1=r19, r1+0x5f0=0x4001af20

0x4001af20 <errno+1848>: 0x4001a7c8

0x4001a7c8 <__hppa_fptr_lock>: 0x00000001

Arggh! That's not 16 byte aligned.