From owner-freebsd-hackers@freebsd.org Mon Jan 15 18:51:17 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6811DE6EC68 for ; Mon, 15 Jan 2018 18:51:17 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 321F868C8F for ; Mon, 15 Jan 2018 18:51:17 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: by mail-it0-x236.google.com with SMTP id w14so1305072itc.3 for ; Mon, 15 Jan 2018 10:51:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuffli-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DFsiqByxBjhREsaoMkb867nutP/aPuuCmZlVl0hR108=; b=iEf4a830lFNJvUcr5iuiP0KeCNX28U4lHbgaL3RpU+7Oi16+3IlJuUzbWFop1bYPA4 2FESAC3EzgRYkyC7E3QlVffp+lFoZfnP0Vxczq0J1gE6fMze35KmmzQo1NSiBqO6EanK Gp/DzGg+JSFfwOG2ltirV2PuyAKvUwhXyk1buaJbuifjl/gM0Gmx8gRwRGg5Rmv/s6/N NChTjWcOQqOJocr2FzqPbIMs2DOG8EXxzXB9iydst+O3H4keRDyyC3KOuBTjM3wDWZND NxknII9rstdmF5mGvhg1oGbGZh333aQQWNsvWYRr0K0oqieJI7B0Szx10lQTYZsoc7ud 2GuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DFsiqByxBjhREsaoMkb867nutP/aPuuCmZlVl0hR108=; b=oBXuowadvJgmMqeFaWabZV5FyhhK0OX6QKE0fDsc0praQOB8QdFeQk89RXXTkGi7p6 XRBxiOALWAr+58Vc7sV15b7mNUu1jRvSfzbZ0w1Gu8J7JIl0Rn3S01+8DmDNwUhWZ4C3 jNZ+W0reYlD3URn3BM9qQTbS0ZSlDhED4LRXckLytJSXKIodq8LxjGvZ2a2gTifZj9Df x3/BxtTItLUdFBHE0cm1f8aihAFWbwJmDU5d4dfwX/JAXkTma7zGB36Ys7rHq+fS407e CJzYB8ZKW6SFoj2sCcIfY+HUD4e5Dr80WS3Gn5+ZxsWTPth7TolL7PFtgTHGZvwXwkEA gr6A== X-Gm-Message-State: AKwxytf11mwyUKiysREakfHjXaQO0aawf90mp90U2VVBDrjPsZG1Zqtk 2uPiWACH/aAuIOOA7YSkwgGMmjmPYEI4A2i5FlfBTw== X-Google-Smtp-Source: ACJfBovU4rAtz07URA7X9M0mHf196c4Lcr8+rWlQBiXSF+5NKp22Mu9nttUZ9k7kDrIgFuzN9uub5K4f/cbLF7F6Q4k= X-Received: by 10.36.66.143 with SMTP id i137mr2877606itb.30.1516042276265; Mon, 15 Jan 2018 10:51:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.137.76 with HTTP; Mon, 15 Jan 2018 10:51:15 -0800 (PST) In-Reply-To: <20180115033127.GE72574@mit.edu> References: <20180115033127.GE72574@mit.edu> From: Chuck Tuffli Date: Mon, 15 Jan 2018 10:51:15 -0800 Message-ID: Subject: Re: examining Linux core file? To: Benjamin Kaduk Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 18:51:17 -0000 On Sun, Jan 14, 2018 at 7:31 PM, Benjamin Kaduk wrote: > On Sun, Jan 14, 2018 at 07:57:01AM -0800, Chuck Tuffli wrote: >> If a Linux application running under the Linux emulation (a.k.a. >> Linuxulator) core dumps, is it possible to examine the resulting core >> file? lldb didn't seem to like it: > > I wonder how a Linux gdb running under the Linuxulator would fare > with it? Sorry, that's what I was trying to show with the last example. The Linux gdb from CentOS running under the Linuxulator gives: # gdb -q ./testcases/bin/mremap05 mremap05.core Reading symbols from /opt/ltp/testcases/bin/mremap05...done. warning: A handler for the OS ABI "FreeBSD ELF" is not built into this configuration of GDB. Attempting to continue with the default i386:x86-64 settings. "/opt/ltp/mremap05.core": no core file handler recognizes format --chuck