Bug 3296

Summary: Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 24
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: ASSIGNED ---    
Severity: normal CC: npremji
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2245    

Description Andrew Cagney 2006-10-02 20:35:02 UTC
Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 24
   at frysk.proc.LinuxIa32Syscall.syscallByNum(ftrace)
   at frysk.proc.LinuxIa32$1.getSyscall(ftrace)
   at ftrace$SyscallObserver.updateSyscallEnter(ftrace)
   at frysk.proc.Task.notifySyscallEnter(ftrace)
   at frysk.proc.TaskState$Running.handleSyscalledEvent(ftrace)
   at frysk.proc.Task.processSyscalledEvent(ftrace)
   at frysk.proc.LinuxHost$PollWaitOnSigChld$2.syscallEvent(ftrace)
   at frysk.sys.Wait.waitAllNoHang(ftrace)
   at frysk.proc.LinuxHost$PollWaitOnSigChld.execute(ftrace)
   at frysk.event.EventLoop.runEventLoop(ftrace)
   at frysk.event.EventLoop.run(ftrace)

./frysk/bindir/ftrace gnome-terminal --disable-factory
Comment 1 Andrew Cagney 2006-11-21 22:42:25 UTC
jrb found this
Comment 2 Nurdin Premji 2007-01-03 22:11:17 UTC
with new option parser requires to run with.

./frysk/bindir/ftrace -- gnome-terminal --disable-factory

happens in LinuxIa32Syscall.syscallByNum at this point:

else
{
return ipcSubcallList[subSyscallNumber];
}

ipcSubcallList has 24 elements, so the 24 is looking for the 25th element.

That 24 is provided by:
subSyscallNumber = (int) task.getIsa().getRegisterByName("ebx").get (task);