Giter Site home page Giter Site logo

radareorg / iaito Goto Github PK

View Code? Open in Web Editor NEW
892.0 892.0 81.0 16 MB

Official QT frontend of radare2

License: GNU General Public License v3.0

Batchfile 0.17% Shell 0.45% Dockerfile 0.10% Makefile 0.34% Python 0.54% PowerShell 0.04% QMake 1.73% C++ 93.83% Meson 0.53% C 0.63% CSS 1.53% Roff 0.13%

iaito's Introduction

We have a new website! If you want to contribute, have a look at the repository!

old website link

How to build documentation html pages

1. Install sphinx

sudo pip install sphinx

2. Build documentation

cd radareorg
sphinx-build source build

Open index.html located in build directory to start reading the documentation.

iaito's People

Contributors

a1ext avatar abogical avatar adikso avatar ballessay avatar fcasal avatar gauravkghildiyal avatar hteso avatar itayc0hen avatar karliss avatar mrexodia avatar ndaprela avatar nezza avatar nirmalmanoj avatar optizone avatar pelijah avatar probonopd avatar prodrigestivill avatar ps1337 avatar pwntester avatar radare avatar rrreeezzz avatar siebelstim avatar surendrajat avatar thestr4ng3r avatar trufae avatar vane11ope avatar xambroz avatar xarkes avatar xvilka avatar yossizap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iaito's Issues

Unable to build from source on macos

Environment Details

MacBook Pro (13-inch, M1, 2020)
Big Sur 11.3 (20E232)

zsh: command not found: iaito
Wed May  5 14:23:31 CEST 2021
radare2 5.2.0 0 @ darwin-arm-64 git.
commit: HEAD build: 2021-04-11__23:39:32
Darwin arm64

Description

When I try to build from source I am getting a following error:

In file included from ../src/dialogs/WriteCommandsDialogs.cpp:1:
In file included from ../src/dialogs/WriteCommandsDialogs.h:5:
../src/core/IaitoCommon.h:8:10: fatal error: 'r_core.h' file not found
#include "r_core.h"
         ^~~~~~~~~~
In file included from ../src/Main.cpp:2:
In file included from ../src/IaitoApplication.h:9:
In file included from ../src/core/MainWindow.h:4:
In file included from ../src/core/Iaito.h:4:
../src/core/IaitoCommon.h:8:10: fatal error: 'r_core.h' file not found
#include "r_core.h"
         ^~~~~~~~~~
In file included from ../src/core/Iaito.cpp:13:
In file included from ../src/common/TempConfig.h:5:
../src/core/IaitoCommon.h:8:10: fatal error: 'r_core.h' file not found
#include "r_core.h"
         ^~~~~~~~~~
In file included from ../src/widgets/DisassemblerGraphView.cpp:2:
In file included from ../src/widgets/DisassemblerGraphView.h:11:
In file included from ../src/widgets/IaitoGraphView.h:12:
In file included from ../src/widgets/GraphView.h:18:
In file included from ../src/core/Iaito.h:4:
../src/core/IaitoCommon.h:8:10: fatal error: 'r_core.h' file not found
#include "r_core.h"
         ^~~~~~~~~~
1 error generated.
make[1]: *** [Makefile:8288: WriteCommandsDialogs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[1]: *** [Makefile:8153: Main.o] Error 1
1 error generated.
make[1]: *** [Makefile:8230: Iaito.o] Error 1
1 error generated.
make[1]: *** [Makefile:8425: DisassemblerGraphView.o] Error 1
make[1]: Leaving directory '/iaito/build'
make: *** [Makefile:53: iaito] Error 2

Support for M1 Macbooks

When I try to run "make" command, I got the following error which seems due to the arm architecture:

ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [iaito.app/Contents/MacOS/iaito] Error 1
make: *** [iaito] Error 2

I'd be glad if you can make iaito be ready for M1 Macbooks.

Several compiling errors when compiling iaito from source

Environment Details

iaito 5.5.0
Linux x86_64 (Linux Mint 20.3)

Description

Because the fix of #51 is not released, I'm building from source, and getting several compiling errors.

Some are ambiguous convert to QVariant, I fixed them using solution from this link. Some are ut64 vs unsigned long long int issues.

This is my patch, might help

diff --git a/src/dialogs/HexdumpRangeDialog.cpp b/src/dialogs/HexdumpRangeDialog.cpp
index fffafd89..f7d90c1a 100644
--- a/src/dialogs/HexdumpRangeDialog.cpp
+++ b/src/dialogs/HexdumpRangeDialog.cpp
@@ -38,12 +38,12 @@ bool HexdumpRangeDialog::empty()
     return emptyRange;
 }
 
-unsigned long long HexdumpRangeDialog::getStartAddress() const
+ut64 HexdumpRangeDialog::getStartAddress() const
 {
     return startAddress;
 }
 
-unsigned long long HexdumpRangeDialog::getEndAddress() const
+ut64 HexdumpRangeDialog::getEndAddress() const
 {
     return endAddress;
 }
diff --git a/src/widgets/BreakpointWidget.cpp b/src/widgets/BreakpointWidget.cpp
index 941b620a..ab8a976e 100644
--- a/src/widgets/BreakpointWidget.cpp
+++ b/src/widgets/BreakpointWidget.cpp
@@ -77,7 +77,7 @@ QVariant BreakpointModel::data(const QModelIndex &index, int role) const
     case Qt::EditRole:
         switch (index.column()) {
         case AddrColumn:
-            return breakpoint.addr;
+            return QVariant::fromValue(breakpoint.addr);
         case TraceColumn:
             return breakpoint.trace;
         case EnabledColumn:
diff --git a/src/widgets/GraphGridLayout.cpp b/src/widgets/GraphGridLayout.cpp
index 02951ea8..22f77696 100644
--- a/src/widgets/GraphGridLayout.cpp
+++ b/src/widgets/GraphGridLayout.cpp
@@ -232,7 +232,7 @@ std::vector<ut64> GraphGridLayout::topoSort(LayoutState &state, ut64 entry)
     return blockOrder;
 }
 
