Bug 5300

Summary: fhpd: "where" command aborts with NPE
Product: frysk Reporter: Rick Moseley <rmoseley>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2246    
Attachments: Source code that causes "where" to get an NPE.

Description Rick Moseley 2007-11-09 13:59:10 UTC
When trying to debug a proc with 2 threads and the process is started running
using the "go" command, the where command aborts with an NPE.  Here is the sequence:

 ./fhpd
(fhpd) run /home/rmoseley/testpeek
Attached to process 31653
(fhpd) where
#0 0x4a909810 in _start () from /lib/ld-2.6.so
(fhpd) go
(fhpd) attach /home/rmoseley/testpeek pid=31653 -task tid=31654 -cli
attach /home/rmoseley/testpeek pid=31653 -task tid=31653 -cli

(fhpd) where
[0.0]
java.lang.NullPointerException
   at frysk.hpd.WhereCommand.interpret(WhereCommand.java:93)
   at frysk.hpd.ParameterizedCommand.interpret(ParameterizedCommand.java:138)
   at frysk.hpd.MultiLevelCommand.interpret(MultiLevelCommand.java:119)
   at frysk.hpd.CLI.execCommand(CLI.java:318)
   at frysk.bindir.fhpd.main(fhpd.java:148)
Internal debugger error:  
(fhpd) 


This sequence occurs on the latest F7(as of Nov. 9) on an x86.  I will attach
the test program that makes this occur.
Comment 1 Rick Moseley 2007-11-09 14:02:21 UTC
Created attachment 2082 [details]
Source code that causes "where" to get an NPE.
Comment 2 Rick Moseley 2008-01-16 19:14:44 UTC
Cannot dup in current version.