Giter Site home page Giter Site logo

Comments (17)

trufae avatar trufae commented on May 29, 2024 2

Unfortunely, iaito is using a single core instance from multiple threads, which is conceptually wrong, so now, that r2 is thread safe, iaito fails hard by assuming globals are initialized and uses the mutexes incorrectly too.

I pushed some fixes in r2 and iaito, but its still not yet fully working (but at least is not crashing). But you will need to build r2 without threads to try it out.

radare2$ sys/install.sh --disable-threads

from iaito.

trufae avatar trufae commented on May 29, 2024 2

Yep that's expected because Iaito is far from thread safe.

I dont think i can cook the needed apis before 5.7. I will update and release a new iaito when this is ready.

from iaito.

Maxung avatar Maxung commented on May 29, 2024 1

Ignore the last edit after restarting it worked. With the master branch decompiler still doesn't work though, but version 5.5 was looking fine, thanks for your help!

from iaito.

trufae avatar trufae commented on May 29, 2024 1

The missing operands is fixed in master. What should we do to fix the kf5 issue?

from iaito.

Maxung avatar Maxung commented on May 29, 2024

Thanks for the quick reply and I understand that as an open source project things might not always be working out right away. I actually just wanted to try iaito out, to see how different it is from command line r2 and got confused because I couldn't find an issue, so no worries

from iaito.

Maxung avatar Maxung commented on May 29, 2024

So I was able to run it once, trying to open decompiler crashed it though (maybe r2ghidra?). Now when I try to open it again (make run or in /Applicatons) I get:

rarun2 libpath=/usr/local/lib program=build/iaito.app/Contents/MacOS/iaito
QCommandLineParser: already having an option named "w"
make: *** [run] Killed: 9

Strange thing is when I run it via lldb it crashes but still opens. And decompiler doesn't crash, but it loads forever

from iaito.

trufae avatar trufae commented on May 29, 2024

Did you git pull r2 and iaito and compiled r2 without threads? Otherwise if your purpose is to try it out i would recommend you to build r2-5.4 or 5.5 which didnt had thread safety magic yet

from iaito.

Maxung avatar Maxung commented on May 29, 2024

Yeah I pulled latest master branch from both and build as per your instruction. But I can try tomorrow again (and use your suggestion)

So tried it again and it doesn't open at all now and I just get make: *** [run] Killed: 9 in terminal.
Also I noticed that it's actually radare2 crashing now, more specifically the r2 binary

from iaito.

xambroz avatar xambroz commented on May 29, 2024

499 R_API void r_cons_sleep_end(void *user) {

Same issue on Fedora Linux with the r2 5.6.0 release .
Workaround with disabling threads works there as well
(radare2-5a7ffe4c0a71794fbb0b945d52065c7c11d1eec2 + iaito-28a1099603b3fa671bfbb226025d1a8c45558471,
meson ... -Dwant_threads=false )

from iaito.

xambroz avatar xambroz commented on May 29, 2024

Seems that -Dwant_threads=false is gone from radare2 5.6.4 ... did anything change regarding compiling iaito with recent radare2 versions?

from iaito.

xambroz avatar xambroz commented on May 29, 2024

Sorry - my fault - it is working with radare2 5.6.4

from iaito.

trufae avatar trufae commented on May 29, 2024

Is the disasm issue (only showing instruction without arguments) still happening?

from iaito.

xambroz avatar xambroz commented on May 29, 2024

Yes unfortunately issue with not showing the arguments is still there.
image

And BTW there are some comming issues with the recent update of kf5 from 5.90 to 5.91 kf5-syntax-highlighting-devel stopped advertising include dir /usr/include/KF5
https://bugzilla.redhat.com/show_bug.cgi?id=2059619

from iaito.

xambroz avatar xambroz commented on May 29, 2024

OK operands fixed in master.

For #70 KF5 5.91 I am adding include for /usr/include/KF5 when compiling with syntax highlighting. Probably not a best solution, but works for now.

from iaito.

xambroz avatar xambroz commented on May 29, 2024

I believe this incident can be closed - please @Maxung can you confirm for the MacOS side?

from iaito.

Maxung avatar Maxung commented on May 29, 2024

Currently getting this, I'll try tomorrow on my other Mac to see if it's environment problem on my side:

Kyouko:~/iaito (master %) % make   
mkdir -p build
cd build && /opt/homebrew/bin/qmake ../src/Iaito.pro 
Info: creating stash file /Users/max/iaito/build/.qmake.stash
Project ERROR: failed to parse default search paths from compiler output
make: *** [build] Error 3

from iaito.

Maxung avatar Maxung commented on May 29, 2024

Ok tested on a pretty fresh system (macOS 12.2) and building + running just fine. Only thing is that the decompiler (pdc) is still loading forever, but I think that might be a separate issue

from iaito.

Related Issues (20)

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.