-void GraphGridLayout::assignRows(GraphGridLayout::LayoutState &state, const std::vector<unsigned long long> &blockOrder)
+void GraphGridLayout::assignRows(GraphGridLayout::LayoutState &state, const std::vector<ut64> &blockOrder)
 {
     for (auto it = blockOrder.rbegin(), end = blockOrder.rend(); it != end; it++) {
         auto &block = state.grid_blocks[*it];
diff --git a/src/widgets/GraphHorizontalAdapter.cpp b/src/widgets/GraphHorizontalAdapter.cpp
index 929db8e7..b9d11cfd 100644
--- a/src/widgets/GraphHorizontalAdapter.cpp
+++ b/src/widgets/GraphHorizontalAdapter.cpp
@@ -9,7 +9,7 @@ GraphHorizontalAdapter::GraphHorizontalAdapter(std::unique_ptr<GraphLayout> layo
 
 void GraphHorizontalAdapter::CalculateLayout(
     GraphLayout::Graph &blocks,
-    unsigned long long entry,
+    ut64 entry,
     int &width,
     int &height) const
 {
diff --git a/src/widgets/ImportsWidget.cpp b/src/widgets/ImportsWidget.cpp
index 0d318da1..9e39150a 100644
--- a/src/widgets/ImportsWidget.cpp
+++ b/src/widgets/ImportsWidget.cpp
@@ -59,7 +59,7 @@ QVariant ImportsModel::data(const QModelIndex &index, int role) const
     case ImportsModel::ImportDescriptionRole:
         return QVariant::fromValue(import);
     case ImportsModel::AddressRole:
-        return import.plt;
+        return QVariant::fromValue(import.plt);
     default:
         break;
     }
diff --git a/src/widgets/RelocsWidget.cpp b/src/widgets/RelocsWidget.cpp
index 112e3e69..571462b5 100644
--- a/src/widgets/RelocsWidget.cpp
+++ b/src/widgets/RelocsWidget.cpp
@@ -42,7 +42,7 @@ QVariant RelocsModel::data(const QModelIndex &index, int role) const
     case RelocsModel::RelocDescriptionRole:
         return QVariant::fromValue(reloc);
     case RelocsModel::AddressRole:
-        return reloc.vaddr;
+        return QVariant::fromValue(reloc.vaddr);
     default:
         break;
     }
diff --git a/src/widgets/ResourcesWidget.cpp b/src/widgets/ResourcesWidget.cpp
index e8a49d07..6996611f 100644
--- a/src/widgets/ResourcesWidget.cpp
+++ b/src/widgets/ResourcesWidget.cpp
@@ -49,13 +49,13 @@ QVariant ResourcesModel::data(const QModelIndex &index, int role) const
         case NAME:
             return res.name;
         case VADDR:
-            return res.vaddr;
+            return QVariant::fromValue(res.vaddr);
         case INDEX:
-            return res.index;
+            return QVariant::fromValue(res.index);
         case TYPE:
             return res.type;
         case SIZE:
-            return res.size;
+            return QVariant::fromValue(res.size);
         case LANG:
             return res.lang;
         default:

[FIXED] Release 5.2.0 has somehow broken the decompiler

Environment Details

Despite we only fix issues reproducible in git-master branch, it's fine to report issues found in releases. And those will be closed when a new release comes out.

# copypaste this script into your shell and replace it with the output
iaito -v
date
r2 -v
uname -ms
$ iaito -v
QCommandLineParser: already having an option named "w"
iaito 0.1.0
$ date
2021-04-17T03:56:08 CEST
$ r2 -v
radare2 5.2.0 0 @ linux-x86-64 git.5.2.0
commit: unknown build: 2021-04-16__00:49:31

Failed to parse JSON for command "pdcj @ 4199872": illegal value
(break){"annotations":[{"start":0,"end":27,"offset":4199872,"type":"offset"},{"start":27,"end":36,"offset":4199873,"type":"offset"},{"start":36,"end":47,"offset":4199876,"type":"offset"},{"start":47,"end":86,"offset":4199880,"type":"offset"},{"start":86,"end":158,"offset":4199885,"type":"offset"},{"start":158,"end":193,"offset":4199892,"type":"offset"},{"start":193,"end":219,"offset":4199892,"type":"offset"},{"start":219,"end":226,"offset":4199897,"type":"offset"},{"start":226,"end":237,"offset":4199902,"type":"offset"},{"start":237,"end":247,"offset":4199906,"type":"offset"},{"start":247,"end":272,"offset":4199907,"type":"offset"}],"code":"push rbp //int main();rbp = rsprsp -= 0x20__main () //sym.__main ; sym.__mainrcx = rip + "Hello World!" //0x404030 ; const char *s ; str.Hello_World_puts () //sym.puts ; sym.puts//int puts("Hello World!")eax = 0rsp += 0x200x004015e2return //rsp ; rsp\n "}

Description

It seems that the iaito 5.2.0 has somehow broken the decompiler feature.
I am geting error: Failed to parse JSON from pdc. Or I get some garbage.
Using the iaito console works for both pdc or pdd so decompiler is there and working in radar2

  1. r2pm -ci
  2. run iaito
  3. open /bin/false
  4. seek to main (s main from console)
  5. click to decompiler tab ... not psossible
  6. pdc - worked in console
  7. pdd - worked in console

Documentation suggestion

When arriving at your repo for the first time, the about and headers describe the forks that resulted in iaito. The basics about what iaito does is absent. Starting off by mentioning reverse engineering would be a great improvement.

Missing .dlls

Environment Details

The Win64 release is missing 4 .dlls. I downloaded the latest radare2 and tried to copy paste, but iaito depends on older versions of them. Please just include all of the relevant .dlls for iaito to run in the release package. I shouldn't have to install them into my system directory, and that won't even work if I'm using a newer version of the dependency.

Missing steps in README for Windows (release 5.3.1)

Environment Details

OS: Windows 10

.\iaito.exe -v
QCommandLineParser: already having an option named "w"
iaito 5.2.2
date
10 August, 2021 11:28:58 PM
.\radare2.exe -v
radare2 5.3.1 1 @ windows-x86-64 git.5.3.1
commit: d894f967e857a1cfa84144eb4bc0bdc87c540eee build: Tue 06/15/2021__10:11:04.68

Description

The issue with the Windows release 5.3.1 is that it's missing some files that are inside the radare2 repository. When I ran iaito.exe, it gave me a few errors saying some .dll files were missing.
I fixed it by:

  • copying the contents of the bin/ directory of radare2 into the same directory as iaito.exe
  • copying the directory share/ of radare2 into the same directory as iaito.exe

I think these two instructions would be helpful to put in the README.

Segmentation fault opening main iaito window (M1 Mac, macOS 12)

Environment Details

QCommandLineParser: already having an option named "w"
iaito 5.5.0
Sun Feb  6 15:24:56 CET 2022
radare2 5.6.0 27361 @ darwin-arm-64 git.5.6.0
commit: e9e600a9a4c22a1e4aa901ab50e1d744648bd722 build: 2022-02-06__13:47:14
Darwin arm64

Description

Iaito crashes (seg fault) after pressing start on the file selection dialog. It doesn't matter if I select a file or check "don't open any file". Installed r2 from source successfully (and fully working).

Following was used to build iaito:

brew install qmake qt@5
brew link --force qt@5
git clone https://github.com/radareorg/iaito.git
cd iaito
./configure
make -j8
make run #or make install

Following is the lldb output (with and without selected file):

(lldb) process launch
Process 69657 launched: '/usr/local/bin/iaito' (arm64)
2022-02-06 15:31:39.345526+0100 iaito[69657:600121] QCommandLineParser: already having an option named "w"
2022-02-06 15:31:40.050198+0100 iaito[69657:600121] Plugins are loaded from "/Users/max/Library/Application Support/radareorg/iaito/plugins"
2022-02-06 15:31:40.050264+0100 iaito[69657:600121] Loaded 0 plugin(s).
2022-02-06 15:31:40.050280+0100 iaito[69657:600121] Plugins are loaded from "/Library/Application Support/radareorg/iaito/plugins"
2022-02-06 15:31:40.050515+0100 iaito[69657:600121] Plugins are loaded from "/usr/local/bin/plugins"
2022-02-06 15:31:40.361970+0100 iaito[69657:600121] [qt.qpa.fonts] Populating font family aliases took 107 ms. Replace uses of missing font family "Helvetica, Arial, Sans-serif" with one that exists to avoid this cost.
Process 69657 stopped
* thread #9, name = 'Thread (pooled)', stop reason = EXC_BAD_ACCESS (code=1, address=0x90)
    frame #0: 0x0000000100619144 libr_cons.dylib`r_cons_sleep_end(user=0x000060000291f800) at cons.c:500:9
   497 	}
   498
   499 	R_API void r_cons_sleep_end(void *user) {
-> 500 		if (I->cb_sleep_end) {
   501 			I->cb_sleep_end (I->user, user);
   502 		}
   503 	}
Target 0: (iaito) stopped.

src/common/Decompiler.cpp:60:47: warning: missing initializer for member

Compilation of the 0.1.1 release reports this warning

[ 85%] Building CXX object CMakeFiles/r2cutter.dir/common/Decompiler.cpp.o
/usr/lib64/ccache/g++ -DCUTTER_ENABLE_GRAPHVIZ -DCUTTER_ENABLE_KSYNTAXHIGHLIGHTING -DCUTTER_SOURCE_BUILD -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -Dr2cutter_EXPORTS -IBUILD/r2cutter-0.1.1/x86_64-redhat-linux-gnu -IBUILD/r2cutter-0.1.1/src -IBUILD/r2cutter-0.1.1/x86_64-redhat-linux-gnu/r2cutter_autogen/include -IBUILD/r2cutter-0.1.1/src/core -IBUILD/r2cutter-0.1.1/src/widgets -IBUILD/r2cutter-0.1.1/src/common -IBUILD/r2cutter-0.1.1/src/plugins -IBUILD/r2cutter-0.1.1/src/menus -IBUILD/r2cutter-0.1.1/src/. -isystem /usr/include/graphviz -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/libr -isystem /usr/include/libr/sdb -isystem /usr/include/capstone -isystem /usr/include/KF5/KSyntaxHighlighting -isystem /usr/include/KF5 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fvisibility=hidden -Wall -Wextra -fPIC -std=gnu++11 -o CMakeFiles/r2cutter.dir/common/Decompiler.cpp.o -c BUILD/r2cutter-0.1.1/src/common/Decompiler.cpp
BUILD/r2cutter-0.1.1/src/common/Decompiler.cpp: In lambda function:
BUILD/r2cutter-0.1.1/src/common/Decompiler.cpp:60:47: warning: missing initializer for member 'r_code_annotation_t::end' [-Wmissing-field-initializers]
60 | RCodeAnnotation annotationi = { 0 };
| ^
BUILD/r2cutter-0.1.1/src/common/Decompiler.cpp:60:47: warning: missing initializer for member 'r_code_annotation_t::type' [-Wmissing-field-initializers]
BUILD/r2cutter-0.1.1/src/common/Decompiler.cpp:60:47: warning: missing initializer for member 'r_code_annotation_t::' [-Wmissing-field-initializers]

Unable to install and build from source on M1 mac

Environment Details

MacBook Pro (13-inch, M1, 2020)
Big Sur 11.3 (20E232)

zsh: command not found: iaito
Wed May  5 14:23:31 CEST 2021
radare2 5.2.0 0 @ darwin-arm-64 git.
commit: HEAD build: 2021-04-11__23:39:32
Darwin arm64

Description

When I try to install iaito I am getting a following error:
Screenshot
Related to: #6

When I try to build from source I am getting a following error:

In file included from ../src/dialogs/WriteCommandsDialogs.cpp:1:
In file included from ../src/dialogs/WriteCommandsDialogs.h:5:
../src/core/IaitoCommon.h:8:10: fatal error: 'r_core.h' file not found
#include "r_core.h"
         ^~~~~~~~~~
In file included from ../src/Main.cpp:2:
In file included from ../src/IaitoApplication.h:9:
In file included from ../src/core/MainWindow.h:4:
In file included from ../src/core/Iaito.h:4:
../src/core/IaitoCommon.h:8:10: fatal error: 'r_core.h' file not found
#include "r_core.h"
         ^~~~~~~~~~
In file included from ../src/core/Iaito.cpp:13:
In file included from ../src/common/TempConfig.h:5:
../src/core/IaitoCommon.h:8:10: fatal error: 'r_core.h' file not found
#include "r_core.h"
         ^~~~~~~~~~
In file included from ../src/widgets/DisassemblerGraphView.cpp:2:
In file included from ../src/widgets/DisassemblerGraphView.h:11:
In file included from ../src/widgets/IaitoGraphView.h:12:
In file included from ../src/widgets/GraphView.h:18:
In file included from ../src/core/Iaito.h:4:
../src/core/IaitoCommon.h:8:10: fatal error: 'r_core.h' file not found
#include "r_core.h"
         ^~~~~~~~~~
1 error generated.
make[1]: *** [Makefile:8288: WriteCommandsDialogs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[1]: *** [Makefile:8153: Main.o] Error 1
1 error generated.
make[1]: *** [Makefile:8230: Iaito.o] Error 1
1 error generated.
make[1]: *** [Makefile:8425: DisassemblerGraphView.o] Error 1
make[1]: Leaving directory '/iaito/build'
make: *** [Makefile:53: iaito] Error 2

Segmentation fault in ImportsModel::rowCount(QModelIndex const&) const

Environment Details

I use arch linux with swaywm (wayland), I tried running iaito with QT_QPA_PLATFORM=xcb and without it.

neo@fukushima ~
λ iaito -v
date
r2 -v
uname -ms

QCommandLineParser: already having an option named "w"
iaito 0.1.0
2021-04-15T14:21:08 CEST
radare2 5.2.0 25999 @ linux-x86-64 git.5.2.0-28-ged5d73d3a7
commit: ed5d73d3a75a5c86392116fd8ed6c38cf557d539 build: 2021-04-15__09:17:02
Linux x86_64

Description

When I run iaito I get a segfault:

neo@fukushima ~/clone/iaito master*
λ build/iaito

QCommandLineParser: already having an option named "w"
Plugins are loaded from "/home/neo/.local/share/radareorg/iaito/plugins"
Loaded 0 plugin(s).
Plugins are loaded from "/usr/local/share/radareorg/iaito/plugins"
Plugins are loaded from "/usr/share/radareorg/iaito/plugins"
[1]    31734 segmentation fault (core dumped)  build/iaito

neo@fukushima ~/clone/iaito master*
λ QT_QPA_PLATFORM=xcb build/iaito

QCommandLineParser: already having an option named "w"
Plugins are loaded from "/home/neo/.local/share/radareorg/iaito/plugins"
Loaded 0 plugin(s).
Plugins are loaded from "/usr/local/share/radareorg/iaito/plugins"
Plugins are loaded from "/usr/share/radareorg/iaito/plugins"
[1]    31806 segmentation fault (core dumped)  QT_QPA_PLATFORM=xcb build/iaito

When I open it in gdb and run it I get the following output:

Reading symbols from build/iaito...
(No debugging symbols found in build/iaito)
(gdb) run
Starting program: /home/neo/clone/iaito/build/iaito
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff1128640 (LWP 31388)]
[New Thread 0x7fffe4bce640 (LWP 31389)]
[New Thread 0x7fffdffff640 (LWP 31390)]
[New Thread 0x7fffd7fff640 (LWP 31391)]
[New Thread 0x7fffdf7fe640 (LWP 31392)]
[New Thread 0x7fffdeffd640 (LWP 31393)]
[New Thread 0x7fffde7fc640 (LWP 31394)]
[New Thread 0x7fffddffb640 (LWP 31395)]
[New Thread 0x7fffdd7fa640 (LWP 31396)]
[New Thread 0x7fffdcff9640 (LWP 31397)]
[New Thread 0x7fffd77fe640 (LWP 31398)]
[New Thread 0x7fffd6ffd640 (LWP 31399)]
[New Thread 0x7fffd67fc640 (LWP 31400)]
[New Thread 0x7fffd5ffb640 (LWP 31401)]
[New Thread 0x7fffd57fa640 (LWP 31402)]
[New Thread 0x7fffd4ff9640 (LWP 31403)]
[New Thread 0x7fff9ffff640 (LWP 31404)]
[New Thread 0x7fff97fff640 (LWP 31405)]
[New Thread 0x7fff9f7fe640 (LWP 31406)]
[New Thread 0x7fff9effd640 (LWP 31407)]
[New Thread 0x7fff9e7fc640 (LWP 31408)]
[New Thread 0x7fff9dffb640 (LWP 31409)]
[New Thread 0x7fff9d7fa640 (LWP 31410)]
[New Thread 0x7fff9cff9640 (LWP 31411)]
QCommandLineParser: already having an option named "w"
[New Thread 0x7fff977fe640 (LWP 31412)]
Plugins are loaded from "/home/neo/.local/share/radareorg/iaito/plugins"
Loaded 0 plugin(s).
Plugins are loaded from "/usr/local/share/radareorg/iaito/plugins"
Plugins are loaded from "/usr/share/radareorg/iaito/plugins"

Thread 1 "iaito" received signal SIGSEGV, Segmentation fault.
0x00005555556f5377 in ImportsModel::rowCount(QModelIndex const&) const ()
(gdb)

I'm not sure what else info to provide. Feel free to ask anything.

[FIXED] In 5.2.0 release the list of RIO is empty

Environment Details

# copypaste this script into your shell and replace it with the output
iaito -v
date
r2 -v
uname -ms

iaito -v
QCommandLineParser: already having an option named "w"
iaito 0.1.0
date
2021-04-17T04:36:42 CEST
r2 -v
radare2 5.2.0 0 @ linux-x86-64 git.5.2.0
commit: unknown build: 2021-04-16__00:49:31
uname -ms
Linux x86_64

Description

In the release 5.2.0 the list of RIO plugins is empty.

Screenshot from 2021-04-17 04-34-36

As a result even the file select dialogue is not displaying any other means accessing data then "file://".

Compiling with kf5-syntax-highlighting-devel-5.91.0

Environment Details

Hello,
kf5-syntax-highlighting-devel between version 5.90.0 and 5.91.0 dropped in the cmake files advertising of the /usr/include/KF5 include directory.

https://bugzilla.redhat.com/show_bug.cgi?id=2059619

iaito version 5.5.0 commit 28a1099

I have used this patch to make iaito compile with the new version of syntax highlighting

diff -ru iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/CMakeLists.txt iaito-28a1099603b3fa671bfbb226025d1a8c45558471.new/src/CMakeLists.txt
--- iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/CMakeLists.txt	2022-03-01 17:11:21.973408404 +0100
+++ iaito-28a1099603b3fa671bfbb226025d1a8c45558471.new/src/CMakeLists.txt	2022-03-03 00:58:01.088823994 +0100
@@ -269,6 +269,7 @@
 if(TARGET KF5::SyntaxHighlighting)
     target_link_libraries(iaito PRIVATE KF5::SyntaxHighlighting)
     target_compile_definitions(iaito PRIVATE IAITO_ENABLE_KSYNTAXHIGHLIGHTING)
+    include_directories(AFTER /usr/include/KF5)
 endif()
 
 if (IAITO_APPIMAGE_BUILD)

====== Build log:

Actual results:
/usr/bin/g++ -DIAITO_ENABLE_GRAPHVIZ -DIAITO_ENABLE_KSYNTAXHIGHLIGHTING -DIAITO_SOURCE_BUILD -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -Diaito_EXPORTS -I/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/redhat-linux-build -I/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src -I/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/redhat-linux-build/iaito_autogen/include -I/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/core -I/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets -I/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/common -I/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/plugins -I/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/menus -I/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/. -isystem /usr/include/graphviz -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/libr -isystem /usr/include/libr/sdb -isystem /usr/include/capstone -isystem /usr/include/KF5/KSyntaxHighlighting -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fvisibility=hidden   -Wall -Wextra -fPIC -std=gnu++11 -MD -MT CMakeFiles/iaito.dir/common/SyntaxHighlighter.cpp.o -MF CMakeFiles/iaito.dir/common/SyntaxHighlighter.cpp.o.d -o CMakeFiles/iaito.dir/common/SyntaxHighlighter.cpp.o -c /builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/common/SyntaxHighlighter.cpp
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/common/Configuration.cpp:10:10: fatal error: KSyntaxHighlighting/repository.h: No such file or directory
   10 | #include <KSyntaxHighlighting/repository.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/iaito.dir/build.make:901: CMakeFiles/iaito.dir/common/Configuration.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/redhat-linux-build/iaito_autogen/P66WHCG54J/moc_SyntaxHighlighter.cpp:10,
                 from /builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/redhat-linux-build/iaito_autogen/mocs_compilation.cpp:24:
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/redhat-linux-build/iaito_autogen/P66WHCG54J/../../../src/common/SyntaxHighlighter.h:13:10: fatal error: KSyntaxHighlighting/syntaxhighlighter.h: No such file or directory
   13 | #include <KSyntaxHighlighting/syntaxhighlighter.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/common/SyntaxHighlighter.cpp:2:
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/common/SyntaxHighlighter.h:13:10: fatal error: KSyntaxHighlighting/syntaxhighlighter.h: No such file or directory
   13 | #include <KSyntaxHighlighting/syntaxhighlighter.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/iaito.dir/build.make:313: CMakeFiles/iaito.dir/iaito_autogen/mocs_compilation.cpp.o] Error 1
gmake[2]: *** [CMakeFiles/iaito.dir/build.make:971: CMakeFiles/iaito.dir/common/SyntaxHighlighter.cpp.o] Error 1
In file included from /builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/DisassemblerGraphView.cpp:9:
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/common/SyntaxHighlighter.h:13:10: fatal error: KSyntaxHighlighting/syntaxhighlighter.h: No such file or directory
   13 | #include <KSyntaxHighlighting/syntaxhighlighter.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/iaito.dir/build.make:383: CMakeFiles/iaito.dir/widgets/DisassemblerGraphView.cpp.o] Error 1
In file included from /builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/HexdumpWidget.cpp:7:
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/common/SyntaxHighlighter.h:13:10: fatal error: KSyntaxHighlighting/syntaxhighlighter.h: No such file or directory
   13 | #include <KSyntaxHighlighting/syntaxhighlighter.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/iaito.dir/build.make:887: CMakeFiles/iaito.dir/widgets/HexdumpWidget.cpp.o] Error 1
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/RelocsWidget.cpp: In member function 'virtual int RelocsModel::rowCount(const QModelIndex&) const':
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/RelocsWidget.cpp:14:46: warning: unused parameter 'parent' [-Wunused-parameter]
   14 | int RelocsModel::rowCount(const QModelIndex &parent) const
      |                           ~~~~~~~~~~~~~~~~~~~^~~~~~
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/ImportsWidget.cpp: In member function 'virtual int ImportsModel::rowCount(const QModelIndex&) const':
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/ImportsWidget.cpp:17:47: warning: unused parameter 'parent' [-Wunused-parameter]
   17 | int ImportsModel::rowCount(const QModelIndex &parent) const
      |                            ~~~~~~~~~~~~~~~~~~~^~~~~~
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/ExportsWidget.cpp: In member function 'virtual bool ExportsProxyModel::lessThan(const QModelIndex&, const QModelIndex&) const':
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/ExportsWidget.cpp:122:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
  122 |         if (leftExp.type != rightExp.type)
      |         ^~
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/ExportsWidget.cpp:124:5: note: here
  124 |     case ExportsModel::CommentColumn:
      |     ^~~~
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/ImportsWidget.cpp: In member function 'virtual bool ImportsProxyModel::lessThan(const QModelIndex&, const QModelIndex&) const':
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/ImportsWidget.cpp:144:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
  144 |         if (leftImport.libname != rightImport.libname)
      |         ^~
/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/src/widgets/ImportsWidget.cpp:147:5: note: here
  147 |     case ImportsModel::NameColumn:
      |     ^~~~
gmake[2]: Leaving directory '/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:89: CMakeFiles/iaito.dir/all] Error 2
gmake[1]: Leaving directory '/builddir/build/BUILD/iaito-28a1099603b3fa671bfbb226025d1a8c45558471/redhat-linux-build'
gmake: *** [Makefile:159: all] Error 2

Don't work debug mode

Environment Details

iaito -v
date
r2 -v
uname -ms
iaito 5.2.2
Sun 08 Aug 2021 20:29:29 +07
radare2 5.3.1 0 @ linux-x86-64 git.5.3.1
commit: unknown build: 2021-06-12__00:39:47
Linux x86_64

Description

Hello!
I have a problem with Debug mode. When I start debug (F9) in Iaito I have a message:
1
I tried to start debug mode in radare2 and it worked good.
You can see that there is a message “r_config_get: variable 'file.path' not found” in Console. It’s function of radare2.
I found out the problem had function of Iaito: void DebugActions::startDebug() in DebugActions.cpp when it called Core()->getConfig("file.path"):
2
In fact it called function r_config_get of radare2:
// Iaito.cpp
3
Radare2 don’t have item “file.path” after version 4.5.1.
For example there is item “file.path” in version 4.5.1:
// cconfig.c
4
There isn’t item “file.path” in cconfig.c of version over 4.5.1.
I think this is the reason for the broken debug mode.
P.s. You can see I have Iaito's version 5.2.2. But 5.3.1 version has the same code in those functions.

Unused variable iod

Hello,
the compilation reports issue that the iod variable is defined, but never used:

[ 9%] Building CXX object CMakeFiles/r2cutter.dir/dialogs/InitialOptionsDialog.cpp.o
/usr/lib64/ccache/g++ -DCUTTER_ENABLE_GRAPHVIZ -DCUTTER_ENABLE_KSYNTAXHIGHLIGHTING -DCUTTER_SOURCE_BUILD -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -Dr2cutter_EXPORTS -IBUILD/r2cutter-0.1.1/x86_64-redhat-linux-gnu -IBUILD/r2cutter-0.1.1/src -IBUILD/r2cutter-0.1.1/x86_64-redhat-linux-gnu/r2cutter_autogen/include -IBUILD/r2cutter-0.1.1/src/core -IBUILD/r2cutter-0.1.1/src/widgets -IBUILD/r2cutter-0.1.1/src/common -IBUILD/r2cutter-0.1.1/src/plugins -IBUILD/r2cutter-0.1.1/src/menus -IBUILD/r2cutter-0.1.1/src/. -isystem /usr/include/graphviz -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/libr -isystem /usr/include/libr/sdb -isystem /usr/include/capstone -isystem /usr/include/KF5/KSyntaxHighlighting -isystem /usr/include/KF5 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fvisibility=hidden -Wall -Wextra -fPIC -std=gnu++11 -o CMakeFiles/r2cutter.dir/dialogs/InitialOptionsDialog.cpp.o -c BUILD/r2cutter-0.1.1/src/dialogs/InitialOptionsDialog.cpp
BUILD/r2cutter-0.1.1/src/core/Cutter.cpp: In member function 'bool CutterCore::loadFile(QString, long long unsigned int, long long unsigned int, int, int, bool, const QString&)':
BUILD/r2cutter-0.1.1/src/core/Cutter.cpp:615:10: warning: unused variable 'iod' [-Wunused-variable]
615 | auto iod = core->io ? core->io->desc : NULL;
| ^~~

reporting against the release 0.1.1

iaito 5.70 official release for Windows is missing required Qt DLLs

Environment Details

Below script run from cygwin prompt, even though iaito is typically run by just double-clicking on it.

$ ./iaito.exe -v
error while loading shared libraries: Qt5Networkd.dll: cannot open shared object file: No such file or directory

$ date
Mon, Jul 11, 2022  8:47:59 PM

$ ./r2.bat -v
radare2 5.7.4 1 @ windows-x86-64 git.5.7.4
commit: 5bc3bf4e6c327121c8f82f20a603382cbba07dbb build: Wed 07/06/2022__22:49:07.33

$ uname -ms
CYGWIN_NT-10.0 x86_64

Description

The official release of iaito.exe for Windows 64-bit is missing the various Qt*.dlls that previous releases have shipped with (such as 5.3.1). The result is that iaito.exe can't execute, other than displaying error message boxes that say various DLLs are missing.

Note: I did attempt to locate an easy way to install the DLLs but the only method found required installing most of the Qt development environment (similar to having to install all of Visual Studio just to get the files in vc_redist.exe). I considered copying the Qt*.dll files from an older iaito release, but it is unclear whether that version of Qt was the correct one.

Repro Steps

  1. Double-click on iaito.exe to launch it

Result: A series of error message boxes are displayed, complaining sequence that the following DLLs are missing: QtCored.dll, QtGuid.dll, QtWidgetsd.dll, and QtSvgd.dll

iaito Error Message on Launch

Feature request - Versioning numbers

Is your feature request related to a problem? Please describe.

Hello.
As r2cutter was not starting from 0, but was fork of the Cutter after version 1.12.0 some of the Linux distributions already followed in that versioning and just renamed the package from Cutter to r2cutter - like Arch and Manjaro.

But r2cutter decided to start its versioning from the beginning from v1.12.0 then releasing 0.1.0. and 0.1.1
The version r2cutter 0.1.1 contains newer code than Cutter 1.12.0, but the number is lower.
This is causing headache for some version monitoring tools like Repology (https://repology.org/badge/vertical-allrepos/r2cutter.svg?columns=4) or Release-monitoring.org (https://release-monitoring.org/project/185309/)

Describe the solution you'd like
Please would you consider to sync with the old versioning scheme and release next release with version number higher than 1.12.0 ... like 1.13.0 or even 1.15.0 (leaving room to re-number the 0.1.0 and 0.1.1 releases).

Describe alternatives you've considered

Additional context

BTW the Cutter.re+rizin just bumped the version to 2.0 so I guess r2cutter can happily continue with the 1.*.0 scheme without any conflicts I guess.

Ubuntu 20.04 iaito package SIGSEGV

Environment Details

iaito -v

Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
   QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
   QT_SCREEN_SCALE_FACTORS to set per-screen factors.
   QT_SCALE_FACTOR to set the application global scale factor.
iaito 5.2.2

date

Tue 16 Nov 2021 11:51:14 +03

r2 -v

radare2 5.5.0 27096 @ linux-x86-64 git.5.5.0
commit: 645835794b0013b52042d5762d98d03fcbf250f6 build: 2021-11-16__11:08:25

uname -ms

Linux x86_64

lsb_release -d

Description:    Ubuntu 20.04.3 LTS

Description

I've installed r2 using

./sys/install.sh  

iaito using deb package
5.3.1/iaito-amd64.deb.zip

But when running it it complain about libr_core.so so I added /usr/local/lib to /etc/ld.so.conf , then run ldconfig with refer to iaito/issues/59

now running iaito got SIGSEGV

iaito

Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
   QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
   QT_SCREEN_SCALE_FACTORS to set per-screen factors.
   QT_SCALE_FACTOR to set the application global scale factor.
fish: Job 1, 'iaito' terminated by signal SIGSEGV (Address boundary error)

Also I've tried build iaito from github, but it gives me following error

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DIAITO_SOURCE_BUILD -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../src -I. -I../src -I../src/core -I../src/widgets -I../src/dialogs -I../src/common -I../src/plugins -I../src/menus -isystem /usr/local/include/libr -isystem /usr/local/include/libr/sdb -isystem /usr/include/libr -isystem /usr/include/libr/sdb -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o MainWindow.o ../src/core/MainWindow.cpp
In file included from /usr/local/include/libr/r_util.h:33,
                 from /usr/local/include/libr/r_getopt.h:8,
                 from /usr/local/include/libr/r_main.h:7,
                 from /usr/local/include/libr/r_core.h:6,
                 from ../src/core/IaitoCommon.h:8,
                 from ../src/common/TempConfig.h:5,
                 from ../src/core/Iaito.cpp:13:
../src/core/Iaito.cpp: In member function ‘QList<RelocDescription> IaitoCore::getAllRelocs()’:
../src/core/Iaito.cpp:2746:27: error: cannot convert ‘r_crbtree_t*’ to ‘RBNode*’ {aka ‘r_rb_node_t*’}
 2746 |         r_rbtree_foreach (relocs, iter, br, RBinReloc, vrb) {
      |                           ^~~~~~
      |                           |
      |                           r_crbtree_t*
/usr/local/include/libr/r_util/r_rbtree.h:63:37: note:   initializing argument 1 of ‘RBIter r_rbtree_first(RBNode*)’
   63 | R_API RBIter r_rbtree_first(RBNode *root);
      |                             ~~~~~~~~^~~~
In file included from /usr/local/include/libr/r_main.h:6,
                 from /usr/local/include/libr/r_core.h:6,
                 from ../src/core/IaitoCommon.h:8,
                 from ../src/common/TempConfig.h:5,
                 from ../src/core/Iaito.cpp:13:
../src/core/Iaito.cpp:2746:56: error: ‘RBinReloc’ {aka ‘struct r_bin_reloc_t’} has no member named ‘vrb’
 2746 |         r_rbtree_foreach (relocs, iter, br, RBinReloc, vrb) {
      |                                                        ^~~
../src/core/Iaito.cpp:2746:56: error: ‘RBinReloc’ {aka ‘struct r_bin_reloc_t’} has no member named ‘vrb’
../src/core/Iaito.cpp:2746:9: error: expected primary-expression before ‘__typeof__’
 2746 |         r_rbtree_foreach (relocs, iter, br, RBinReloc, vrb) {
      |         ^~~~~~~~~~~~~~~~
../src/core/Iaito.cpp:2746:9: error: expected ‘)’ before ‘__typeof__’
In file included from /usr/include/dlfcn.h:24,
                 from /usr/local/include/libr/r_lib.h:8,
                 from /usr/local/include/libr/r_core.h:13,
                 from ../src/core/IaitoCommon.h:8,
                 from ../src/common/TempConfig.h:5,
                 from ../src/core/Iaito.cpp:13:
../src/core/Iaito.cpp:2746:56: error: ‘RBinReloc’ {aka ‘struct r_bin_reloc_t’} has no member named ‘vrb’
 2746 |         r_rbtree_foreach (relocs, iter, br, RBinReloc, vrb) {
      |                                                        ^~~
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DIAITO_SOURCE_BUILD -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../src -I. -I../src -I../src/core -I../src/widgets -I../src/dialogs -I../src/common -I../src/plugins -I../src/menus -isystem /usr/local/include/libr -isystem /usr/local/include/libr/sdb -isystem /usr/include/libr -isystem /usr/include/libr/sdb -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o Helpers.o ../src/common/Helpers.cpp
make[1]: *** [Makefile:3521: Iaito.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/USERNAME/.local/share/radare2/r2pm/git/iaito/build'
make: *** [Makefile:53: iaito] Error 2

Cannot make iaito

Environment Details

Despite we only fix issues reproducible in git-master branch, it's fine to report issues found in releases. And those will be closed when a new release comes out.

# copypaste this script into your shell and replace it with the output
iaito: command not found
Wed 11 May 2022 04:07:20 PM EDT
WARN: r_th_lock_enter: assertion 'thl' failed (line 94)
WARN: r_th_lock_leave: assertion 'thl' failed (line 132)
WARN: r_th_lock_enter: assertion 'thl' failed (line 94)
WARN: r_th_lock_enter: assertion 'thl' failed (line 94)
WARN: r_th_lock_leave: assertion 'thl' failed (line 132)
WARN: r_th_lock_leave: assertion 'thl' failed (line 132)
WARN: r_th_lock_enter: assertion 'thl' failed (line 94)
WARN: r_th_lock_leave: assertion 'thl' failed (line 132)
WARN: r_th_lock_enter: assertion 'thl' failed (line 94)
WARN: r_th_lock_leave: assertion 'thl' failed (line 132)
radare2 5.6.9 27963 @ linux-x86-64 git.wip)
commit: 35d3d75ef12b57b4dccb6523e08b51eaedffdbcc build: 2022-05-11__15:59:01
Linux x86_64

Description

When I make, it told me the error:

../src/core/Iaito.cpp:2769:16: error: ‘r_bin_get_relocs_list’ was not declared in this scope; did you mean ‘r_bin_get_relocs’?
 2769 |  RList *list = r_bin_get_relocs_list(core->bin);
      |                ^~~~~~~~~~~~~~~~~~~~~
      |                r_bin_get_relocs

make[1]: *** [Makefile:23782: Iaito.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/billy/Desktop/iaito/build'
make: *** [Makefile:53: iaito] Error 2

make run crash on ubuntu 22.04

Environment Details

iaito : commande introuvable
sam. 16 juil. 2022 21:32:53 CEST
radare2 5.7.5 28539 @ linux-x86-64 git.5.7.4-52-g10a2fc99d
commit: 10a2fc99d80beb8e0c2cd8dedb209127afb06f2d build: 2022-07-16__21:19:34
Linux x86_64

Description

when i run make run I get a crash:

rarun2 libpath=/usr/local/lib program=build/iaito
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Loading translations path /home/vince/.local/share/iaito/translations
Loading translations path /usr/share/qt5/translations
eco: cannot open colorscheme profile (/home/vince/iaito/cutter)
Plugins are loaded from "/home/vince/.local/share/radareorg/iaito/plugins"
Loaded 0 plugin(s).
Plugins are loaded from "/usr/share/ubuntu/radareorg/iaito/plugins"
Plugins are loaded from "/usr/local/share/radareorg/iaito/plugins"
Plugins are loaded from "/usr/share/radareorg/iaito/plugins"
Plugins are loaded from "/var/lib/snapd/desktop/radareorg/iaito/plugins"
make: *** [Makefile:81: run] Erreur de segmentation (core dump créé)

Unable to install the .pkg on macOS (arm64 and x86_64)

Environment Details

MacBook Pro (13-inch, M1, 2020)
Big Sur 11.3 (20E232)

zsh: command not found: iaito
Wed May  5 14:23:31 CEST 2021
radare2 5.2.0 0 @ darwin-arm-64 git.
commit: HEAD build: 2021-04-11__23:39:32
Darwin arm64

Description

When I try to install iaito I am getting a following error:
Screenshot
Related to: #6

Cannot install iaito

Environment Details

$ iaito -v
bash: iaito: command not found
$ date
Tue Jul 20 12:22:27 WEDT 2021
$ r2 -v
bash: r2: command not found
$ uname -ms
MINGW64_NT-10.0-19043 x86_64

Description

  • Downloaded latest Release for Windows (Windows 10 21H1)
  • Unzip everything
  • Run iaito.exe, error message appears (see screenshot[1])
  • Do $ git clone https://github.com/radareorg/radare2 and $ cd radare2 ; sys/install.sh
  • Another error[2]
  • Reinstalling does not fix the issue

Additional info:
image

$ sys/install.sh
WARNING: Updating from remote repository
Already up to date.
/c/HackUtil/iaito-w64/radare2
configure-plugins: Loading ./plugins.cfg ..
configure-plugins: Generating libr/config.h
configure-plugins: Generating libr/asm/d/config.inc
configure-plugins: Generating libr/config.mk
SHARED: io.shm
STATIC: anal.6502 anal.6502_cs anal.8051 anal.amd29k anal.arc anal.arm_cs anal.arm_gnu anal.arm_v35 anal.avr anal.bf anal.chip8 anal.cr16 anal.cris anal.dalvik anal.ebc anal.gb anal.h8300 anal.hexagon anal.i4004 anal.i8080 anal.java anal.m680x_cs anal.m68k_cs anal.malbolge anal.mcore anal.mips_cs anal.mips_gnu anal.msp430 anal.nios2 anal.null anal.or1k anal.pic anal.ppc_cs anal.ppc_gnu anal.pyc anal.riscv anal.riscv_cs anal.rsp anal.s390_cs anal.sh anal.snes anal.sparc_cs anal.sparc_gnu anal.tms320 anal.tricore anal.v810 anal.v850 anal.vax anal.wasm anal.ws anal.x86_cs anal.xap anal.xcore_cs anal.xtensa anal.z80 asm.6502 asm.6502_cs asm.8051 asm.amd29k asm.arc asm.arm_as asm.arm_cs asm.arm_gnu asm.arm_v35 asm.arm_winedbg asm.avr asm.bf asm.chip8 asm.cr16 asm.cris_gnu asm.dalvik asm.dcpu16 asm.ebc asm.gb asm.h8300 asm.hexagon asm.hppa_gnu asm.i4004 asm.i8080 asm.java asm.lanai_gnu asm.lh5801 asm.lm32 asm.m680x_cs asm.m68k_cs asm.m68k_gnu asm.malbolge asm.mcore asm.mcs96 asm.mips_cs asm.mips_gnu asm.msp430 asm.nios2 asm.null asm.or1k asm.pic asm.ppc_as asm.ppc_cs asm.ppc_gnu asm.propeller asm.pyc asm.riscv asm.riscv_cs asm.rsp asm.s390_cs asm.s390_gnu asm.sh asm.snes asm.sparc_cs asm.sparc_gnu asm.tms320 asm.tricore asm.v810 asm.v850 asm.v850_gnu asm.vax asm.wasm asm.ws asm.x86_as asm.x86_cs asm.x86_nasm asm.x86_nz asm.xap asm.xcore_cs asm.xtensa asm.z80 bin.any bin.art bin.avr bin.bf bin.bflt bin.bios bin.bootimg bin.cgc bin.coff bin.dex bin.dmp64 bin.dol bin.dyldcache bin.elf bin.elf64 bin.fs bin.java bin.le bin.mach0 bin.mach064 bin.mbn bin.mdmp bin.menuet bin.mz bin.ne bin.nes bin.nin3ds bin.ninds bin.ningb bin.ningba bin.nro bin.nso bin.off bin.omf bin.p9 bin.pe bin.pe64 bin.pebble bin.prg bin.psxexe bin.pyc bin.qnx bin.sfc bin.smd bin.sms bin.symbols bin.te bin.vsf bin.wad bin.wasm bin.xbe bin.xnu_kernelcache bin.z64 bin.zimg bin_ldr.ldr_linux bin_xtr.xtr_dyldcache bin_xtr.xtr_fatmach0 bin_xtr.xtr_pemixed bin_xtr.xtr_sep64 bp.arm bp.bf bp.mips bp.ppc bp.x86 core.a2f core.java core.sixref crypto.aes crypto.aes_cbc crypto.base64 crypto.base91 crypto.blowfish crypto.cps2 crypto.des crypto.punycode crypto.rc2 crypto.rc4 crypto.rc6 crypto.rol crypto.ror crypto.rot crypto.serpent crypto.xor debug.bf debug.bochs debug.esil debug.gdb debug.io debug.native debug.null debug.qnx debug.rap debug.winkd egg.exec egg.xor esil.dummy fs.ext2 fs.fat fs.fb fs.hfs fs.hfsplus fs.io fs.iso9660 fs.jfs fs.minix fs.ntfs fs.posix fs.r2 fs.reiserfs fs.sfs fs.tar fs.udf fs.ufs fs.xfs io.ar io.bfdbg io.bochs io.debug io.default io.fd io.gdb io.gprobe io.gzip io.http io.ihex io.mach io.malloc io.mmap io.null io.procpid io.ptrace io.qnx io.r2k io.r2pipe io.r2web io.rap io.rbuf io.self io.shm io.socket io.sparse io.tcpslurp io.w32 io.w32dbg io.winedbg io.winkd io.zip lang.c lang.cpipe lang.pipe lang.rust lang.spp lang.v lang.vala lang.zig parse.6502_pseudo parse.arm_pseudo parse.att2intel parse.avr_pseudo parse.chip8_pseudo parse.dalvik_pseudo parse.m68k_pseudo parse.mips_pseudo parse.ppc_pseudo parse.riscv_pseudo parse.sh_pseudo parse.tms320_pseudo parse.v850_pseudo parse.wasm_pseudo parse.x86_pseudo parse.z80_pseudo
cp: './plugins.cfg' and 'plugins.cfg' are the same file
checking build system type... x86_64-unknown-mingw64_nt-10.0-19043-gnu
checking host system type... x86_64-unknown-mingw64_nt-10.0-19043-gnu
checking target system type... x86_64-unknown-mingw64_nt-10.0-19043-gnu
checking for working directories... current
using prefix '/usr/local'
checking for c compiler... gcc
checking for dynamic library... libc
checking for pkg-config... /c/Strawberry/perl/bin/pkg-config
checking for patch... /usr/bin/patch
checking for git... /mingw64/bin/git
checking for gperf... no
checking for libmagic ... no
checking for libz ... yes
checking for libzip ... no
checking for libxxhash ... no
checking declaration of ADDR_NO_RANDOMIZE in sys/personality.h... no
checking declaration of __GLIBC__ in features.h... no
checking function arc4random_uniform() in c... no
checking function explicit_bzero() in c... no
checking function explicit_memset() in c... no
checking function clock_nanosleep() in c... no
checking function sigaction() in c... no
checking function clock_gettime() in c... no
checking cflags  -std=gnu99... yes
checking for libssl ... yes
checking pkg-config flags for openssl... no
checking version of library libuv >= 1.0.0... no
creating ./config-user.mk
creating libr/include/r_userconf.h
creating pkgcfg/r_io.pc
creating pkgcfg/r_magic.pc
creating pkgcfg/r_asm.pc
creating pkgcfg/r_bin.pc
creating pkgcfg/r_anal.pc
creating pkgcfg/r_hash.pc
creating pkgcfg/r_cons.pc
creating pkgcfg/r_core.pc
creating pkgcfg/r_lang.pc
creating pkgcfg/r_socket.pc
creating pkgcfg/r_debug.pc
creating pkgcfg/r_reg.pc
creating pkgcfg/r_config.pc
creating pkgcfg/r_flag.pc
creating pkgcfg/r_syscall.pc
creating pkgcfg/r_util.pc
creating pkgcfg/r_search.pc
creating pkgcfg/r_bp.pc
creating pkgcfg/r_parse.pc
creating pkgcfg/r_fs.pc
creating pkgcfg/r_egg.pc
creating pkgcfg/r_crypto.pc
cleaning temporally files... done

Final report:
 - R_CHECKS_LEVEL = 2
 - PREFIX = /usr/local
 - HAVE_LIB_GMP = 0
 - HAVE_OPENSSL = 0
 - HAVE_LIBUV = 0
 - USE_CAPSTONE = 0
 - HAVE_PTRACE = 1
 - USE_PTRACE_WRAP = 0
 - HAVE_FORK = 1
 - VERSION = 5.4.0-git
 - USE_LIB_ZIP = 0
 - USE_LIB_MAGIC = 0
 - USE_LIB_XXHASH = 0
 - DEBUGGER = 1
 - CC = gcc
 - USERCC = gcc
 - HAVE_ARC4RANDOM_UNIFORM = 0
 - PKGCONFIG = /c/Strawberry/perl/bin/pkg-config
 - HAVE_GPERF = 0
 - HAVE_EXPLICIT_BZERO = 0
 - HAVE_EXPLICIT_MEMSET = 0
 - WANT_DYLINK = 1
 - USEROSTYPE = auto
 - LIBVERSION = 5.4.0-git
 - BUILD = x86_64-unknown-mingw64_nt-10.0-19043-gnu
 - HOST = x86_64-unknown-mingw64_nt-10.0-19043-gnu
 - TARGET = x86_64-unknown-mingw64_nt-10.0-19043-gnu
 - CFLAGS = (null)
 - LDFLAGS = (null)
Generating r_version.h file
radare2
1
Makefile:263: warning: overriding recipe for target 'all'
Makefile:82: warning: ignoring old recipe for target 'all'
Makefile:263: warning: overriding recipe for target 'all'
Makefile:82: warning: ignoring old recipe for target 'all'

>>>>>>>>
HOST SDB
>>>>>>>>

CC main.c
CC cdb.c
CC buffer.c
CC cdb_make.c
CC ls.c
CC sdbht.c
CC ht_uu.c
CC sdb.c
CC num.c
CC base64.c
CC match.c
CC json.c
main.c: In function 'gen_gperf':
main.c:760:3: warning: implicit declaration of function 'ftruncate'; did you mean 'strncat'? [-Wimplicit-function-declaration]
   ftruncate (wd, 0);
   ^~~~~~~~~
   strncat
CC ns.c
CC lock.c
CC util.c
CC disk.c
CC query.c
CC array.c
CC fmt.c
CC journal.c
CC text.c
CC dict.c
CC ht_pp.c
CC ht_up.c
lock.c: In function 'sdb_lock':
lock.c:36:18: warning: implicit declaration of function 'getpid'; did you mean 'getcwd'? [-Wimplicit-function-declaration]
  pid = sdb_itoa (getpid (), pidstr, 10);
                  ^~~~~~
                  getcwd
CC ht_pu.c
CC set.c
CC diff.c
journal.c: In function 'sdb_journal_clear':
journal.c:97:11: warning: implicit declaration of function 'ftruncate'; did you mean 'strncat'? [-Wimplicit-function-declaration]
   return !ftruncate (s->journal, 0);
           ^~~~~~~~~
           strncat
AR libsdb.a
ar: creating libsdb.a
BIN sdb
sdb/sdb: PE32+ executable (console) x86-64, for MS Windows
Makefile:263: warning: overriding recipe for target 'all'
Makefile:82: warning: ignoring old recipe for target 'all'
Makefile:263: warning: overriding recipe for target 'all'
Makefile:82: warning: ignoring old recipe for target 'all'

>>>>>>>>>>
TARGET SDB
>>>>>>>>>>

gmake[4]: *** No rule to make target 'libsdb.'.  Stop.
gmake[3]: *** [Makefile:144: sdb-target] Error 2
gmake[2]: *** [Makefile:117: sdb/src/libsdb.a] Error 2
gmake[1]: *** [Makefile:120: sdbs] Error 2
gmake: *** [Makefile:51: all] Error 2

qt6 deprecations

-clang -F/usr/local/Cellar/qt/6.0.2/lib -o RichTextPainter.o ../src/common/RichTextPainter.cpp
../src/widgets/OverviewView.cpp:95:38: warning: 'localPos' is deprecated: Use position() [-Wdeprecated-declarations]
        initialDiff = QPointF(event->localPos().x() - rangeRect.x(), event->localPos().y() - rangeRect.y());
                                     ^
/usr/local/Cellar/qt/6.0.2/lib/QtGui.framework/Headers/qevent.h:268:5: note: 'localPos' has been explicitly marked deprecated here
    QT_DEPRECATED_VERSION_X_6_0("Use position()")
    ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:362:44: note: expanded from macro 'QT_DEPRECATED_VERSION_X_6_0'
# define QT_DEPRECATED_VERSION_X_6_0(text) QT_DEPRECATED_X(text)
                                           ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:274:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qcompilerdetection.h:1153:36: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#  define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]]
                                   ^
../src/widgets/OverviewView.cpp:95:77: warning: 'localPos' is deprecated: Use position() [-Wdeprecated-declarations]
        initialDiff = QPointF(event->localPos().x() - rangeRect.x(), event->localPos().y() - rangeRect.y());
                                                                            ^
/usr/local/Cellar/qt/6.0.2/lib/QtGui.framework/Headers/qevent.h:268:5: note: 'localPos' has been explicitly marked deprecated here
    QT_DEPRECATED_VERSION_X_6_0("Use position()")
    ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:362:44: note: expanded from macro 'QT_DEPRECATED_VERSION_X_6_0'
# define QT_DEPRECATED_VERSION_X_6_0(text) QT_DEPRECATED_X(text)
                                           ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:274:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qcompilerdetection.h:1153:36: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#  define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]]
                                   ^
../src/widgets/OverviewView.cpp:99:26: warning: 'localPos' is deprecated: Use position() [-Wdeprecated-declarations]
        qreal x = event->localPos().x() - w / 2;
                         ^
/usr/local/Cellar/qt/6.0.2/lib/QtGui.framework/Headers/qevent.h:268:5: note: 'localPos' has been explicitly marked deprecated here
    QT_DEPRECATED_VERSION_X_6_0("Use position()")
    ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:362:44: note: expanded from macro 'QT_DEPRECATED_VERSION_X_6_0'
# define QT_DEPRECATED_VERSION_X_6_0(text) QT_DEPRECATED_X(text)
                                           ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:274:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qcompilerdetection.h:1153:36: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#  define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]]
                                   ^
../src/widgets/OverviewView.cpp:100:26: warning: 'localPos' is deprecated: Use position() [-Wdeprecated-declarations]
        qreal y = event->localPos().y() - h / 2;
                         ^
/usr/local/Cellar/qt/6.0.2/lib/QtGui.framework/Headers/qevent.h:268:5: note: 'localPos' has been explicitly marked deprecated here
    QT_DEPRECATED_VERSION_X_6_0("Use position()")
    ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:362:44: note: expanded from macro 'QT_DEPRECATED_VERSION_X_6_0'
# define QT_DEPRECATED_VERSION_X_6_0(text) QT_DEPRECATED_X(text)
                                           ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:274:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qcompilerdetection.h:1153:36: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#  define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]]
                                   ^
../src/widgets/OverviewView.cpp:119:22: warning: 'localPos' is deprecated: Use position() [-Wdeprecated-declarations]
    qreal x = event->localPos().x() - initialDiff.x();
                     ^
/usr/local/Cellar/qt/6.0.2/lib/QtGui.framework/Headers/qevent.h:268:5: note: 'localPos' has been explicitly marked deprecated here
    QT_DEPRECATED_VERSION_X_6_0("Use position()")
    ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:362:44: note: expanded from macro 'QT_DEPRECATED_VERSION_X_6_0'
# define QT_DEPRECATED_VERSION_X_6_0(text) QT_DEPRECATED_X(text)
                                           ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:274:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qcompilerdetection.h:1153:36: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#  define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]]
                                   ^
../src/widgets/OverviewView.cpp:120:22: warning: 'localPos' is deprecated: Use position() [-Wdeprecated-declarations]
    qreal y = event->localPos().y() - initialDiff.y();
                     ^
/usr/local/Cellar/qt/6.0.2/lib/QtGui.framework/Headers/qevent.h:268:5: note: 'localPos' has been explicitly marked deprecated here
    QT_DEPRECATED_VERSION_X_6_0("Use position()")
    ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:362:44: note: expanded from macro 'QT_DEPRECATED_VERSION_X_6_0'
# define QT_DEPRECATED_VERSION_X_6_0(text) QT_DEPRECATED_X(text)
                                           ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qglobal.h:274:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/usr/local/Cellar/qt/6.0.2/lib/QtCore.framework/Headers/qcompilerdetection.h:1153:36: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#  define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]]
                                   ^
6 warnings generated.

Debug not working

Environment Details

Despite we only fix issues reproducible in git-master branch, it's fine to report issues found in releases. And those will be closed when a new release comes out.

# copypaste this script into your shell and replace it with the output
iaito 5.2.2
Wed Feb 23 07:47:08 AM CET 2022
radare2 5.4.2 0 @ linux-x86-64 git.5.4.2
commit: unknown build: 2021-10-01__17:48:03
Linux x86_64

Description

The debugging-feature is not working with the packaged version of iaito in arch-linux. The file loaded has 777 file-permissions.

Screenshot_2022-02-23_07-49-53

Shell-output, I think the last line is essential. It appears on pressing debug:

QCommandLineParser: already having an option named "w"
Plugins are loaded from "/home/max/.local/share/radareorg/iaito/plugins"
Loaded 0 plugin(s).                                                     
Plugins are loaded from "/home/max/.local/share/flatpak/exports/share/radareorg/iaito/plugins"
Plugins are loaded from "/var/lib/flatpak/exports/share/radareorg/iaito/plugins"              
Plugins are loaded from "/usr/local/share/radareorg/iaito/plugins"              
Plugins are loaded from "/usr/share/radareorg/iaito/plugins"      
Warning: run r2 with -e bin.cache=true to fix relocations in disassembly
[x] Analyze all flags starting with sym. and entry0 (aa)                
[x] Analyze function calls (aac)                        
[x] Analyze len bytes of instructions for references (aar)
[x] Finding and parsing C++ vtables (avrr)                
[x] Type matching analysis for all functions (aaft)
[x] Propagate noreturn information (aanr)          
[x] Integrate dwarf function information.
[x] Use -AA or aaaa to perform additional experimental analysis.
WARNING: r_str_trim_head_ro: assertion 'str' failed (line 86)   
WARNING: r_str_trim_tail: assertion 'str' failed (line 173)  
WARNING: pj_ks: assertion 'j && k && v' failed (line 184)  
WARNING: r_str_trim_head_ro: assertion 'str' failed (line 86)
WARNING: r_str_trim_tail: assertion 'str' failed (line 173)  
WARNING: pj_ks: assertion 'j && k && v' failed (line 184)  
WARNING: r_str_trim_head_ro: assertion 'str' failed (line 86)
WARNING: r_str_trim_tail: assertion 'str' failed (line 173)  
WARNING: pj_ks: assertion 'j && k && v' failed (line 184)  
WARNING: r_str_trim_head_ro: assertion 'str' failed (line 86)
WARNING: r_str_trim_tail: assertion 'str' failed (line 173)  
WARNING: pj_ks: assertion 'j && k && v' failed (line 184)  
WARNING: r_str_trim_head_ro: assertion 'str' failed (line 86)
WARNING: r_str_trim_tail: assertion 'str' failed (line 173)  
WARNING: pj_ks: assertion 'j && k && v' failed (line 184)  
WARNING: r_str_trim_head_ro: assertion 'str' failed (line 86)
WARNING: r_str_trim_tail: assertion 'str' failed (line 173)  
WARNING: pj_ks: assertion 'j && k && v' failed (line 184)  
WARNING: r_str_trim_head_ro: assertion 'str' failed (line 86)
WARNING: r_str_trim_tail: assertion 'str' failed (line 173)  
WARNING: pj_ks: assertion 'j && k && v' failed (line 184)  
WARNING: r_str_trim_head_ro: assertion 'str' failed (line 86)
WARNING: r_str_trim_tail: assertion 'str' failed (line 173)  
WARNING: pj_ks: assertion 'j && k && v' failed (line 184)  
WARNING: r_str_trim_head_ro: assertion 'str' failed (line 86)
WARNING: r_str_trim_tail: assertion 'str' failed (line 173)  
WARNING: pj_ks: assertion 'j && k && v' failed (line 184)  
r_config_get: variable 'file.path' not found

libr_core.so: cannot open shared object file: No such file or directory

Evironment:
Arch Linux (completely up to date)
iaito + radare2 installed from git

[kakidev@arch iaito]$ make run
build/iaito
build/iaito: error while loading shared libraries: libr_core.so: cannot open shared object file: No such file or directory
make: *** [Makefile:88: run] Fehler 127
[kakidev@arch iaito]$ 

Missing operands

Environment

iaito 5.5.0
Fri Jan 21 16:30:05 CET 2022
radare2 5.5.5 27272 @ darwin-x86-64 git.5.5.4
commit: 85173c6b16243fce3fec1319a8b1929075d25f0a build: 2022-01-21__12:43:57
Darwin x86_64
qt@5: stable 5.15.2

Description

I don't have operands in the disassembly view, as you see on the picture:

Screenshot 2022-01-21 at 16 31 37

I tried different binaries.

possible fallthroughs src/widgets/{ExportsWidget.cpp,ImportsWidget.cpp}

Compilation of the release 0.1.1 reports possible fallthrough for these 2 places:

BUILD/r2cutter-0.1.1/src/widgets/ExportsWidget.cpp: In member function 'virtual bool ExportsProxyModel::lessThan(const QModelIndex&, const QModelIndex&) const':
BUILD/r2cutter-0.1.1/src/widgets/ExportsWidget.cpp:122:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
122 | if (leftExp.type != rightExp.type)
| ^~
BUILD/r2cutter-0.1.1/src/widgets/ExportsWidget.cpp:124:5: note: here
124 | case ExportsModel::CommentColumn:
| ^~~~

BUILD/r2cutter-0.1.1/src/widgets/ImportsWidget.cpp: In member function 'virtual bool ImportsProxyModel::lessThan(const QModelIndex&, const QModelIndex&) const':
BUILD/r2cutter-0.1.1/src/widgets/ImportsWidget.cpp:144:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
144 | if (leftImport.libname != rightImport.libname)
| ^~
/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src/widgets/ImportsWidget.cpp:147:5: note: here
147 | case ImportsModel::NameColumn:
| ^~~~

Please can you check it is OK or possibly add breaks where it is not supposed to be fall through case.
Thank you.

Random crash when clicking "preferences" in the menu

Thread 1 "iaito" received signal SIGPIPE, Broken pipe.
__GI___libc_write (nbytes=70, buf=0x555556ff8ea0, fd=1) at ../sysdeps/unix/sysv/linux/write.c:26
26	../sysdeps/unix/sysv/linux/write.c: No such file or directory.
(gdb) bt
#0  __GI___libc_write (nbytes=70, buf=0x555556ff8ea0, fd=1) at ../sysdeps/unix/sysv/linux/write.c:26
#1  __GI___libc_write (fd=1, buf=0x555556ff8ea0, nbytes=70) at ../sysdeps/unix/sysv/linux/write.c:24
#2  0x00007ffff4929245 in _IO_new_file_write (f=0x7ffff4a626c0 <_IO_2_1_stdout_>, data=0x555556ff8ea0, n=70) at fileops.c:1181
#3  0x00007ffff49285e6 in new_do_write (fp=0x7ffff4a626c0 <_IO_2_1_stdout_>, data=0x555556ff8ea0 "Loading translations path /home/ragim/.local/share/iaito/translations\np", 
    to_do=to_do@entry=70) at /var/tmp/portage/sys-libs/glibc-2.33-r7/work/glibc-2.33/libio/libioP.h:948
#4  0x00007ffff492a279 in _IO_new_do_write (to_do=70, data=<optimized out>, fp=<optimized out>) at fileops.c:423
#5  _IO_new_do_write (fp=<optimized out>, data=<optimized out>, to_do=70) at fileops.c:423
#6  0x00007ffff492986e in _IO_new_file_xsputn (n=1, data=<optimized out>, f=<optimized out>) at /var/tmp/portage/sys-libs/glibc-2.33-r7/work/glibc-2.33/libio/libioP.h:948
#7  _IO_new_file_xsputn (f=0x7ffff4a626c0 <_IO_2_1_stdout_>, data=<optimized out>, n=1) at fileops.c:1197
#8  0x00007ffff4914547 in outstring_func (done=69, length=1, string=0x555555832c55 "\n", s=0x7ffff4a626c0 <_IO_2_1_stdout_>) at ../libio/libioP.h:948
#9  __vfprintf_internal (s=0x7ffff4a626c0 <_IO_2_1_stdout_>, format=0x555555832c39 "Loading translations path %s\n", ap=ap@entry=0x7fffffffc4e0, mode_flags=2)
    at vfprintf-internal.c:1674
#10 0x00007ffff49b2b6f in ___printf_chk (flag=<optimized out>, format=<optimized out>) at printf_chk.c:33
#11 0x00005555557fd6bb in printf (__fmt=0x555555832c39 "Loading translations path %s\n") at /usr/include/bits/stdio2.h:112
#12 Iaito::getTranslationsDirectories () at ../src/common/ResourcePaths.cpp:84
#13 0x000055555573b7f2 in Configuration::getAvailableTranslations (this=<optimized out>) at ../src/common/Configuration.cpp:673
#14 0x0000555555756d84 in AppearanceOptionsWidget::AppearanceOptionsWidget (this=this@entry=0x555556e5d230, dialog=dialog@entry=0x555557fb33b0)
    at ../src/dialogs/preferences/AppearanceOptionsWidget.cpp:33
#15 0x0000555555751979 in PreferencesDialog::PreferencesDialog (this=this@entry=0x555557fb33b0, parent=parent@entry=0x555555eee9f0)
    at ../src/dialogs/preferences/PreferencesDialog.cpp:49
#16 0x00005555556be154 in MainWindow::on_actionPreferences_triggered (this=0x555555eee9f0) at ../src/core/MainWindow.cpp:1575
#17 0x000055555580fa41 in MainWindow::qt_static_metacall (_a=0x7fffffffccc0, _id=32, _c=QMetaObject::InvokeMetaMethod, _o=0x555555eee9f0) at moc_MainWindow.cpp:250
#18 MainWindow::qt_metacall (this=0x555555eee9f0, _c=QMetaObject::InvokeMetaMethod, _id=32, _a=0x7fffffffccc0) at moc_MainWindow.cpp:338
#19 0x00007ffff51141e2 in ?? () from /usr/lib64/libQt5Core.so.5
#20 0x00007ffff5c36d92 in QAction::triggered(bool) () from /usr/lib64/libQt5Widgets.so.5
#21 0x00007ffff5c399b4 in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQt5Widgets.so.5
#22 0x00007ffff5dbcdb2 in ?? () from /usr/lib64/libQt5Widgets.so.5
#23 0x00007ffff5dc483f in ?? () from /usr/lib64/libQt5Widgets.so.5
#24 0x00007ffff5c7ee68 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#25 0x00007ffff5c3d63f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#26 0x00007ffff5c4510a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#27 0x00007ffff50e1c18 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#28 0x00007ffff5c43c26 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) ()
   from /usr/lib64/libQt5Widgets.so.5
#29 0x00007ffff5c986dc in ?? () from /usr/lib64/libQt5Widgets.so.5
#30 0x00007ffff5c9ad45 in ?? () from /usr/lib64/libQt5Widgets.so.5
#31 0x00007ffff5c3d63f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#32 0x00007ffff50e1c18 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#33 0x00007ffff56715ad in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#34 0x00007ffff565222b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#35 0x00007ffff17df6fa in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#36 0x00007ffff3d5a42b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#37 0x00007ffff3d5a6d8 in ?? () from /usr/lib64/libglib-2.0.so.0
#38 0x00007ffff3d5a78f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#39 0x00007ffff5131c86 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#40 0x00007ffff50e06a3 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
--Type <RET> for more, q to quit, c to continue without paging--
#41 0x00007ffff50e89c0 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#42 0x000055555565c0b4 in main (argc=<optimized out>, argv=<optimized out>) at ../src/Main.cpp:104

Fix widget lock issue

As described in the release page , its needed to press a menu entry twice to get that done... https://github.com/radareorg/iaito/releases/tag/5.2.0

imho this panel lock thing blocking new panels to be added just brings more headaches than useful features. despite being nice to remove the (x) button from all them we should find a smarter solution which probably implies removing all this "modes" thing

Ghidra Decompiler Error: No sleigh specification for x86:LE:64:default

Environment information

  • Operating System: ArchLinux
  • Cutter version: r2cutter 1:1.12.0-1
  • Obtained from:
    community repo arch

Describe the bug
I just updated the r2cutter, r2cutter and radare2 with pacman. After that I opened a project, which was before created with 4.2.2 radare2 cutter.
The Decompiler tab gives this error
Ghidra Decompiler Error: No sleigh specification for x86:LE:64:default

Additional context
When you just open the same file but as a new project, the same problem does not appear. I saved this project as a new one.
I managed to get everything working (and saving my old labels and everything) by modifying the "rc" config file in the project. I copied everything under functions from the old project to the new. One can probably get away just by modifying some file paths in "rc", but it was too much work at the moment for me.

latest iaito crash while saving layout


Translated Report (Full Report Below)

Process: iaito [44167]
Path: /Applications/iaito.app/Contents/MacOS/iaito
Identifier: org.radare.iaito
Version: 5.7.0 (5.7.0)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 502

Date/Time: 2022-06-06 14:48:08.1491 +0800
OS Version: macOS 12.4 (21F79)
Report Version: 12
Bridge OS Version: 6.5 (19P5071)
Anonymous UUID: AC828BA2-AC11-AC91-8908-B716FB95CFC2

Sleep/Wake UUID: A1BE7948-C3CC-47B2-B51B-F0ED91DF3EFD

Time Awake Since Boot: 250000 seconds
Time Since Wake: 16812 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Exception Codes: 0x0000000000000001, 0x0000000000000008
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [44167]

VM Region Info: 0x8 is not in any region. Bytes before following region: 140737486938104
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
VM_ALLOCATE 7fffffea6000-7fffffea7000 [ 4K] r-x/r-x SM=ALI

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libr_util.dylib 0x103fe1762 r_stack_push + 146 (stack.c:53)
1 libr_cons.dylib 0x10310bc83 r_cons_push + 83 (cons.c:887)
2 libr_core.dylib 0x1033871ff r_core_cmd_str + 95 (cmd.c:5747)
3 iaito 0x102af30a5 IaitoCore::cmd(char const*) + 53 (Iaito.cpp:372)
4 iaito 0x102af6db0 IaitoCore::cmd(QString const&) + 48 (Iaito.h:69)
5 iaito 0x102af6c6e IaitoCore::seek(unsigned long long) + 110 (Iaito.cpp:902)
6 iaito 0x102af60fe IaitoCore::seekAndShow(unsigned long long) + 14 (Iaito.cpp:913)
7 QtCore 0x107045e14 0x106e2e000 + 2194964
8 QtWidgets 0x10546bb07 QAbstractItemView::activated(QModelIndex const&) + 55
9 QtWidgets 0x1054da62c QTreeView::mouseDoubleClickEvent(QMouseEvent*) + 940
10 QtWidgets 0x10523c9c0 QWidget::event(QEvent*) + 464
11 QtWidgets 0x1052e3c9b QFrame::event(QEvent*) + 43
12 QtWidgets 0x10546a4ef QAbstractItemView::viewportEvent(QEvent*) + 1375
13 QtWidgets 0x1054d6c65 QTreeView::viewportEvent(QEvent*) + 517
14 QtCore 0x107015839 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 249
15 QtWidgets 0x105203371 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 241
16 QtWidgets 0x105206077 QApplication::notify(QObject*, QEvent*) + 6935
17 QtCore 0x107015567 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
18 QtWidgets 0x105203c8c QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool) + 892
19 QtWidgets 0x10525b334 0x1051f0000 + 439092
20 QtWidgets 0x105259f8f 0x1051f0000 + 434063
21 QtWidgets 0x105203386 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
22 QtWidgets 0x105204740 QApplication::notify(QObject*, QEvent*) + 480
23 QtCore 0x107015567 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
24 QtGui 0x105dc5607 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 5591
25 QtGui 0x105daa8fc QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag) + 204
26 libqcocoa.dylib 0x104c822a8 0x104c47000 + 242344
27 CoreFoundation 0x7ff81f81919b CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
28 CoreFoundation 0x7ff81f819103 __CFRunLoopDoSource0 + 180
29 CoreFoundation 0x7ff81f818e7d __CFRunLoopDoSources0 + 242
30 CoreFoundation 0x7ff81f817898 __CFRunLoopRun + 892
31 CoreFoundation 0x7ff81f816e5c CFRunLoopRunSpecific + 562
32 HIToolbox 0x7ff8284be5e6 RunCurrentEventLoopInMode + 292
33 HIToolbox 0x7ff8284be213 ReceiveNextEventCommon + 283
34 HIToolbox 0x7ff8284be0e5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
35 AppKit 0x7ff8222561fd _DPSNextEvent + 927
36 AppKit 0x7ff8222548ba -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
37 AppKit 0x7ff822246f69 -[NSApplication run] + 586
38 libqcocoa.dylib 0x104c80f5a 0x104c47000 + 237402
39 QtCore 0x107011b57 QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 471
40 QtCore 0x107015b02 QCoreApplication::exec() + 130
41 iaito 0x102aef634 main + 564 (Main.cpp:104)
42 dyld 0x106d7b51e start + 462

Thread 1:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x7ff81f71dd5a __select + 10
1 CoreFoundation 0x7ff81f840639 __CFSocketManager + 641
2 libsystem_pthread.dylib 0x7ff81f7524e1 _pthread_start + 125
3 libsystem_pthread.dylib 0x7ff81f74df6b thread_start + 15

Thread 2:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x7ff81f71597a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x7ff81f715ce8 mach_msg + 56
2 CoreFoundation 0x7ff81f81938d __CFRunLoopServiceMachPort + 319
3 CoreFoundation 0x7ff81f817a18 __CFRunLoopRun + 1276
4 CoreFoundation 0x7ff81f816e5c CFRunLoopRunSpecific + 562
5 AppKit 0x7ff8223c3c1e _NSEventThread + 132
6 libsystem_pthread.dylib 0x7ff81f7524e1 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff81f74df6b thread_start + 15

Thread 3:
0 libsystem_pthread.dylib 0x7ff81f74df48 start_wqthread + 0

Thread 4:
0 libsystem_pthread.dylib 0x7ff81f74df48 start_wqthread + 0

Thread 5:
0 libsystem_pthread.dylib 0x7ff81f74df48 start_wqthread + 0

Thread 6:
0 libsystem_pthread.dylib 0x7ff81f74df48 start_wqthread + 0

Thread 7:
0 libsystem_pthread.dylib 0x7ff81f74df48 start_wqthread + 0

Thread 8:: Thread (pooled)
0 libsystem_kernel.dylib 0x7ff81f7183ea __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff81f752a6f _pthread_cond_wait + 1249
2 QtCore 0x106e599a6 0x106e2e000 + 178598
3 QtCore 0x106e596be 0x106e2e000 + 177854
4 QtCore 0x106e59614 QWaitCondition::wait(QMutex*, QDeadlineTimer) + 84
5 QtCore 0x106e55f26 0x106e2e000 + 163622
6 QtCore 0x106e519fa 0x106e2e000 + 145914
7 libsystem_pthread.dylib 0x7ff81f7524e1 _pthread_start + 125
8 libsystem_pthread.dylib 0x7ff81f74df6b thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000600003d57698 rcx: 0x0000000000000001 rdx: 0x0000600002fe8780
rdi: 0x0000006100000061 rsi: 0x0000600002fe8780 rbp: 0x00007ff7bd418410 rsp: 0x00007ff7bd4183f0
r8: 0x0000000000000000 r9: 0x0000000000000003 r10: 0x0000000000000003 r11: 0x0000000000000007
r12: 0x0000600001a242d0 r13: 0x000000000080060c r14: 0x00007ff7bd4184f8 r15: 0x00007ff7bd4184f8
rip: 0x0000000103fe1762 rfl: 0x0000000000010202 cr2: 0x0000000000000008

Logical CPU: 4
Error Code: 0x00000006 (no mapping for user data write)
Trap Number: 14

Thread 0 instruction stream:
01 89 48 08 48 8b 45 f0-48 8b 38 48 8b 45 f0 8b ..H.H.E.H.8H.E..
40 08 89 c6 48 c1 e6 03-e8 5d 48 0a 00 48 89 45 @...H....]H..H.E
e0 48 83 7d e0 00 0f 85-09 00 00 00 c6 45 ff 00 .H.}.........E..
e9 33 00 00 00 48 8b 4d-e0 48 8b 45 f0 48 89 08 .3...H.M.H.E.H..
48 8b 45 f0 8b 48 0c 83-c1 01 89 48 0c 48 8b 55 H.E..H.....H.H.U
e8 48 8b 45 f0 48 8b 00-48 8b 4d f0 48 63 49 0c .H.E.H..H.M.HcI.
[48]89 14 c8 c6 45 ff 01-8a 45 ff 24 01 0f b6 c0 H....E...E.$.... <==
48 83 c4 20 5d c3 0f 1f-84 00 00 00 00 00 55 48 H.. ].........UH
89 e5 48 89 7d f0 48 8b-45 f0 83 78 0c ff 0f 85 ..H.}.H.E..x....
0d 00 00 00 48 c7 45 f8-00 00 00 00 e9 2c 00 00 ....H.E......,..
00 48 8b 45 f0 48 8b 00-48 8b 4d f0 48 63 49 0c .H.E.H..H.M.HcI.
48 8b 04 c8 48 89 45 e8-48 8b 45 f0 8b 48 0c 83 H...H.E.H.E..H..

