FS#66036 - [bochs] 2.6.11 freezes when I try to view the stack, GDT, or IDT.

Attached to Project: Community Packages
Opened by Jacob Garby (j4cobgarby) - Monday, 30 March 2020, 18:56 GMT
Last edited by Toolybird (Toolybird) - Saturday, 27 August 2022, 02:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When I load up an .iso in bochs and press either "Stack", "GDT", or "IDT" under the 'View' menu, the whole program becomes entirely unresponsive. This only happens if an .iso has been loaded.

Additional info:

* package version: 2.6.11
* this bug *does not* happen on version 2.6.9, which is the version I'm running on another computer, also running arch.

Bochs gives the following GTK warning when I open the "View" menu. I don't think this is relevant, since it happens when I open the "View" menu, not when I click on the faulty options in the "View" menu, but just in case it is useful, then here:

```
** (.:81977): WARNING **: 19:53:11.075: Invalid borders specified for theme pixmap:
/usr/share/themes/Breath/gtk-2.0/../assets/line-h.png,
borders don't fit within the image
```

Steps to reproduce:

1) Get bochs 2.6.11
2) Open an .iso in it
3) Click View>GDT
4) *Unresponsive*
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 27 August 2022, 02:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  bochs 2.7-1
Comment by stevenkang (stevenkang) - Monday, 03 May 2021, 08:20 GMT
I have same problem, there is a solution that change fix-build.patch as below then rebuild, I don't know how to create pull request to this package.

Description: Fix the build with SMP enabled
Origin: https://sourceforge.net/p/bochs/code/13778/

Index: bochs/bx_debug/dbg_main.cc
===================================================================
--- bochs/bx_debug/dbg_main.cc (revision 13777)
+++ bochs/bx_debug/dbg_main.cc (working copy)
@@ -1494,11 +1494,11 @@
{
char cpu_param_name[16];

- Bit32u index = BX_ITLB_INDEX_OF(laddr);
+ Bit32u index = BX_CPU(dbg_cpu)->ITLB.get_index_of(laddr);
sprintf(cpu_param_name, "ITLB.entry%d", index);
bx_dbg_show_param_command(cpu_param_name, 0);

- index = BX_DTLB_INDEX_OF(laddr, 0);
+ index = BX_CPU(dbg_cpu)->DTLB.get_index_of(laddr);
sprintf(cpu_param_name, "DTLB.entry%d", index);
bx_dbg_show_param_command(cpu_param_name, 0);
}

Index: bochs/gui/gtk_enh_dbg_osdep.cc
===================================================================
--- bochs/gui/gtk_enh_dbg_osdep.cc
+++ bochs/gui/gtk_enh_dbg_osdep.cc
@@ -819,7 +819,7 @@ void ShowDListCols (int totcols)
while (++i < firsthide)
gtk_tree_view_column_set_visible(AllCols[i], TRUE);
while (i < 23)
- gtk_tree_view_column_set_visible(AllCols[i], FALSE);
+ gtk_tree_view_column_set_visible(AllCols[i++], FALSE);
}

Loading...