From owner-freebsd-hackers@freebsd.org Tue Jan 16 03:13:16 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 63018EBF27E for ; Tue, 16 Jan 2018 03:13:16 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from sonic306-18.consmr.mail.bf2.yahoo.com (sonic306-18.consmr.mail.bf2.yahoo.com [74.6.132.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2AC9F80EA4 for ; Tue, 16 Jan 2018 03:13:15 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1516072388; bh=VC+vGGhEcL8goHPVCT+lsYTz6fhDSEr6U1kuiDlpodk=; h=To:From:Subject:Date:From:Subject; b=Por+kptwihPfS1O7H8wEZVvHTYKI4YFMU/GHKhlSf7CbQxAEafAPXfiDcgKOa2cY7lZQ9d5a0vJo5sfqMqa2Hh4eIkv4GogbRJmnG/7nXU75xRKFHmujr6L4GhxnXk4dUVkw3wHEqVdk1uFrzzN8VNRcmikq3oLQKgFkDvqAHO3iYLvhjQgk1YCW6Tr9ZEsDcTW70v6Qzx//KzIbowYyJRLsnRWwZHsyexz4iLIGlRbpxDo/nud7++2EZPBbMV2Iis+25ptLEPqMf2WRNm+6xQKLNt98UQ/iBXCJK78nY0FDnmXSwDrVbHVgrHFF0SakLATnb53YjS4VuxOCu5UvXg== X-YMail-OSG: qz8.gpcVM1nKAvlYOCYLfnITih1KSivF_OqA_0OuhEByYSn_G0nv8rBBMYN9O82 I170rY.svCKQSYNw4jhh.CEsxiQ5JFhyQRoloPDnbdRQ5yg.TLoC96PhCFeJa0ctYXP4DDAn4KeY VkoZjVc0EacnqjfBE2n_59fFN3wacqLo98jcGQ4oaEfn9l6OJ2n3hpMM83v_lSCmpZoeuC5BCL0R 1Hzi74dQ.J8vw1TLKrc.c.I8m.Thf5jYZ2yPiX5yfzzspAR0mqhYy70XEbsrUNYY9rN7RFfQt5zW guZ6wJGSdZilUqiVxde7DdatUVehVd7QckJx6cqinj413DsJO8mmx04z_rTfZsnQL9fHB.RIpKaB AlkZbq3jq2OrhXXiWwpy8BCVTRG.baiBdpssI_LzhE2c4DXkc6BrJv.7n9iIRxrRGrXVxGP3jS8e 2TdR_qb4WZ9CxngK4Q69IgciTFqvQJlKeCllKHSuSCOl1dafv78uOQloigys92mUoU9ACemXB Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Tue, 16 Jan 2018 03:13:08 +0000 Received: from smtpgate102.mail.bf1.yahoo.com (EHLO [192.168.0.8]) ([72.30.28.113]) by smtp408.mail.bf1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID e91bca0a42d00b26b35f602cab676006 for ; Tue, 16 Jan 2018 03:02:59 +0000 (UTC) To: FreeBSD Hackers From: Pedro Giffuni Subject: Re: examining Linux core file? Organization: FreeBSD Project Message-ID: Date: Mon, 15 Jan 2018 22:02:58 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Tue, 16 Jan 2018 03:13:16 -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 Weird, I think you would need to build a cross-gdb. My memory is sketchy but you may need to build a complete cross-toolchain for that. Long-long ago we actually did that but the resulting linux binaries were weird and needed branding always. Pedro.