Binary Images:
0x103f73000 - 0x1040aefff libr_util.dylib () /Users/USER/Desktop//libr_util.dylib
0x103105000 - 0x10312cfff libr_cons.dylib () <36198090-8644-34bc-a089-44d7c834ecf8> /Users/USER/Desktop//libr_cons.dylib
0x10335d000 - 0x103574fff libr_core.dylib () <11655dee-ff73-33d0-9a8f-b0907b2999ae> /Users/USER/Desktop//libr_core.dylib
0x102ae5000 - 0x102d9cfff org.radare.iaito (5.7.0) /Applications/iaito.app/Contents/MacOS/iaito
0x106e2e000 - 0x107375fff org.qt-project.QtCore (5.15) /usr/local/Cellar/qt@5/5.15.3/lib/QtCore.framework/Versions/5/QtCore
0x1051f0000 - 0x105633fff org.qt-project.QtWidgets (5.15) <6ca582be-cefe-37a6-9566-52af72a2d009> /usr/local/Cellar/qt@5/5.15.3/lib/QtWidgets.framework/Versions/5/QtWidgets
0x105d8c000 - 0x10626bfff org.qt-project.QtGui (5.15) <97caebb7-cee6-31d9-bc36-dac4884175e6> /usr/local/Cellar/qt@5/5.15.3/lib/QtGui.framework/Versions/5/QtGui
0x104c47000 - 0x104daafff libqcocoa.dylib () <73d99cd5-f0bc-3914-88e8-8fac9bbea8b3> /usr/local/Cellar/qt@5/5.15.3/plugins/platforms/libqcocoa.dylib
0x7ff81f799000 - 0x7ff81fc9bfff com.apple.CoreFoundation (6.9) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7ff828490000 - 0x7ff828783fff com.apple.HIToolbox (2.1.1) <04544f53-a387-3ac3-a85d-f8adfc0bc69e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x7ff822217000 - 0x7ff8230a5fff com.apple.AppKit (6.9) <832ad371-d3b8-3061-b4e2-1c4e0cffce0b> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x106d76000 - 0x106de1fff dyld (
) /usr/lib/dyld
0x7ff81f714000 - 0x7ff81f74bfff libsystem_kernel.dylib () <61711d11-e776-3bc3-b9a2-6f9f37cb8499> /usr/lib/system/libsystem_kernel.dylib
0x7ff81f74c000 - 0x7ff81f757fff libsystem_pthread.dylib (
) /usr/lib/system/libsystem_pthread.dylib
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.0G resident=0K(0%) swapped_out_or_unallocated=1.0G(100%)
Writable regions: Total=389.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=389.3G(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 640K 5
Activity Tracing 256K 1
CG backing stores 2160K 4
CG image 3608K 22
CG raster data 776K 1
ColorSync 232K 27
CoreAnimation 4284K 16
CoreGraphics 12K 2
CoreImage 4K 1
CoreUI image data 1484K 12
Foundation 48K 2
Kernel Alloc Once 8K 1
MALLOC 1.1G 129
MALLOC guard page 32K 8
MALLOC_LARGE (reserved) 387.9G 3 reserved VM address space (unallocated)
MALLOC_NANO (reserved) 256.0M 1 reserved VM address space (unallocated)
ObjC additional data 15K 1
STACK GUARD 56.0M 9
Stack 19.8M 37
VM_ALLOCATE 656K 24
__CTF 756 1
__DATA 37.4M 436
__DATA_CONST 22.8M 253
__DATA_DIRTY 911K 127
__FONT_DATA 4K 1
__GLSLBUILTINS 5176K 1
__LINKEDIT 688.6M 59
__TEXT 367.3M 444
__UNICODE 592K 1
dyld private memory 1152K 3
mapped file 860.9M 275
shared memory 776K 18
=========== ======= =======
TOTAL 391.3G 1925
TOTAL, minus reserved VM space 3.1G 1925


Full Report

{"app_name":"iaito","timestamp":"2022-06-06 14:48:13.00 +0800","app_version":"5.7.0","slice_uuid":"bc56d9f1-15ea-3c97-ba1f-6720d5375b01","build_version":"5.7.0","platform":1,"bundleID":"org.radare.iaito","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.4 (21F79)","incident_id":"E1720BFD-5815-48D5-A26E-E9B7445424AA","name":"iaito"}
{
"uptime" : 250000,
"procLaunch" : "2022-06-06 13:32:16.9957 +0800",
"procRole" : "Foreground",
"version" : 2,
"userID" : 502,
"deployVersion" : 210,
"modelCode" : "MacBookPro15,1",
"procStartAbsTime" : 254819061259047,
"coalitionID" : 72278,
"osVersion" : {
"train" : "macOS 12.4",
"build" : "21F79",
"releaseType" : "User"
},
"captureTime" : "2022-06-06 14:48:08.1491 +0800",
"incident" : "E1720BFD-5815-48D5-A26E-E9B7445424AA",
"bug_type" : "309",
"pid" : 44167,
"procExitAbsTime" : 259369859822677,
"cpuType" : "X86-64",
"procName" : "iaito",
"procPath" : "/Applications/iaito.app/Contents/MacOS/iaito",
"bundleInfo" : {"CFBundleShortVersionString":"5.7.0","CFBundleVersion":"5.7.0","CFBundleIdentifier":"org.radare.iaito"},
"storeInfo" : {"deviceIdentifierForVendor":"54F883AF-D13E-5746-B4AF-A701712BFEE6","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "org.radare.iaito",
"crashReporterKey" : "AC828BA2-AC11-AC91-8908-B716FB95CFC2",
"wakeTime" : 16812,
"bridgeVersion" : {"build":"19P5071","train":"6.5"},
"sleepWakeUUID" : "A1BE7948-C3CC-47B2-B51B-F0ED91DF3EFD",
"sip" : "enabled",
"vmRegionInfo" : "0x8 is not in any region. Bytes before following region: 140737486938104\n REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n VM_ALLOCATE 7fffffea6000-7fffffea7000 [ 4K] r-x/r-x SM=ALI ",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000001, 0x0000000000000008","rawCodes":[1,8],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000008"},
"termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":44167},
"vmregioninfo" : "0x8 is not in any region. Bytes before following region: 140737486938104\n REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n VM_ALLOCATE 7fffffea6000-7fffffea7000 [ 4K] r-x/r-x SM=ALI ",
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":3924917,"instructionState":{"instructionStream":{"bytes":[1,137,72,8,72,139,69,240,72,139,56,72,139,69,240,139,64,8,137,198,72,193,230,3,232,93,72,10,0,72,137,69,224,72,131,125,224,0,15,133,9,0,0,0,198,69,255,0,233,51,0,0,0,72,139,77,224,72,139,69,240,72,137,8,72,139,69,240,139,72,12,131,193,1,137,72,12,72,139,85,232,72,139,69,240,72,139,0,72,139,77,240,72,99,73,12,72,137,20,200,198,69,255,1,138,69,255,36,1,15,182,192,72,131,196,32,93,195,15,31,132,0,0,0,0,0,85,72,137,229,72,137,125,240,72,139,69,240,131,120,12,255,15,133,13,0,0,0,72,199,69,248,0,0,0,0,233,44,0,0,0,72,139,69,240,72,139,0,72,139,77,240,72,99,73,12,72,139,4,200,72,137,69,232,72,139,69,240,139,72,12,131],"offset":96}},"threadState":{"r13":{"value":8390156},"rax":{"value":0},"rflags":{"value":66050},"cpu":{"value":4},"r14":{"value":140702008837368},"rsi":{"value":105553166501760},"r8":{"value":0},"cr2":{"value":8},"rdx":{"value":105553166501760},"r10":{"value":3},"r9":{"value":3},"r15":{"value":140702008837368},"rbx":{"value":105553180587672},"trap":{"value":14,"description":"(no mapping for user data write)"},"err":{"value":6},"r11":{"value":7},"rip":{"value":4361951074,"matchesCrashFrame":1},"rbp":{"value":140702008837136},"rsp":{"value":140702008837104},"r12":{"value":105553143677648},"rcx":{"value":1},"flavor":"x86_THREAD_STATE","rdi":{"value":416611827809}},"queue":"com.apple.main-thread","frames":[{"imageOffset":452450,"sourceLine":53,"sourceFile":"stack.c","symbol":"r_stack_push","imageIndex":0,"symbolLocation":146},{"imageOffset":27779,"sourceLine":887,"sourceFile":"cons.c","symbol":"r_cons_push","imageIndex":1,"symbolLocation":83},{"imageOffset":172543,"sourceLine":5747,"sourceFile":"cmd.c","symbol":"r_core_cmd_str","imageIndex":2,"symbolLocation":95},{"imageOffset":57509,"sourceLine":372,"sourceFile":"Iaito.cpp","symbol":"IaitoCore::cmd(char const*)","imageIndex":3,"symbolLocation":53},{"imageOffset":73136,"sourceLine":69,"sourceFile":"Iaito.h","symbol":"IaitoCore::cmd(QString const&)","imageIndex":3,"symbolLocation":48},{"imageOffset":72814,"sourceLine":902,"sourceFile":"Iaito.cpp","symbol":"IaitoCore::seek(unsigned long long)","imageIndex":3,"symbolLocation":110},{"imageOffset":69886,"sourceLine":913,"sourceFile":"Iaito.cpp","symbol":"IaitoCore::seekAndShow(unsigned long long)","imageIndex":3,"symbolLocation":14},{"imageOffset":2194964,"imageIndex":4},{"imageOffset":2603783,"symbol":"QAbstractItemView::activated(QModelIndex const&)","symbolLocation":55,"imageIndex":5},{"imageOffset":3057196,"symbol":"QTreeView::mouseDoubleClickEvent(QMouseEvent*)","symbolLocation":940,"imageIndex":5},{"imageOffset":313792,"symbol":"QWidget::event(QEvent*)","symbolLocation":464,"imageIndex":5},{"imageOffset":998555,"symbol":"QFrame::event(QEvent*)","symbolLocation":43,"imageIndex":5},{"imageOffset":2598127,"symbol":"QAbstractItemView::viewportEvent(QEvent*)","symbolLocation":1375,"imageIndex":5},{"imageOffset":3042405,"symbol":"QTreeView::viewportEvent(QEvent*)","symbolLocation":517,"imageIndex":5},{"imageOffset":1996857,"symbol":"QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)","symbolLocation":249,"imageIndex":4},{"imageOffset":78705,"symbol":"QApplicationPrivate::notify_helper(QObject*, QEvent*)","symbolLocation":241,"imageIndex":5},{"imageOffset":90231,"symbol":"QApplication::notify(QObject*, QEvent*)","symbolLocation":6935,"imageIndex":5},{"imageOffset":1996135,"symbol":"QCoreApplication::notifyInternal2(QObject*, QEvent*)","symbolLocation":167,"imageIndex":4},{"imageOffset":81036,"symbol":"QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool)","symbolLocation":892,"imageIndex":5},{"imageOffset":439092,"imageIndex":5},{"imageOffset":434063,"imageIndex":5},{"imageOffset":78726,"symbol":"QApplicationPrivate::notify_helper(QObject*, QEvent*)","symbolLocation":262,"imageIndex":5},{"imageOffset":83776,"symbol":"QApplication::notify(QObject*, QEvent*)","symbolLocation":480,"imageIndex":5},{"imageOffset":1996135,"symbol":"QCoreApplication::notifyInternal2(QObject*, QEvent*)","symbolLocation":167,"imageIndex":4},{"imageOffset":235015,"symbol":"QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)","symbolLocation":5591,"imageIndex":6},{"imageOffset":125180,"symbol":"QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag)","symbolLocation":204,"imageIndex":6},{"imageOffset":242344,"imageIndex":7},{"imageOffset":524699,"symbol":"CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION","symbolLocation":17,"imageIndex":8},{"imageOffset":524547,"symbol":"__CFRunLoopDoSource0","symbolLocation":180,"imageIndex":8},{"imageOffset":523901,"symbol":"__CFRunLoopDoSources0","symbolLocation":242,"imageIndex":8},{"imageOffset":518296,"symbol":"__CFRunLoopRun","symbolLocation":892,"imageIndex":8},{"imageOffset":515676,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":8},{"imageOffset":189926,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":9},{"imageOffset":188947,"symbol":"ReceiveNextEventCommon","symbolLocation":283,"imageIndex":9},{"imageOffset":188645,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":70,"imageIndex":9},{"imageOffset":258557,"symbol":"_DPSNextEvent","symbolLocation":927,"imageIndex":10},{"imageOffset":252090,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1394,"imageIndex":10},{"imageOffset":196457,"symbol":"-[NSApplication run]","symbolLocation":586,"imageIndex":10},{"imageOffset":237402,"imageIndex":7},{"imageOffset":1981271,"symbol":"QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag)","symbolLocation":471,"imageIndex":4},{"imageOffset":1997570,"symbol":"QCoreApplication::exec()","symbolLocation":130,"imageIndex":4},{"imageOffset":42548,"sourceLine":104,"sourceFile":"Main.cpp","symbol":"main","imageIndex":3,"symbolLocation":564},{"imageOffset":21790,"symbol":"start","symbolLocation":462,"imageIndex":11}]},{"id":3924954,"name":"com.apple.CFSocket.private","frames":[{"imageOffset":40282,"symbol":"__select","symbolLocation":10,"imageIndex":12},{"imageOffset":685625,"symbol":"__CFSocketManager","symbolLocation":641,"imageIndex":8},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":13},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":13}]},{"id":3924964,"name":"com.apple.NSEventThread","frames":[{"imageOffset":6522,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":12},{"imageOffset":7400,"symbol":"mach_msg","symbolLocation":56,"imageIndex":12},{"imageOffset":525197,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":319,"imageIndex":8},{"imageOffset":518680,"symbol":"__CFRunLoopRun","symbolLocation":1276,"imageIndex":8},{"imageOffset":515676,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":8},{"imageOffset":1756190,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":10},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":13},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":13}]},{"id":3984694,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":13}]},{"id":3984773,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":13}]},{"id":3984783,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":13}]},{"id":3985039,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":13}]},{"id":3985040,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":13}]},{"id":3985069,"name":"Thread (pooled)","frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":12},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":13},{"imageOffset":178598,"imageIndex":4},{"imageOffset":177854,"imageIndex":4},{"imageOffset":177684,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":84,"imageIndex":4},{"imageOffset":163622,"imageIndex":4},{"imageOffset":145914,"imageIndex":4},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":13},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":13}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 4361498624,
"size" : 1294336,
"uuid" : "f23619be-f9c7-3b00-b82e-15586a77bd0d",
"path" : "/Users/USER/Desktop//libr_util.dylib",
"name" : "libr_util.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4346368000,
"size" : 163840,
"uuid" : "36198090-8644-34bc-a089-44d7c834ecf8",
"path" : "/Users/USER/Desktop/
/libr_cons.dylib",
"name" : "libr_cons.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4348825600,
"size" : 2195456,
"uuid" : "11655dee-ff73-33d0-9a8f-b0907b2999ae",
"path" : "/Users/USER/Desktop/*/libr_core.dylib",
"name" : "libr_core.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4339945472,
"CFBundleShortVersionString" : "5.7.0",
"CFBundleIdentifier" : "org.radare.iaito",
"size" : 2850816,
"uuid" : "bc56d9f1-15ea-3c97-ba1f-6720d5375b01",
"path" : "/Applications/iaito.app/Contents/MacOS/iaito",
"name" : "iaito",
"CFBundleVersion" : "5.7.0"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4410499072,
"CFBundleShortVersionString" : "5.15",
"CFBundleIdentifier" : "org.qt-project.QtCore",
"size" : 5537792,
"uuid" : "ec5ae3e7-6e74-3ab5-9f01-2b1b4fd69750",
"path" : "/usr/local/Cellar/qt@5/5.15.3/lib/QtCore.framework/Versions/5/QtCore",
"name" : "QtCore",
"CFBundleVersion" : "5.15.3"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4380884992,
"CFBundleShortVersionString" : "5.15",
"CFBundleIdentifier" : "org.qt-project.QtWidgets",
"size" : 4472832,
"uuid" : "6ca582be-cefe-37a6-9566-52af72a2d009",
"path" : "/usr/local/Cellar/qt@5/5.15.3/lib/QtWidgets.framework/Versions/5/QtWidgets",
"name" : "QtWidgets",
"CFBundleVersion" : "5.15.3"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4393058304,
"CFBundleShortVersionString" : "5.15",
"CFBundleIdentifier" : "org.qt-project.QtGui",
"size" : 5111808,
"uuid" : "97caebb7-cee6-31d9-bc36-dac4884175e6",
"path" : "/usr/local/Cellar/qt@5/5.15.3/lib/QtGui.framework/Versions/5/QtGui",
"name" : "QtGui",
"CFBundleVersion" : "5.15.3"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4374949888,
"size" : 1458176,
"uuid" : "73d99cd5-f0bc-3914-88e8-8fac9bbea8b3",
"path" : "/usr/local/Cellar/qt@5/5.15.3/plugins/platforms/libqcocoa.dylib",
"name" : "libqcocoa.dylib"
},
{
"source" : "P",
"arch" : "x86_64h",
"base" : 140703656677376,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.CoreFoundation",
"size" : 5255168,
"uuid" : "f8e45ef9-9fd2-3331-bb1b-703d5dacdaf1",
"path" : "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation",
"name" : "CoreFoundation",
"CFBundleVersion" : "1863"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703804489728,
"CFBundleShortVersionString" : "2.1.1",
"CFBundleIdentifier" : "com.apple.HIToolbox",
"size" : 3096576,
"uuid" : "04544f53-a387-3ac3-a85d-f8adfc0bc69e",
"path" : "/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox",
"name" : "HIToolbox"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703701233664,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.AppKit",
"size" : 15265792,
"uuid" : "832ad371-d3b8-3061-b4e2-1c4e0cffce0b",
"path" : "/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit",
"name" : "AppKit",
"CFBundleVersion" : "2113.50.132"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4409745408,
"size" : 442368,
"uuid" : "b70ce1ec-b902-3852-8268-05de00bfa8d5",
"path" : "/usr/lib/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703656132608,
"size" : 229376,
"uuid" : "61711d11-e776-3bc3-b9a2-6f9f37cb8499",
"path" : "/usr/lib/system/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703656361984,
"size" : 49152,
"uuid" : "bc574849-1aae-31e7-b350-916dda999d97",
"path" : "/usr/lib/system/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"sharedCache" : {
"base" : 140703653105664,
"size" : 15220686848,
"uuid" : "398acfb4-57f6-31e0-bc82-e9959e5c92ce"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=1.0G resident=0K(0%) swapped_out_or_unallocated=1.0G(100%)\nWritable regions: Total=389.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=389.3G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 640K 5 \nActivity Tracing 256K 1 \nCG backing stores 2160K 4 \nCG image 3608K 22 \nCG raster data 776K 1 \nColorSync 232K 27 \nCoreAnimation 4284K 16 \nCoreGraphics 12K 2 \nCoreImage 4K 1 \nCoreUI image data 1484K 12 \nFoundation 48K 2 \nKernel Alloc Once 8K 1 \nMALLOC 1.1G 129 \nMALLOC guard page 32K 8 \nMALLOC_LARGE (reserved) 387.9G 3 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 256.0M 1 reserved VM address space (unallocated)\nObjC additional data 15K 1 \nSTACK GUARD 56.0M 9 \nStack 19.8M 37 \nVM_ALLOCATE 656K 24 \n__CTF 756 1 \n__DATA 37.4M 436 \n__DATA_CONST 22.8M 253 \n__DATA_DIRTY 911K 127 \n__FONT_DATA 4K 1 \n__GLSLBUILTINS 5176K 1 \n__LINKEDIT 688.6M 59 \n__TEXT 367.3M 444 \n__UNICODE 592K 1 \ndyld private memory 1152K 3 \nmapped file 860.9M 275 \nshared memory 776K 18 \n=========== ======= ======= \nTOTAL 391.3G 1925 \nTOTAL, minus reserved VM space 3.1G 1925 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "607844aa04477260f58a8077",
"factorPackIds" : {
"SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
},
"deploymentId" : 240000066
},
{
"rolloutId" : "6112e14f37f5d11121dcd519",
"factorPackIds" : {
"SIRI_TEXT_TO_SPEECH" : "62670db041fbd3022330bf19"
},
"deploymentId" : 240000128
}
],
"experiments" : [

]
}
}

