Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of bounds error #1238

Closed
systemloc opened this issue Jan 12, 2023 · 0 comments
Closed

Out of bounds error #1238

systemloc opened this issue Jan 12, 2023 · 0 comments

Comments

@systemloc
Copy link

Windows platform, custom Hitachi H8 build.
I loaded a 512k binary, marked the code entry point, then ran the
scanner and did data analysis. On scrolling through the memory block, or clicking in the memory block a few times, I will soon get an error, "Index was outside the bounds of the array".

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Reko.Arch.H8.RegisterListOperand.DoRender(MachineInstructionRenderer renderer, MachineInstructionRendererOptions options)
at Reko.Core.Machine.AbstractMachineOperand.Render(MachineInstructionRenderer renderer, MachineInstructionRendererOptions options)
at Reko.Core.Machine.MachineInstruction.RenderOperands(MachineInstructionRenderer renderer, MachineInstructionRendererOptions options)
at Reko.UserInterfaces.WindowsForms.Controls.DisassemblyTextModel.RenderAsmLine(Object position, Program program, IProcessorArchitecture arch, MachineInstruction instr, MachineInstructionRendererOptions options)
at Reko.UserInterfaces.WindowsForms.Controls.DisassemblyTextModel.GetLineSpans(Int32 count)
at Reko.UserInterfaces.WindowsForms.Controls.TextViewLayout.VisibleLines(TextViewModel model, Size size, Graphics g, Font defaultFont, StyleStack styleStack)
at Reko.UserInterfaces.WindowsForms.Controls.TextView.ComputeLayout(Graphics g)
at Reko.UserInterfaces.WindowsForms.Controls.TextView.RecomputeLayout()
at Reko.UserInterfaces.WindowsForms.Controls.TextView.vScroll_ValueChanged(Object sender, EventArgs e)
at System.Windows.Forms.ScrollBar.DoScroll(ScrollEventType type)
at System.Windows.Forms.ScrollBar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Private.CoreLib.dll

WindowsDecompiler
Assembly Version: 0.11.4.0
Win32 Version: 0.11.4.0
CodeBase: file:///C:/Program%20Files/jklSoft/Reko/WindowsDecompiler.dll

System.Runtime
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Runtime.dll

System.ComponentModel.TypeConverter
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.ComponentModel.TypeConverter.dll

System.ComponentModel
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.ComponentModel.dll

Reko.UserInterfaces.WindowsForms
Assembly Version: 0.11.4.0
Win32 Version: 0.11.4.0
CodeBase: file:///C:/Program%20Files/jklSoft/Reko/Reko.UserInterfaces.WindowsForms.dll

System.Windows.Forms
Assembly Version: 6.0.2.0
Win32 Version: 6.0.1222.56810
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.12/System.Windows.Forms.dll

System.ComponentModel.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.ComponentModel.Primitives.dll

System.Windows.Forms.Primitives
Assembly Version: 6.0.2.0
Win32 Version: 6.0.1222.56810
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.12/System.Windows.Forms.Primitives.dll

System.Runtime.InteropServices
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Runtime.InteropServices.dll

System.Drawing.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Drawing.Primitives.dll

System.Collections.Specialized
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Collections.Specialized.dll

Reko.Gui
Assembly Version: 0.11.4.0
Win32 Version: 0.11.4.0
CodeBase: file:///C:/Program%20Files/jklSoft/Reko/Reko.Gui.dll

Reko.Core
Assembly Version: 0.11.4.0
Win32 Version: 0.11.4.0
CodeBase: file:///C:/Program%20Files/jklSoft/Reko/Reko.Core.dll

Reko
Assembly Version: 0.11.4.0
Win32 Version: 0.11.4.0
CodeBase: file:///C:/Program%20Files/jklSoft/Reko/Reko.dll

System.Collections
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Collections.dll

System.Drawing.Common
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.12/System.Drawing.Common.dll

System.Diagnostics.TraceSource
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Diagnostics.TraceSource.dll

Microsoft.Win32.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/Microsoft.Win32.Primitives.dll

System.Threading
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Threading.dll

System.ComponentModel.EventBasedAsync
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.ComponentModel.EventBasedAsync.dll

System.Threading.Thread
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Threading.Thread.dll

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 6.0.1222.56810
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.12/Accessibility.dll

Microsoft.Win32.SystemEvents
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.12/Microsoft.Win32.SystemEvents.dll

System.Collections.Concurrent
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Collections.Concurrent.dll

System.Numerics.Vectors
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Numerics.Vectors.dll

System.Resources.Extensions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.12/System.Resources.Extensions.dll

System.Memory
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Memory.dll

System.Drawing
Assembly Version: 6.0.2.0
Win32 Version: 6.0.1222.56810
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.12/System.Drawing.dll

System.ObjectModel
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.ObjectModel.dll

System.Linq
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Linq.dll

System.Runtime.Serialization.Formatters
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Runtime.Serialization.Formatters.dll

mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/mscorlib.dll

Microsoft.Win32.Registry
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/Microsoft.Win32.Registry.dll

System.Text.Encoding.Extensions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Text.Encoding.Extensions.dll

System.Collections.NonGeneric
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Collections.NonGeneric.dll

System.Private.Uri
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Private.Uri.dll

System.Xml.XmlSerializer
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Xml.XmlSerializer.dll

System.Private.Xml
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Private.Xml.dll

System.Runtime.Loader
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Runtime.Loader.dll

System.Xml.ReaderWriter
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Xml.ReaderWriter.dll

System.Text.RegularExpressions
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Text.RegularExpressions.dll

System.Reflection.Emit.ILGeneration
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Reflection.Emit.ILGeneration.dll

System.Reflection.Emit
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Reflection.Emit.dll

Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Private.Xml.dll

System.Reflection.Primitives
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Reflection.Primitives.dll

Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Private.Xml.dll

System.IO.FileSystem.Watcher
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.IO.FileSystem.Watcher.dll

System.Runtime.CompilerServices.Unsafe
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Runtime.CompilerServices.Unsafe.dll

System.Threading.ThreadPool
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Threading.ThreadPool.dll

Reko.Arch.H8
Assembly Version: 0.11.4.0
Win32 Version: 0.11.4.0
CodeBase: file:///C:/Program%20Files/jklSoft/Reko/Reko.Arch.H8.dll

System.Runtime.Numerics
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Runtime.Numerics.dll

System.Diagnostics.StackTrace
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Diagnostics.StackTrace.dll

System.Reflection.Metadata
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Reflection.Metadata.dll

System.Collections.Immutable
Assembly Version: 6.0.0.0
Win32 Version: 6.0.1222.56807
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Collections.Immutable.dll

************** JIT Debugging **************

@uxmal uxmal closed this as completed in b0dfb2b Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant