最近我在下面的回溯中遇到了崩溃:
gdb) bt
#0 0x41447f48 in do_lookup_x () from /auto/andpkg/rep_cache/wr-x86/3.0FCS/sysroot/lib/ld-linux.so.2
#1 0x4144821f in _dl_lookup_symbol_x () from /auto/andpkg/rep_cache/wr-x86/3.0FCS/sysroot/lib/ld-linux.so.2
#2 0x4144c4cb in _dl_fixup () from /auto/andpkg/rep_cache/wr-x86/3.0FCS/sysroot/lib/ld-linux.so.2
#3 0x41452020 in _dl_runtime_resolve () from /auto/andpkg/rep_cache/wr-x86/3.0FCS/sysroot/lib/ld-linux.so.2
#4 0xf4553f44 in free_thread_specific (arg=0x92ce390) at ../infra/med/med_intf.c:4346
#5 0x415c3007 in __nptl_deallocate_tsd () from /auto/andpkg/rep_cache/wr-x86/3.0FCS/sysroot/lib/libpthread.so.0
#6 0x415c414e in start_thread () from /auto/andpkg/rep_cache/wr-x86/3.0FCS/sysroot/lib/libpthread.so.0
#7 0x415278ce in clone () from /auto/andpkg/rep_cache/wr-x86/3.0FCS/sysroot/lib/libc.so.6
我不知道如何从第4帧进行调试,所以我在前几帧开始使用googling do_lookup_x,_dl_lookup_symbol_x,发现它可能是ld-linux.so.2中的现有错误。所以我想得到这个.so文件的版本号。有人能帮我吗?谢谢!
答案 0 :(得分:1)
来自 Linux from Scratch(LFS)主机系统要求文档,
ldd --version | head -n1 | cut -d" " -f2- # glibc version
当我在现有机器上运行时,它会输出
$ ldd --version | head -n1 | cut -d" " -f2-
(Ubuntu EGLIBC 2.19-0ubuntu6.1) 2.19