Decompiler not working

Environment Details

iaito 5.5.0 24a2eba21c43f42aa4535278be20ff7e957c884d
radare2 5.6.6
r2ghidra a4ba1ddc85c84a98df1d39fe6c611894daa97474
ghidra-native e45b661d59978b371e30a5540064a31e6ea647f0

Description

Decompiler view loads forever and remains empty. pdg command works flawlessly in native r2.

IAITO not showing imports

Environment Details

iaito 5.2.2
mar 03 ago 2021 14:12:03 CEST
radare2 5.4.0-git 26609 @ linux-x86-64 git.5.4.0-git
commit: 305145d37fd8ba00a5ae2c9a5c5ffcae379d9733 build: 2021-08-03__13:58:31
Linux x86_64

Description

IAITO is not showing PE imports, while r2 do.
image
image

Possibly packaging issue with r2cutter-0.1.0_mac.pkg.zip

Environment information

  • Operating System: macOS Mojave
  • Cutter version: r2cutter-0.1.0_mac
  • Obtained from:
    • Built from source
    • Downloaded release from Cutter website or GitHub
    • Distribution repository
  • File format: r2cutter-0.1.0_mac.pkg.zip

Describe the bug
Found this error message when executing the unzipped r2cutter-5.1.0.pkg file
Screen Shot 2021-02-01 at 12 33 32 PM

