Bug 3296 - Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 24
Summary: Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 24
Status: ASSIGNED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2245
  Show dependency treegraph
 
Reported: 2006-10-02 20:35 UTC by Andrew Cagney
Modified: 2007-01-03 22:11 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-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);