This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Segfaults with eglibc-2.16 on ARM v6 (hardfp)
- From: Carlos O'Donell <carlos_odonell at mentor dot com>
- To: Stephan Raue <mailinglists at openelec dot tv>
- Cc: <libc-help at sourceware dot org>
- Date: Thu, 19 Jul 2012 11:48:17 -0400
- Subject: Re: Segfaults with eglibc-2.16 on ARM v6 (hardfp)
- References: <50081434.6060401@openelec.tv>
On 7/19/2012 10:05 AM, Stephan Raue wrote:
> Hi,
>
> after upgrading my embedded distribution from eglibc-2.15 to 2.16 i get libc related segfaults with every program. Because this distro uses shell based init scripts and busybox, which also segfaults provides the shell i cant boot into the system with eglibc-2.16. With eglibc-2.15 all is working.
>
> I have tried to boot in to a system with eglibc-2.15 and copy the eglibc-2.16 filessystem to a writabable location in /storage:
> root ~ # LD_LIBRARY_PATH=/storage/system/lib/ /storage/system/bin/busybox
> Segmentation fault
>
> if i replace /storage/system/lib/libc.so.6 with the one from eglibc-2.15 system:
WARNING: You should replace all core libraries with the 2.15 versions. The dynamic linker and libc share state and should be at matching versions.
> root ~ # LD_LIBRARY_PATH=/storage/system/lib/ /storage/system/bin/busybox
> BusyBox v1.20.2 (2012-07-19 08:32:53 CEST) multi-call binary.
> Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
> ...
>
> how i can debug this system to get more infos to provide to find the issue? i have GDB and STRACE installed on the system, if i run gdb:
> root ~ # gdb /storage/system/bin/busybox
> GNU gdb (GDB) 7.4.50.20120716
> ...
> (gdb) set environment LD_LIBRARY_PATH=/storage/system/lib/
> (gdb) run
> Starting program: /storage/system/bin/busybox
> During startup program terminated with signal SIGSEGV, Segmentation fault.
> (gdb) bt
> No stack.
This is likely a crash in the dynamic loader.
You need to debug the dynamic loader.
Start by running with LD_DEBUG=all and see how far you get.
Cheers,
Carlos.
--
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell@mentor.com
carlos@codesourcery.com
+1 (613) 963 1026