Bug 5300 - fhpd: "where" command aborts with NPE
Summary: fhpd: "where" command aborts with NPE
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2246
  Show dependency treegraph
 
Reported: 2007-11-09 13:59 UTC by Rick Moseley
Modified: 2008-01-16 19:14 UTC (History)
0 users

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


Attachments
Source code that causes "where" to get an NPE. (1.48 KB, text/plain)
2007-11-09 14:02 UTC, Rick Moseley
Details

Note You need to log in before you can comment on or make changes to this bug.
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.