From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id CA38A3851C22 for ; Thu, 11 Jun 2020 02:32:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CA38A3851C22 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark@simark.ca Received: from [10.0.0.11] (173-246-6-90.qc.cable.ebox.net [173.246.6.90]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 7AFC41E791; Wed, 10 Jun 2020 22:32:12 -0400 (EDT) Subject: Re: gdb "Core was generated by" truncated to 80 characters To: Jonny Grant , gdb@sourceware.org References: <7ff0989f-e139-c25b-d407-a6209f507ed4@simark.ca> From: Simon Marchi Message-ID: <1fee4331-12b1-839e-3782-43409729e7e9@simark.ca> Date: Wed, 10 Jun 2020 22:32:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2020 02:32:13 -0000 On 2020-06-07 6:27 p.m., Jonny Grant wrote: > > > On 26/05/2020 15:09, Simon Marchi wrote: >> On 2020-05-26 7:07 a.m., Jonny Grant wrote: >>> [Not sure if this got through to bug-gdb@gnu.orgĀ  so resending] >> >> gdb@sourceware.org is the right place. >> >>> Hello >>> >>> Just noticed my command line args of a core file are truncated, so it's hard to reproduce the crash as I don't know what the core was generated from. >>> >>> "Core was generated by" truncated to 80 characters in the below example. >>> >>> May I ask, is this a limitation of the kernel dump or gdb? When i use 'strings' I see the core does contain the full command line. >> >> You see the name of the process as dumped by the kernel, which truncates it at >> a certain length. Here's the corresponding code in the kernel, where you see it >> limited at 80 characters: >> >> https://elixir.bootlin.com/linux/v5.6.14/source/include/uapi/linux/elfcore.h#L79 > > It's a shame that is so small, the arguments are visible when running I thought in ps aux. Do you know who is the > maintainer of that file please? This is maintained in the Linux kernel. https://www.kernel.org/doc/html/latest/process/development-process.html Simon