From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by sourceware.org (Postfix) with ESMTPS id 8162C385E830 for ; Tue, 26 May 2020 11:07:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8162C385E830 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=jguk.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=jg@jguk.org Received: by mail-wr1-x442.google.com with SMTP id l11so20025098wru.0 for ; Tue, 26 May 2020 04:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jguk.org; s=google; h=from:subject:to:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=qabdAnEWXh2rgI8p7lXivZhnNhfJUdSwOd/H0VO592I=; b=Uw9X0y/btvlFVINIfanc6ejuLO9tJ71emrtcsny8iRV2J/hjE3ECoD5Aw4VvnDrL99 E0/4PCdaldZNjA1hW7Fv8yIUc8cu7bljAb5DAueWXmx7TPPz3W46zzFwh/mBFVaR5wO9 yU3Uc7tCfBMNL7Uaxf2zb+ysdbz6Ux4l1EwHok/N+eKJ5Cslw7kj1b6xItJx70vHcA5L ehhHSgjwRv4AJ7WF0gls4ow/0EEhr9hX2Wg4Cxjj/AYJ6L2Eix5bZrIacg6ZZN3PUJL+ 5xqc1ak9EPD8jNkA4TDElMZcaE3dsPn49nSTIMRSvuWjmqdBlDJMCaJoLprLWI9ppfpQ 5D1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=qabdAnEWXh2rgI8p7lXivZhnNhfJUdSwOd/H0VO592I=; b=AFzxjTMNZk6ynRn6VsEin54+c5bMwPw2TQiSZe5+MUZoO9KfhbEOBuVtRykd1QxpL8 gaDCNREMInB/rvOl+c/5VQFqF4RS/VuYSTW614jCWj2t2HNW1DxPFUfYgyytYYCNN26x bUSpoGPWibi9pHQmuI5A2J9pPMTS8bAjzWuYxBv4UjCTSA7ou4SYMRXaBYTloCKR5kwE iHfiEzgarL/zB04yoKEzIVU4GJ/c0vcO9HwpOE0Mjwr2JmJEkEKDDQF+zV2wd6j3LUsw fASZ2xSsxIRYqG9R6NXf1vfJIgABpDvuPuyG9YQkxqwR7YLSzIyPiCKhb2CXjt2VM3E5 oTMw== X-Gm-Message-State: AOAM531tI3S8J5dspt8fvlJOQmGnjMNcqTNe/mDiIINjIOSpSOmwSrSy 9fMSRI3euShs47edYctFjGK+8RJMZJg= X-Google-Smtp-Source: ABdhPJxDmBJ8eOtwbXnWNt3Y+SD9NuC/DX32yM9xjQeu+FbuPtaFfs+zt/kiplTtEbVnWyNdzfw6dg== X-Received: by 2002:adf:9f48:: with SMTP id f8mr19584298wrg.228.1590491256609; Tue, 26 May 2020 04:07:36 -0700 (PDT) Received: from [192.168.0.12] (cpc87281-slou4-2-0-cust47.17-4.cable.virginm.net. [92.236.12.48]) by smtp.gmail.com with ESMTPSA id l19sm21729336wmj.14.2020.05.26.04.07.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 May 2020 04:07:35 -0700 (PDT) From: Jonny Grant Subject: gdb "Core was generated by" truncated to 80 characters To: gdb@sourceware.org Message-ID: Date: Tue, 26 May 2020 12:07:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, TXREP, T_SPF_PERMERROR 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: Tue, 26 May 2020 11:07:38 -0000 [Not sure if this got through to bug-gdb@gnu.orgĀ  so resending] 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. Sorry I know my gdb isn't the latest, it's Ubuntu LTS I tried setting .gdbinit 'set width unlimited' but the output is still truncated. Example below // gcc-8 -Wall -o signal signal.c #include int main() { raise(SIGTRAP); return 0; } $ ./signal myverylonglonglongmyverylonglonglongmyverylonglonglongmyverylonglonglongmyverylonglonglongmyverylonglonglongmyverylonglonglongmyverylonglonglongmyverylonglonglongmyverylonglonglongfz Trace/breakpoint trap (core dumped) $ $ gdb -c core signal GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from signal...(no debugging symbols found)...done. [New LWP 27437] Core was generated by `./signal myverylonglonglongmyverylonglonglongmyverylonglonglongmyverylonglonglo'. Program terminated with signal SIGTRAP, Trace/breakpoint trap. #0 __GI_raise (sig=) at ../sysdeps/unix/sysv/linux/raise.c:51 51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) q