From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42677 invoked by alias); 27 Apr 2016 18:39:45 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 42623 invoked by uid 89); 27 Apr 2016 18:39:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=3.1 required=5.0 tests=BAYES_00,BODY_8BITS,GARBLED_BODY,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy==d0=ba=d1, sk:wwwlin, sk:www.lin, vital?= X-HELO: usplmg21.ericsson.net Received: from usplmg21.ericsson.net (HELO usplmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 27 Apr 2016 18:39:34 +0000 Received: from EUSAAHC001.ericsson.se (Unknown_Domain [147.117.188.75]) by usplmg21.ericsson.net (Symantec Mail Security) with SMTP id B2.8F.03614.83701275; Wed, 27 Apr 2016 20:38:48 +0200 (CEST) Received: from elxa4wqvvz1 (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 27 Apr 2016 14:39:28 -0400 References: User-agent: mu4e 0.9.17; emacs 24.4.1 From: Antoine Tremblay To: =?utf-8?B?0JrRg9C60YPRiNC60LjQvSDQn9Cw0LLQtdC7INCT0LXQvdC90LDQtNGM0LU=?= =?utf-8?B?0LLQuNGH?= CC: "gdb@sourceware.org" Subject: Re: Minimal core dump mapping set In-Reply-To: Date: Wed, 27 Apr 2016 18:39:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00051.txt.bz2 Кукушкин Павел Геннадьевич writes: > Dear developers, > > I want to generate core dump file by application itself. Of course it supposed to be compatible with gdb. When I store all anonymous mappings to the file I get no problems. I can see stacks and heaps and so forth. But I want to store only stacks without heap. So I decided to skip anonymous mappings. Here I get in trouble. Gdb can't open that kind of core. I noticed that storing last 4 anonymous mappings (I mean in proc maps list) solves the problem. But how can I be sure that and if the particular mapping is vital for gdb. And what do those mappings keep. > Not sure about your exact issue but you may want to check https://www.linutronix.de/minicoredumper/ if you have not already... Regards, Antoine