From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sven Neumann Date: Wed, 28 Sep 2011 16:44:32 +0200 Subject: [Buildroot] Segmentation faults after gcc update In-Reply-To: <20110927233506.55cb52a2@skate> References: <1317110841.20688.12.camel@sven> <20110927233506.55cb52a2@skate> Message-ID: <1317221262.8481.4.camel@sven> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi, On Tue, 2011-09-27 at 23:35 +0200, Thomas Petazzoni wrote: > * What does a gdb session says for the execution of one of those > binaries ? OK, so I had to compile a gdb for the target first. Here's the result: # gdb dbus-daemon GNU gdb (GDB) 7.1 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-unknown-linux-uclibcgnueabi". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/dbus-daemon...(no debugging symbols found)...done. (gdb) r Starting program: /usr/bin/dbus-daemon warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. Program received signal SIGSEGV, Segmentation fault. 0x40086254 in _dl_get_tls_static_info () from /lib/ld-uClibc.so.0 (gdb) bt #0 0x40086254 in _dl_get_tls_static_info () from /lib/ld-uClibc.so.0 #1 0x40087064 in _dl_update_slotinfo () from /lib/ld-uClibc.so.0 #2 0x401584a0 in sched_get_priority_max () from /lib/libc.so.0 #3 0x4015f040 in hasmntopt () from /lib/libc.so.0 #4 0x4015f040 in hasmntopt () from /lib/libc.so.0 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) I don't quite understand why libthread_db is not found as I did enable BR2_PTHREAD_DEBUG for this build and recompiled everything. Anyway, I tried gdb on a different (crashing) binary and it crashes in _dl_get_tls_static_info() as well. Regards, Sven