From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12679 Path: news.gmane.org!.POSTED!not-for-mail From: Micha Nelissen Newsgroups: gmane.linux.lib.musl.general Subject: Re: GDB to debug threaded application Date: Fri, 6 Apr 2018 23:00:48 +0200 Message-ID: References: <20180406172210.GA3094@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1523048345 21722 195.159.176.226 (6 Apr 2018 20:59:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2018 20:59:05 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12693-gllmg-musl=m.gmane.org@lists.openwall.com Fri Apr 06 22:59:00 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1f4YRn-0005SO-Jn for gllmg-musl@m.gmane.org; Fri, 06 Apr 2018 22:58:59 +0200 Original-Received: (qmail 15976 invoked by uid 550); 6 Apr 2018 21:01:03 -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 15912 invoked from network); 6 Apr 2018 21:01:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=oEgp3T55GWWDRe6jycQogIeAqABHt6aX12nvodWaknM=; b=m4s/OrnOj87tU+fVVev84wD6FPFK0et+KD074PY7Q9HqrXpvMIfaJvAiG3pyua8Bc/ ifC+UBV+xP5ZBA9vez8Xr4lbzfBgoonHulMMS7PnwY8O+8m0ZQP8yjhjSoBIaaS8RaI7 jlTYgcSFQ44W0/ISooaj0haQp/EbpqU0pZ+moLzNr8jHvcFk6VqF/UUO9mKvLQzzNsdA nMTfPAbUdMiSJc2jblqPtYaXuGyhPgMxzUBTBSP+rKQkFhib0PUclhTCGtIAlQdndgAX PiK/oQhFxbPa5ZKpBSYIRY2QnC9CC68JQmkQybrJfv2E4zkf5TuguCJiEsxZ9DNCLvWr 3AxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=oEgp3T55GWWDRe6jycQogIeAqABHt6aX12nvodWaknM=; b=T0OhKhtX2YBdlKzUf1eALqmXWMfO6LwZplnd+S/Gdvkk2yLLqUFszgvaJ1/veDBpGL f0qnF9hG7JP5xFS4VA8OVDUFBq07fLrv5DAoEfCCMzDr3T0V0DHfOwUDVHN6lBvn2jT1 YBWyUg0nX6JXLaU6yqpMmGaWey0GBp/h1FXrMG62zZZd9rQUf5v4U9Y5Cj9Fm+OYDw+h gnyWGAIcfpWZ+AVxdob66SR+LDa+Q/prt50/0MHsDEZfnWqB5j9EDdGwCkGEBbAKZFr1 R99OaQhzHkhtjTsI19mDL8ksQsbimECrHXuuksmmZOOtFAzRaBnw20zKAHqhScVvko6K K0Ow== X-Gm-Message-State: ALQs6tAoVp+bm5tsRO5sXu5jLaWL8kmVEl2Vtgg4HFvAXX0lA0T7dEyL h4VzOL4pAFrbhbm2APLEGENg/bBz X-Google-Smtp-Source: AIpwx48WCMMagzWlF9OgY2RXKyXDfTPmUBSQU8+co0z31OgXWUKynmNrcgOKNVm3C1GTRbo1vHKMBg== X-Received: by 10.80.208.138 with SMTP id v10mr8614756edd.182.1523048450183; Fri, 06 Apr 2018 14:00:50 -0700 (PDT) In-Reply-To: <20180406172210.GA3094@brightrain.aerifal.cx> X-Mailer: iPhone Mail (14D27) Xref: news.gmane.org gmane.linux.lib.musl.general:12679 Archived-At: On 6 Apr 2018, at 19:22, Rich Felker wrote: >=20 >> On Fri, Apr 06, 2018 at 06:33:35PM +0200, Micha Nelissen wrote: >> Hi all, >>=20 >> I have built a cross-toolchain (x86-64 to arm, gcc 5.4.0) with musl >> (1.1.16) using buildroot (2017.02). I let buildroot build a gdb for >> the arm platform. It runs, but when I debug my application, gdb >> hangs after a thread is started. Can't interrupt it, have to kill >> -KILL my application from another ssh session. >>=20 >> I noticed that there is a libthread_db.so in the glibc-based >> toolchain. Do I need something similar for musl? That >> libthread_db.so needs libc.so.6 (glibc) so I guess I can't use it >> as-is? >>=20 >> Thanks for any pointers! >=20 > No, musl does not use libthread_db.so, but presence of a glibc version > of this library could break things badly. Make sure it's not being > built or present in any location gdb might search. Are you using a > remote/cross gdb (with gdbserver on the target) or local gdb? A local gdb. In the buildroot environment, no libthread_db is present I thin= k. Micha=