vaginessa / smali

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

Baksmali fails on retrieving field_id_item #186

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
Maybe disassembly fails due to ignored link section.

What is the exact smali/baksmali command that you ran?
-o /tmp ~/classes.dex

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

What is the airspeed velocity of an unladen swallow?

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

This dex file has a link section, which is not supported. Ignoring.

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: Index: 36733, Size: 38
    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.lookupReferencedItem(InstructionWithReference.java:79)
    at org.jf.dexlib.Code.InstructionWithReference.<init>(InstructionWithReference.java:57)
    at org.jf.dexlib.Code.Format.Instruction21c.<init>(Instruction21c.java:63)
    at org.jf.dexlib.Code.Format.Instruction21c.<init>(Instruction21c.java:40)
    at org.jf.dexlib.Code.Format.Instruction21c$Factory.makeInstruction(Instruction21c.java:112)
    at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:82)
    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:280)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at joeboxutils.common.utils.ProcessUtils$1.run(ProcessUtils.java:144)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: Index: 36733, Size: 38
    at java.util.ArrayList.rangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:75)
    ... 18 more
Error occured while retrieving the field_id_item item at index 36733
Error occured at code address 16
code_item @0x1758

Original issue reported on code.google.com by Miller....@googlemail.com on 11 Sep 2013 at 11:25

Attachments:

GoogleCodeExporter commented 9 years ago
This is fixed in the dexlib_redesign branch. The fix will be in the next 2.0 
beta - v2.0b6

Original comment by jesusfreke@jesusfreke.com on 15 Sep 2013 at 2:54