Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

jadx fails to decompile methods optimized by simplify #108

Open
axnsan12 opened this issue Jul 13, 2018 · 3 comments
Open

jadx fails to decompile methods optimized by simplify #108

axnsan12 opened this issue Jul 13, 2018 · 3 comments
Labels

Comments

@axnsan12
Copy link

axnsan12 commented Jul 13, 2018

Using the master branch.

Ran as:

java -Xmx512M -Xms256M -jar simplify/build/libs/simplify.jar btpay-1.dex --max-address-visits 100000 --max-call-depth 150 --max-method-visits 10000000 --output btpay-dex-1-simplify-2.dex -ie | tee simplify-dex-1.log

Using jadx to decompile, I get errors such as

/*
Error: jadx.core.utils.exceptions.JadxRuntimeException: Unreachable block: B:9:0x001c
	at jadx.core.dex.visitors.blocksmaker.BlockProcessor.modifyBlocksTree(BlockProcessor.java:248)
	at jadx.core.dex.visitors.blocksmaker.BlockProcessor.processBlocksTree(BlockProcessor.java:52)
	at jadx.core.dex.visitors.blocksmaker.BlockProcessor.visit(BlockProcessor.java:38)
	at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)
	at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
*/

The attached archive contains the original .dex, the simplified.dex and the simplify log
https://drive.google.com/file/d/1DO2vDddorcNPItxJ9MITVTrHU7yLlgda/view?usp=sharing

@CalebFenton
Copy link
Owner

Thanks for the issue. I think you have enough here to try and reproduce. Btw, what version of jadx are you using?

My day job is keeping me pretty busy, but I occasionally reward myself with time to work on simplify issues. :D

@enovella
Copy link

Got the same behavior some time ago.

@charles2gan
Copy link

@axnsan12 I can decompile your simplified.dex file with my GDA. probably your tool has problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants