soga07 / smali

Automatically exported from code.google.com/p/smali
0 stars 0 forks source link

Fail to disassemble #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
Unknown opcode: ff

What is the exact smali/baksmali command that you ran?
java -jar baksmali-1.3.3.jar -ls -o dexmaxplayer com.maxmpz.audioplayer-1.apk

What version of smali/baksmali are you using? What rom are you working
from?
baksmali-1.3.3

What is the airspeed velocity of an unladen swallow?

Please provide any additional information below: error messages, symptoms,
etc.

Error message:

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: Unknown opcode: ff
    at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
    at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:92)
    at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
    at org.jf.dexlib.Item.readFrom(Item.java:77)
    at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
    at org.jf.dexlib.Section.readFrom(Section.java:143)
    at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
    at org.jf.baksmali.main.main(main.java:269)
Caused by: java.lang.RuntimeException: Unknown opcode: ff
    at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:56)
    ... 6 more
Error occured at code address 0
code_item @0x25e6c

APK downloaded from:
https://play.google.com/store/apps/details?id=com.maxmpz.audioplayer

Original issue reported on code.google.com by nmalb...@gmail.com on 28 Jun 2012 at 3:57

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by JesusFr...@gmail.com on 29 Jun 2012 at 5:36

GoogleCodeExporter commented 9 years ago
Fixed by 
http://code.google.com/p/smali/source/detail?r=2f81aec886d2d742410c9cac693a9c9cd
8b21a7f

Original comment by jesusfreke@jesusfreke.com on 29 Jun 2012 at 6:20

GoogleCodeExporter commented 9 years ago

Original comment by jesusfreke@jesusfreke.com on 29 Jun 2012 at 6:20

GoogleCodeExporter commented 9 years ago
I downloaded the update, compiled it and ran the same command.
New error:

unknown opcode encountered - ff5a. Treating as nop.
unknown opcode encountered - 3f. Treating as nop.
unknown opcode encountered - ec. Treating as nop.
unknown opcode encountered - 79. Treating as nop.

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: Index: 983040, Size: 3429
    at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
    at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:77)
    at org.jf.dexlib.Code.InstructionWithReference.<init>(InstructionWithReference.java:57)
    at org.jf.dexlib.Code.Format.InstructionWithJumboReference.<init>(InstructionWithJumboReference.java:51)
    at org.jf.dexlib.Code.Format.Instruction41c.<init>(Instruction41c.java:66)
    at org.jf.dexlib.Code.Format.Instruction41c.<init>(Instruction41c.java:44)
    at org.jf.dexlib.Code.Format.Instruction41c$Factory.makeInstruction(Instruction41c.java:94)
    at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:85)
    at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
    at org.jf.dexlib.Item.readFrom(Item.java:77)
    at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
    at org.jf.dexlib.Section.readFrom(Section.java:143)
    at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
    at org.jf.baksmali.main.main(main.java:269)
Caused by: java.lang.IndexOutOfBoundsException: Index: 983040, Size: 3429
    at java.util.ArrayList.rangeCheck(ArrayList.java:571)
    at java.util.ArrayList.get(ArrayList.java:349)
    at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:75)
    ... 12 more
Error occured while retrieving the field_id_item item at index 983040
Error occured at code address 0
code_item @0x4a2f4

Original comment by nmalb...@gmail.com on 29 Jun 2012 at 4:10

GoogleCodeExporter commented 9 years ago
use -a 10

Original comment by JesusFr...@gmail.com on 29 Jun 2012 at 4:46

GoogleCodeExporter commented 9 years ago
Perfect, thanks a lot.

Original comment by nmalb...@gmail.com on 29 Jun 2012 at 7:47

GoogleCodeExporter commented 9 years ago
I also encountered the same problem. Can you provide me with the updated 
version?
Thank you.

Original comment by thl0...@gmail.com on 6 Aug 2012 at 4:12

GoogleCodeExporter commented 9 years ago
You can build one yourself. It's relatively painless :)

http://code.google.com/p/smali/wiki/BuildProcedure

I'll try get a new version with the recent change out soon. There are a couple 
other issues I want to get fixed first.

Original comment by jesusfreke@jesusfreke.com on 6 Aug 2012 at 4:48