From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9155 Path: news.gmane.org!not-for-mail From: Ward Willats Newsgroups: gmane.linux.lib.musl.general Subject: Re: MUSCL + MIPS + threads + debugging/stack traces Date: Tue, 19 Jan 2016 10:23:32 -0800 Message-ID: <8EEA4EA8-D626-4498-B2D6-866D3F4655E2@wardco.com> References: <20160119041950.GO238@brightrain.aerifal.cx> <569E2FEB.3090305@openwrt.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3117\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1453227892 14190 80.91.229.3 (19 Jan 2016 18:24:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2016 18:24:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9168-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jan 19 19:24:51 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aLaxX-0000hY-9S for gllmg-musl@m.gmane.org; Tue, 19 Jan 2016 19:24:51 +0100 Original-Received: (qmail 15462 invoked by uid 550); 19 Jan 2016 18:23:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 15439 invoked from network); 19 Jan 2016 18:23:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wardco.com; s=wardco01; h=To:References:Message-Id:Content-Transfer-Encoding:Date: In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=CP240pbQPRAowmiFCy+g68fQI2fv1PRFP9yuQf4w+N8=; b=qLzEyabb3RE6QRwR62ewKU5JMv Stzo2CimBe39O2ZGcKURs//EvFU1AWfAhj6HIm+zh0oJriUm/F3FWHw8vH8lDagXUxYDlWduS7E9m nUC7ChgOUlJzIvZvveMn2F3+zSGIK++Fu4VgU/mb1kMbh5CKI+DvToKt1a8iqq3O8+r4=; In-Reply-To: <569E2FEB.3090305@openwrt.org> X-Mailer: Apple Mail (2.3117) X-Spam-Score: -2.9 X-SA-Exim-Connect-IP: 70.36.190.2 X-SA-Exim-Mail-From: musl@wardco.com X-SA-Exim-Scanned: No (on mail.wardco.com); SAEximRunCond expanded to false Xref: news.gmane.org gmane.linux.lib.musl.general:9155 Archived-At: > On Jan 19, 2016, at 4:45 AM, Felix Fietkau wrote: > On 2016-01-19 05:19, Rich Felker wrote: >> On Mon, Jan 18, 2016 at 05:34:27PM -0800, Ward Willats wrote: >>> When we try to get a backtrace with the toolchain gdb/gdbserver (or >>> the latest one we cross compiled ourselves from source) we get these >>> kind of pathetic, truncated stack traces. >>=20 >> It looks like your libc build lacks debug info and thus gdb is >> attempting to use heuristics to make sense of the call stack. > Seems that I forgot to put in --enable-debug in the Makefile. This is > fixed in r48363 now. >=20 Ha! Turning debug on makes things great. Core dumps too. (At least as = far as our quick checks this morning go.) And boy, do we feel like idiots for not figuring this out straight away! = Seems so obvious in retrospect. Thank you all. -- Ward