Bug 4759 - after TestStepping failure; execvp: Too many open files
Summary: after TestStepping failure; execvp: Too many open files
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on: 4751
Blocks: 2234
  Show dependency treegraph
 
Reported: 2007-07-09 20:47 UTC by Andrew Cagney
Modified: 2007-07-09 21:10 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 Andrew Cagney 2007-07-09 20:47:42 UTC
after the below failure lots of other tests are experiencing:
execvp: Too many open files

testASMSingleStep(frysk.rt.TestStepping)java.lang.ArrayIndexOutOfBoundsException: 0
   at frysk.dwfl.DwflFactory.doDwfl(TestRunner)
   at frysk.dwfl.DwflFactory.createDwfl(TestRunner)
   at frysk.dwfl.DwflFactory.createDwfl(TestRunner)
   at frysk.stack.RemoteFrame.getLines(TestRunner)
Comment 1 Andrew Cagney 2007-07-09 21:06:14 UTC
After applying these changes:

2007-07-06  Mike Cvet  <mcvet@redhat.com>

        * TestLib.java (tearDown): Calls DwflFactory.clear().

2007-07-09  Andrew Cagney  <cagney@redhat.com>

        * DwflCache.java (Mod): New class.
        (modMap): New static WeakHashMap.
        (getDwfl(Proc), currentDwfls, taskMod): Delete.
        (getDwfl(Task)): Store per-task Dwfl's using modMap.
        (clear): Clear the modMap.

        * DwflCache.java (getDwfl(Proc)): Make private.
        
        * DwflCache.java (removeDwfl(Task), removeDwfl(Proc)): Delete.

        * TestDwflCache.java: New file.

        * DwflFactory.java (dwflMap, tsakMap): Delete.
        (createDwfl(Proc), createDwfl(Task)): Delete.
        (clearDwfl(Proc), clearDwfl(Task), clear): Delete.
        (createDwfl): Rename doDwfl.
        * DwflCache.java: New file.

        * DwflFactory.java: Re-indent.

Running testASMSingleStep(frysk.rt.TestStepping) ...ERROR
  java.lang.ArrayIndexOutOfBoundsException: 0

and no exec problems.