Bug 6602 - Commandline truncated at 80 chars
Summary: Commandline truncated at 80 chars
Status: RESOLVED DUPLICATE of bug 5284
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 5284
  Show dependency treegraph
 
Reported: 2008-06-06 14:16 UTC by Rick Moseley
Modified: 2008-06-11 18:59 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Moseley 2008-06-06 14:16:00 UTC
In the pr_psargs[80] field in the elf_prpsinfo note struct only 80 characters is
allocated for both the absolute path to the executable and the arguments passed
to the executable.  This presents the problem that if there is a particularly
long executable path or an inordinate amount of arguments passed, the argument
list can be truncated.  In fact, the executable name could be truncated if the
path to the execuatble is longer than 80 chars.

The pr_psargs[80] must be expanded before this can be reliable. Phil tells me a
bug has been filed against elfutils about this a while ago.
Comment 1 Andrew Cagney 2008-06-11 18:59:24 UTC
Closing as dup; the kernel doesn't include more than 80 characters of information.

Frysk could also generate its own note section when creating core files via fcore.

*** This bug has been marked as a duplicate of 5284 ***