Symbol Lookup Error on Startup

When starting iaito on my Manjaro Linux machine I get this error:
iaito: symbol lookup error: iaito: undefined symbol: _ZN6PySide16fillQtPropertiesEP7_objectPK11QMetaObjectS1_PPKcj

The program was installed through pacman, so I would have expected it to work out of the box, but something's seemingly wrong.

Two definitions of the ColumnIndex

Hello,
the compilation reports potential problem with enum ColumnIndex being defined twice.

BUILD/r2cutter-0.1.1/src/widgets/ThreadsWidget.cpp:12:6: warning: type 'ColumnIndex' violates the C++ One Definition Rule [-Wodr]
12 | enum ColumnIndex {
| ^
BUILD/r2cutter-0.1.1/src/widgets/ProcessesWidget.cpp:12:6: note: an enum with different value name is defined in another translation unit
12 | enum ColumnIndex {
| ^
BUILD/r2cutter-0.1.1/src/widgets/ThreadsWidget.cpp:14:5: note: name 'COLUMN_STATUS' differs from name 'COLUMN_UID' defined in another translation unit
14 | COLUMN_STATUS,
| ^
BUILD/r2cutter-0.1.1/src/widgets/ProcessesWidget.cpp:14:5: note: mismatching definition
14 | COLUMN_UID,
| ^

[FIXED] Reported version (0.1.0) is different than what is possible to see in the other places (5.2.1)

Environment Details

Despite we only fix issues reproducible in git-master branch, it's fine to report issues found in releases. And those will be closed when a new release comes out.

# copypaste this script into your shell and replace it with the output
iaito -v
date
r2 -v
uname -ms

$ iaito -v
QCommandLineParser: already having an option named "w"
iaito 0.1.0
$ date
2021-04-16T22:14:58 CEST
$ r2 -v
radare2 5.2.0 0 @ linux-x86-64 git.5.2.0
commit: unknown build: 2021-04-16__00:49:31
$ uname -ms
Linux x86_64

Description

iaito -v
QCommandLineParser: already having an option named "w"
iaito 0.1.0

iaito / About / Version 0.1.0

Error on compilation: ‘class QThreadPool’ has no member named ‘setStackSize’

Environment Details

Ubuntu 20.04

No command iaito

sáb 24 abr 2021 23:52:14 -03

radare2 5.3.0-git 26192 @ linux-x86-64 git.5.2.1
commit: 17d5c547643ea77e69c6e283ad623852a05bc6d2 build: 2021-04-24__23:44:42

Linux x86_64

Description

Error on make

../src/common/AsyncTask.cpp:87:17: error: ‘class QThreadPool’ has no member named ‘setStackSize’
   87 |     threadPool->setStackSize(R2THREAD_STACK_SIZE);

Between all the warning I found that error, and the command returns error 2.

iaito startup error

Environment Details

Pretty much out of the box kali distro.

iaito: symbol lookup error: iaito: undefined symbol: r_codemeta_free

iaito

I've combed through the dependencies to make sure those weren't an issue, but it doesn't seem like there's anything documented on this issue?

Unable to build on NixOS

I am trying to build iaito on NixOS, and I fail because the build script does not find r_core.h. However, r_core.h is readily available when executing pkg-config --cflags r_core in the build environment.

Output of pkg-config --cflags r_core:

 + pkg-config --cflags r_core
-I/nix/store/a6al83r6rr8j247q1bqis496knlywmzx-radare2-5.7.0/include/libr -I/nix/store/i3kar1gax8ji9v491hpb5iv115ja5lph-openssl-1.1.1o-dev/include -I/nix/store/1cmw9z2sqab115w4vpcpkya6i92syv0x-capstone-4.0.2/include/capstone -I/nix/store/a6al83r6rr8j247q1bqis496knlywmzx-radare2-5.7.0/include/libr -I/nix/store/a6al83r6rr8j247q1bqis496knlywmzx-radare2-5.7.0/include/libr/sdb

r_core.h is available in .../include/libr.

Complete build.log.

Error in start

Environment information

  • Operating System: Debian testing
  • Cutter version:
  • Obtained from:
    • Built from source
    • Downloaded release from Cutter website or GitHub
    • Distribution repository
  • File format:

Describe the bug
When start program from cli with r2cutter show me this error:
r2cutter: symbol lookup error: r2cutter: undefined symbol: r_annotated_code_free

Missing DLLs on run

I run Iaito and I've copied all the files over, but it says some DLLs are missing.
Here's a list of the missing DLLs:

  • r_core.dll
  • r_config.dll
  • r_cons.dll
  • r_io.dll

Segmentation fault when opening windows binaries

Environment Details

QCommandLineParser: already having an option named "w"
iaito 5.2.2
Fri Nov  5 20:12:43 CET 2021
radare2 5.4.3 26997 @ linux-x86-64 git.5.4.2
commit: f0ffdde6b6f54f440f5a6920e88de46a60ca8f4f build: 2021-11-04__14:12:46
Linux x86_64

iaito is installed from the master branch and is up to date.

Description

When trying to open a project iaito crashes with a Segmentation fault after the analysis is done.

Output (disabled analysis):

QCommandLineParser: already having an option named "w"
WARNING: r_event_hook: assertion 'ev' failed (line 59)
Plugins are loaded from "/home/****/.local/share/radareorg/iaito/plugins"
Loaded 0 plugin(s).
Plugins are loaded from "/usr/local/share/radareorg/iaito/plugins"
Plugins are loaded from "/usr/share/radareorg/iaito/plugins"
Segmentation fault (core dumped)

How to reproduce

Open iaito, open an executable, wait for the analysis to finish and it will crash.
This seems to only happens with Windows binaries, I didn't encounter it with ELF executables.

Errors on compilation

Environment Details

No command iaito

jue 29 abr 2021 18:22:51 -03

radare2 5.3.0-git 26218 @ linux-x86-64 git.5.2.1
commit: 025bd47d355b1778abffaad6632a8f8bfac3a2b0 build: 2021-04-29__18:15:28

Linux x86_64

Description

make | grep "error"
Project MESSAGE: Crash report support disabled.
Project MESSAGE: Python disabled.
Project MESSAGE: Python Bindings disabled. (requires IAITO_ENABLE_PYTHON=true)
/usr/bin/ld: Iaito.o: en la función `IaitoCore::renameFunctionVariable(QString, QString, unsigned long long)':
Iaito.cpp:(.text+0x4205): referencia a `r_anal_function_get_var_byname' sin definir
/usr/bin/ld: Iaito.o: en la función `IaitoCore::setConfig(char const*, bool)':
Iaito.cpp:(.text+0x6378): referencia a `r_config_set_b' sin definir
/usr/bin/ld: Iaito.o: en la función `IaitoCore::getAllFunctions()':
Iaito.cpp:(.text+0x14242): referencia a `r_anal_function_count_edges' sin definir
/usr/bin/ld: DecompilerContextMenu.o: en la función `DecompilerContextMenu::isReference()':
DecompilerContextMenu.cpp:(.text+0x165e): referencia a `r_codemeta_item_is_reference' sin definir
/usr/bin/ld: DecompilerContextMenu.o: en la función `DecompilerContextMenu::isFunctionVariable()':
DecompilerContextMenu.cpp:(.text+0x167e): referencia a `r_codemeta_item_is_variable' sin definir
/usr/bin/ld: DecompilerWidget.o: en la función `DecompilerWidget::DecompilerWidget(MainWindow*)':
DecompilerWidget.cpp:(.text+0x28ef): referencia a `r_codemeta_free' sin definir
/usr/bin/ld: Decompiler.o: en la función `Decompiler::makeWarning(QString)':
Decompiler.cpp:(.text+0xfd): referencia a `r_codemeta_new' sin definir
/usr/bin/ld: Decompiler.o: en la función `R2DecDecompiler::decompileAt(unsigned long long)::{lambda()#1}::operator()() const [clone .isra.0]':
Decompiler.cpp:(.text+0x252): referencia a `r_codemeta_new' sin definir
/usr/bin/ld: Decompiler.cpp:(.text+0x6b3): referencia a `r_codemeta_add_item' sin definir
/usr/bin/ld: Decompiler.cpp:(.text+0x702): referencia a `r_codemeta_item_new' sin definir
/usr/bin/ld: R2GhidraCmdDecompiler.o: en la función `R2GhidraCmdDecompiler::decompileAt(unsigned long long)::{lambda()#1}::operator()() const [clone .isra.0]':
R2GhidraCmdDecompiler.cpp:(.text+0x92): referencia a `r_codemeta_new' sin definir
/usr/bin/ld: R2GhidraCmdDecompiler.cpp:(.text+0x239): referencia a `r_codemeta_item_new' sin definir
/usr/bin/ld: R2GhidraCmdDecompiler.cpp:(.text+0x3d1): referencia a `r_codemeta_add_item' sin definir
/usr/bin/ld: R2pdcCmdDecompiler.o: en la función `R2pdcCmdDecompiler::decompileAt(unsigned long long)::{lambda()#1}::operator()() const [clone .isra.0]':
R2pdcCmdDecompiler.cpp:(.text+0x129): referencia a `r_codemeta_new' sin definir
/usr/bin/ld: R2pdcCmdDecompiler.cpp:(.text+0x239): referencia a `r_codemeta_item_new' sin definir
/usr/bin/ld: R2pdcCmdDecompiler.cpp:(.text+0x3d1): referencia a `r_codemeta_add_item' sin definir
/usr/bin/ld: R2retdecDecompiler.o: en la función `R2retdecDecompiler::decompileAt(unsigned long long)::{lambda()#1}::operator()() const [clone .isra.0]':
R2retdecDecompiler.cpp:(.text+0x92): referencia a `r_codemeta_new' sin definir
/usr/bin/ld: R2retdecDecompiler.cpp:(.text+0x239): referencia a `r_codemeta_item_new' sin definir
/usr/bin/ld: R2retdecDecompiler.cpp:(.text+0x3d1): referencia a `r_codemeta_add_item' sin definir
/usr/bin/ld: DecompilerHighlighter.o: en la función `DecompilerHighlighter::highlightBlock(QString const&)':
DecompilerHighlighter.cpp:(.text+0x4ee): referencia a `r_codemeta_in' sin definir
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1097: iaito] Error 1
make: *** [Makefile:53: iaito] Error 2

Return values from some functions not used

Hello,
compilation reports issue that the return values from some functions are not handled properly. This could cause some race condition issues or even data loss when writing.

[ 22%] Building CXX object CMakeFiles/r2cutter.dir/widgets/ExportsWidget.cpp.o
/usr/lib64/ccache/g++ -DCUTTER_ENABLE_GRAPHVIZ -DCUTTER_ENABLE_KSYNTAXHIGHLIGHTING -DCUTTER_SOURCE_BUILD -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -Dr2cutter_EXPORTS -IBUILD/r2cutter-0.1.1/x86_64-redhat-linux-gnu -IBUILD/r2cutter-0.1.1/src -IBUILD/r2cutter-0.1.1/x86_64-redhat-linux-gnu/r2cutter_autogen/include -IBUILD/r2cutter-0.1.1/src/core -IBUILD/r2cutter-0.1.1/src/widgets -IBUILD/r2cutter-0.1.1/src/common -IBUILD/r2cutter-0.1.1/src/plugins -IBUILD/r2cutter-0.1.1/src/menus -IBUILD/r2cutter-0.1.1/src/. -isystem /usr/include/graphviz -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/libr -isystem /usr/include/libr/sdb -isystem /usr/include/capstone -isystem /usr/include/KF5/KSyntaxHighlighting -isystem /usr/include/KF5 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fvisibility=hidden -Wall -Wextra -fPIC -std=gnu++11 -o CMakeFiles/r2cutter.dir/widgets/ExportsWidget.cpp.o -c BUILD/r2cutter-0.1.1/src/widgets/ExportsWidget.cpp
BUILD/r2cutter-0.1.1/src/widgets/ConsoleWidget.cpp: In member function 'void ConsoleWidget::sendToStdin(const QString&)':
BUILD/r2cutter-0.1.1/src/widgets/ConsoleWidget.cpp:251:10: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
251 | write(stdinFile, (input + "\n").toStdString().c_str(), input.size() + 1);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BUILD/r2cutter-0.1.1/src/widgets/ConsoleWidget.cpp: In member function 'void ConsoleWidget::redirectOutput()':
BUILD/r2cutter-0.1.1/src/widgets/ConsoleWidget.cpp:463:9: warning: ignoring return value of 'int pipe(int*)' declared with attribute 'warn_unused_result' [-Wunused-result]
463 | pipe(redirectPipeFds);
| ~~~~^~~~~~~~~~~~~~~~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.