hosijyun / smali

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

Error decompiling #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?

Can`t disassemble classes.dex from titanumbackup

class_def_item: L?;

What is the exact smali/baksmali command that you ran?

java -jar baksmali.jar classes.dex

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

baksmali-1.3.4-dev

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

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext
    at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
    at org.jf.dexlib.Item.addExceptionContext(Item.java:177)
    at org.jf.dexlib.Item.readFrom(Item.java:79)
    at org.jf.dexlib.IndexedSection.readItems(IndexedSection.java:50)
    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.IllegalStateException
    at com.google.common.base.Preconditions.checkState(Preconditions.java:124)
    at org.jf.dexlib.ClassDataItem.setParent(ClassDataItem.java:412)
    at org.jf.dexlib.ClassDefItem.readItem(ClassDefItem.java:150)
    at org.jf.dexlib.Item.readFrom(Item.java:77)
    ... 4 more
class_def_item: L?;

Original issue reported on code.google.com by furn...@gmail.com on 31 Aug 2012 at 5:44

Attachments:

GoogleCodeExporter commented 9 years ago
Heh. Your report confused me at first, because it shows the class name as L?; - 
but ? isn't a valid character for class names. (Turns out its a chinese 
character, not ?).

The problem is that a single class data item is shared for multiple classes -- 
but I didn't anticipate this was possible. It normally isn't possible, except 
for the case of a completely empty class (no defined fields/method).

Thanks for the report - I'll get it fixed soon.

Original comment by jesusfreke@jesusfreke.com on 31 Aug 2012 at 8:45

GoogleCodeExporter commented 9 years ago
Fixed.

https://code.google.com/p/smali/source/detail?r=b58433a0740d6a69dd22b723f84030be
b81e1911

Original comment by jesusfreke@jesusfreke.com on 4 Sep 2012 at 12:01