Bug 2927 - MapsBuilder loses the NULL terminator when reading a proc's maps file
Summary: MapsBuilder loses the NULL terminator when reading a proc's maps file
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 1582
  Show dependency treegraph
 
Reported: 2006-07-14 20:51 UTC by Adam Jocksch
Modified: 2006-11-28 16:45 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 Adam Jocksch 2006-07-14 20:51:36 UTC
The necessary code is required in MapsBuilder::buildBuffer to successfully
create run construct() on a pid:
     maps[maps.length - 1] = 0;

Without that line the following error is thrown
java.lang.RuntimeException: missing NUL
   at frysk.sys.proc.MapsBuilder.construct(TestRunner)
   at frysk.sys.proc.MapsBuilder.construct(TestRunner)
   at frysk.rt.TestStackBacktrace.testBacktrace(TestRunner)
   at frysk.junit.Runner.<init>(TestRunner)
   at TestRunner.main(TestRunner)