Re: gdb "Core was generated by" truncated to 80 characters
Simon Marchi <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] so resending] >> >> [email protected] 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