Bug 2121 - testAttachedSingleExec(frysk.proc.TestExec)java.lang.NullPointerException
Summary: testAttachedSingleExec(frysk.proc.TestExec)java.lang.NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 1586
  Show dependency treegraph
 
Reported: 2006-01-07 20:11 UTC by Andrew Cagney
Modified: 2006-01-07 20:41 UTC (History)
1 user (show)

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 Andrew Cagney 2006-01-07 20:11:18 UTC
testAttachedSingleExec(frysk.proc.TestExec)java.lang.NullPointerException
   at frysk.proc.LinuxHost$ProcChanges.update(int)
(/home/scratch/frysk/frysk/frysk-core/frysk/proc/LinuxHost.java:139)
   at frysk.proc.LinuxHost$1.buildId(int)
(/home/scratch/frysk/frysk/frysk-core/frysk/proc/LinuxHost.java:164)
   at frysk.sys.proc.IdBuilder.scan(gnu.gcj.RawData)
(/home/scratch/frysk/frysk/frysk-sys/frysk/sys/proc/cni/IdBuilder.cxx:86)
   at frysk.sys.proc.IdBuilder.construct(int)
(/home/scratch/frysk/frysk/frysk-sys/frysk/sys/proc/IdBuilder.java:61)
   at frysk.sys.proc.IdBuilder.construct()
(/home/scratch/frysk/frysk/frysk-sys/frysk/sys/proc/IdBuilder.java:74)
   at frysk.proc.LinuxHost.sendRefresh(boolean)
(/home/scratch/frysk/frysk/frysk-core/frysk/proc/LinuxHost.java:168)
   at frysk.proc.HostState$1.processRequestRefresh(frysk.proc.Host, boolean)
(/home/scratch/frysk/frysk/frysk-core/frysk/proc/HostState.java:83)
   at frysk.proc.Host$1.execute()
(/home/scratch/frysk/frysk/frysk-core/frysk/proc/Host.java:160)
   at frysk.event.EventLoop.runEventLoop(boolean)
(/home/scratch/frysk/frysk/frysk-core/frysk/event/EventLoop.java:311)
   at frysk.event.EventLoop.runPending()
(/home/scratch/frysk/frysk/frysk-core/frysk/event/EventLoop.java:356)
   at frysk.proc.TestExec.testAttachedSingleExec()
(/home/scratch/frysk/frysk/frysk-core/frysk/proc/TestExec.java:145)
   at TestRunner.main(java.lang.String[])
(/home/scratch/frysk/native/frysk-core/TestRunner.java:140)
   at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
Comment 1 Andrew Cagney 2006-01-07 20:41:51 UTC
Index: frysk-core/frysk/proc/ChangeLog
2006-01-07  Andrew Cagney  <cagney@redhat.com>

        * LinuxProc.java (getStat): Make package visible.
        (stat): Make private.
        * LinuxHost.java (ProcChanges.update): Use LinuxProc.getStat, not
        LinuxProc.stat.

was using LinuxProc.stat before it had been initialized; LinuxProc.getStat
ensures that that can't happen.
Comment 2 Stan Cox 2006-01-08 02:05:24 UTC
Subject: Re: 
	testAttachedSingleExec(frysk.proc.TestExec)java.lang.NullPointerException

On Sat, 2006-01-07 at 20:41 +0000, cagney at redhat dot com wrote:

ah luck of the draw for me...thanks