Bug 2927

Summary: MapsBuilder loses the NULL terminator when reading a proc's maps file
Product: frysk Reporter: Adam Jocksch <ajocksch>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1582    

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)