2 Jun 2012 00:18
hm, libc crashes loading libc
aep <aep <at> exys.org>
2012-06-01 22:18:55 GMT
2012-06-01 22:18:55 GMT
with git 9ea20dcbaafe790bb034adadf05698088a2f9fab
this stuff scares me, so i'll just dump the relevant information,
hoping someone knows what to do with it.
aep <at> nightbringer: /tmp echo "int main() {} " | musl-gcc -x c++ -
aep <at> nightbringer: /tmp ./a.out
zsh: segmentation fault ./a.out
#0 find_sym (dso=0x7ffff7ff8a00, s=s <at> entry=0x7ffff7d7801d "__cgt",
need_def=0) at src/ldso/dynlink.c:131
#1 0x00007ffff7d811a0 in do_relocs (dso=0x7ffff7ff8a00,
strings=0x7ffff7d74d50 "", syms=0x7ffff7d6bdc8, rel_size=624,
rel=0x7ffff7d786e8, base=0x7ffff7d69000 "\177ELF\002\001\001",
stride=<optimized out>) at src/ldso/dynlink.c:161
#2 reloc_all (p=p <at> entry=0x7ffff7ff8a80) at src/ldso/dynlink.c:481
#3 0x00007ffff7d82667 in __dynlink (argc=<optimized out>,
argv=<optimized out>) at src/ldso/dynlink.c:643
#4 0x00007ffff7d831e2 in _start () at src/ldso/x86_64/start.s:6
#5 0x0000000000000001 in ?? ()
#6 0x00007fffffffe77e in ?? ()
#7 0x0000000000000000 in ?? ()
reakpoint 1, reloc_all (p=p <at> entry=0x7ffff7ff8a80) at
src/ldso/dynlink.c:472
472 {
(gdb) print p
$1 = (struct dso *) 0x7ffff7ff8a80
(gdb) p p->name
$3 = 0x7ffff7dcc012 "libc.so"
(Continue reading)
RSS Feed