Crash

21 views
Skip to first unread message

baktery

unread,
Feb 19, 2011, 1:47:20 PM2/19/11
to apparat-...@googlegroups.com
Processing a swf file with tdsi I got the next error:
java.lang.RuntimeException: op not found into graph : Label()=>([[GetLocal(6)\nGetLocal(5)\nSubtract()\nConvertInt()\nSetLocal(3)\nFindProperty(AbcQName('r_g0,AbcNamespace(22,')))\nGetLocal(3)\nSetProperty(AbcQName('r_g0,AbcNamespace(22,')))]],List(GetLocal(6), GetLocal(5), Subtract(), ConvertInt(), SetLocal(3), FindProperty(AbcQName('r_g0,AbcNamespace(22,'))), GetLocal(3), SetProperty(AbcQName('r_g0,AbcNamespace(22,'))), Jump(L10)))
([[GetLocal(3)\nPushByte(1)\nAdd()\nConvertInt()\nSetLocal(3)\nGetLocal(4)\nPushByte(1)\nAdd()\nConvertInt()\nSetLocal(4)\nPushByte(-65)\nConvertInt()\nSetLocal(7)\nGetLocal(6)\nGetLocal(7)\nIfEqual(L5)]],List(Label(), GetLocal(3), PushByte(1), Add(), ConvertInt(), SetLocal(3), GetLocal(4), PushByte(1), Add(), ConvertInt(), SetLocal(4), PushByte(-65), ConvertInt(), SetLocal(7), GetLocal(6), GetLocal(7), IfEqual(L5)))
([[]],List(Jump(L7)))
([[GetLocal(6)\nConvertInt()]],List(GetLocal(6), ConvertInt(), Jump(L3)))
([[ConvertInt()\nSetLocal(6)\nGetLocal(5)\nGetLocal(6)\nIfEqual(L4)]],List(ConvertInt(), SetLocal(6), GetLocal(5), GetLocal(6), IfEqual(L4)))
([[GetLocal(7)\nConvertInt()]],List(GetLocal(7), ConvertInt()))
([[GetLocal(9)\nConvertInt()]],List(GetLocal(9), ConvertInt()))
([[ConvertInt()\nSetLocal(5)\nFindPropStrict(AbcQName('uint,AbcNamespace(22,')))\nGetLocal(9)\nCallProperty(AbcQName('uint,AbcNamespace(22,')),1)\nFindPropStrict(AbcQName('uint,AbcNamespace(22,')))\nGetLocal(8)\nCallProperty(AbcQName('uint,AbcNamespace(22,')),1)\nLessThan()\nIfFalse(L2)]],List(ConvertInt(), SetLocal(5), FindPropStrict(AbcQName('uint,AbcNamespace(22,'))), GetLocal(9), CallProperty(AbcQName('uint,AbcNamespace(22,')),1), FindPropStrict(AbcQName('uint,AbcNamespace(22,'))), GetLocal(8), CallProperty(AbcQName('uint,AbcNamespace(22,')),1), LessThan(), IfFalse(L2)))
([[]],List(Jump(L8)))
([[GetLocal(0)\nPushScope()\nPushByte(0)\nSetLocal(2)\nPushByte(0)\nSetLocal(3)\nPushByte(0)\nSetLocal(4)\nPushByte(0)\nSetLocal(5)\nPushByte(0)\nSetLocal(6)\nPushByte(0)\nSetLocal(7)\nPushByte(0)\nSetLocal(8)\nPushByte(0)\nSetLocal(9)]],List(GetLocal(0), PushScope(), PushByte(0), SetLocal(2), PushByte(0), SetLocal(3), PushByte(0), SetLocal(4), PushByte(0), SetLocal(5), PushByte(0), SetLocal(6), PushByte(0), SetLocal(7), PushByte(0), SetLocal(8), PushByte(0), SetLocal(9)))
([[GetLocal(5)\nConvertInt()]],List(GetLocal(5), ConvertInt(), Jump(L1)))
([[GetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory)))\nGetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory)))\nGetLocal(4)\nCallProperty(AbcQName('readUnsignedByte,AbcNamespace(22,')),1)\nCallProperty(AbcQName('signExtend8,AbcNamespace(22,')),1)\nConvertInt()\nSetLocal(5)\nGetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory)))\nGetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory)))\nGetLocal(3)\nCallProperty(AbcQName('readUnsignedByte,AbcNamespace(22,')),1)\nCallProperty(AbcQName('signExtend8,AbcNamespace(22,')),1)\nConvertInt()\nSetLocal(6)\nGetLocal(5)\nPushByte(-65)\nAdd()\nConvertInt()\nSetLocal(7)\nGetLocal(5)\nPushByte(-33)\nAdd()\nConvertInt()\nSetLocal(5)\nGetLocal(6)\nPushByte(-65)\nAdd()\nConvertInt()\nSetLocal(9)\nGetLocal(6)\nPushByte(-33)\nAdd()\nConvertInt()\nSetLocal(6)\nFindPropStrict(AbcQName('uint,AbcNamespace(22,')))\nGetLocal(7)\nCallProperty(AbcQName('uint,AbcNamespace(22,')),1)\nFindPropStrict(AbcQName('uint,AbcNamespace(22,')))\nGetLocal(8)\nCallProperty(AbcQName('uint,AbcNamespace(22,')),1)\nLessThan()\nIfFalse(L0)]],List(Label(), GetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory))), GetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory))), GetLocal(4), CallProperty(AbcQName('readUnsignedByte,AbcNamespace(22,')),1), CallProperty(AbcQName('signExtend8,AbcNamespace(22,')),1), ConvertInt(), SetLocal(5), GetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory))), GetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory))), GetLocal(3), CallProperty(AbcQName('readUnsignedByte,AbcNamespace(22,')),1), CallProperty(AbcQName('signExtend8,AbcNamespace(22,')),1), ConvertInt(), SetLocal(6), GetLocal(5), PushByte(-65), Add(), ConvertInt(), SetLocal(7), GetLocal(5), PushByte(-33), Add(), ConvertInt(), SetLocal(5), GetLocal(6), PushByte(-65), Add(), ConvertInt(), SetLocal(9), GetLocal(6), PushByte(-33), Add(), ConvertInt(), SetLocal(6), FindPropStrict(AbcQName('uint,AbcNamespace(22,'))), GetLocal(7), CallProperty(AbcQName('uint,AbcNamespace(22,')),1), FindPropStrict(AbcQName('uint,AbcNamespace(22,'))), GetLocal(8), CallProperty(AbcQName('uint,AbcNamespace(22,')),1), LessThan(), IfFalse(L0)))
([[ReturnVoid()]],List(ReturnVoid()))
([[GetLocal(1)\nPushByte(0)\nAdd()\nConvertInt()\nSetLocal(2)\nGetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory)))\nGetLocal(1)\nCallProperty(AbcQName('readInt,AbcNamespace(22,')),1)\nConvertInt()\nSetLocal(3)\nGetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory)))\nGetLocal(1)\nPushByte(4)\nAdd()\nCallProperty(AbcQName('readInt,AbcNamespace(22,')),1)\nConvertInt()\nSetLocal(4)\nPushByte(26)\nConvertInt()\nSetLocal(8)]],List(Label(), GetLocal(1), PushByte(0), Add(), ConvertInt(), SetLocal(2), GetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory))), GetLocal(1), CallProperty(AbcQName('readInt,AbcNamespace(22,')),1), ConvertInt(), SetLocal(3), GetLex(AbcQName('Memory,AbcNamespace(22,'apparat.memory))), GetLocal(1), PushByte(4), Add(), CallProperty(AbcQName('readInt,AbcNamespace(22,')),1), ConvertInt(), SetLocal(4), PushByte(26), ConvertInt(), SetLocal(8)))
	at apparat.graph.immutable.BytecodeControlFlowGraphBuilder$$anonfun$createVertexFromMarker$1$1.apply(BytecodeControlFlowGraphBuilder.scala:91)
	at apparat.graph.immutable.BytecodeControlFlowGraphBuilder$$anonfun$createVertexFromMarker$1$1.apply(BytecodeControlFlowGraphBuilder.scala:89)
	at scala.Option.map(Option.scala:129)
	at apparat.graph.immutable.BytecodeControlFlowGraphBuilder$.buildEdge$1(BytecodeControlFlowGraphBuilder.scala:111)
	at apparat.graph.immutable.BytecodeControlFlowGraphBuilder$.apply(BytecodeControlFlowGraphBuilder.scala:147)
	at apparat.bytecode.optimization.AsmExpansion$.apply(AsmExpansion.scala:1903)
	at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4$$anonfun$apply$3$$anonfun$apply$4$$anonfun$apply$5.modifyBytecode$1(TurboDieselSportInjection.scala:117)
	at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4$$anonfun$apply$3$$anonfun$apply$4$$anonfun$apply$5.apply(TurboDieselSportInjection.scala:128)
	at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4$$anonfun$apply$3$$anonfun$apply$4$$anonfun$apply$5.apply(TurboDieselSportInjection.scala:110)
	at scala.Option.foreach(Option.scala:185)
	at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4$$anonfun$apply$3$$anonfun$apply$4.apply(TurboDieselSportInjection.scala:110)
	at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4$$anonfun$apply$3$$anonfun$apply$4.apply(TurboDieselSportInjection.scala:109)
	at scala.Option.foreach(Option.scala:185)
	at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4$$anonfun$apply$3.apply(TurboDieselSportInjection.scala:109)
	at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4$$anonfun$apply$3.apply(TurboDieselSportInjection.scala:108)
	at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:34)
	at scala.collection.mutable.ArrayOps.foreach(ArrayOps.scala:35)
	at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4.apply(TurboDieselSportInjection.scala:108)
	at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4.apply(TurboDieselSportInjection.scala:106)
	at scala.collection.immutable.HashMap$HashMap1.foreach(HashMap.scala:125)
	at scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:344)
	at scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:344)
	at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool.run(TurboDieselSportInjection.scala:106)
	at apparat.tools.ApparatApplication$.apply(ApparatApplication.scala:73)
	at apparat.tools.tdsi.TurboDieselSportInjection$.main(TurboDieselSportInjection.scala:40)
Any idea?
Thanks

Joa Ebert

unread,
Feb 19, 2011, 1:51:14 PM2/19/11
to apparat-...@googlegroups.com
You need to post some example code for us to help you with this issue.

baktery

unread,
Feb 19, 2011, 1:57:09 PM2/19/11
to apparat-...@googlegroups.com
Thanks for the reply.

I'll try to create a simple example code.

Joa Ebert

unread,
Feb 19, 2011, 1:59:21 PM2/19/11
to apparat-...@googlegroups.com
Am 19.02.2011 19:57, schrieb baktery:
> Thanks for the reply.
>
> I'll try to create a simple example code.
>

I expect that this is a configuration issue or missing error message on
our side that should have been thrown earlier.

Well -- it is definitly something on our side if you see such a plain
error.

baktery

unread,
Feb 19, 2011, 2:21:44 PM2/19/11
to apparat-...@googlegroups.com
As extra info until I find a simple code example with the problem:

If I build the sources with the mxmlc -debug=false option the problem dissapears.

Joa Ebert

unread,
Feb 19, 2011, 2:36:18 PM2/19/11
to apparat-...@googlegroups.com
In that case it sounds like a severe issue. It should not make a difference whether or not you choose -debug=true or -debug=false

pleclech

unread,
Feb 19, 2011, 3:15:11 PM2/19/11
to apparat-framework
Ok waiting for a sample ;)

baktery

unread,
Feb 19, 2011, 3:36:31 PM2/19/11
to apparat-...@googlegroups.com
Is enough with this binary?

test.swf

pleclech

unread,
Feb 19, 2011, 4:16:45 PM2/19/11
to apparat-framework
Yes thanks, i'trying to figure what occured.

I extract the code that failed from your swf it looks like that:
public function asmBug():void{
var i:int=1
var j:int=2
if (i==j) {
__asm(Jump("endif"))
}
__asm("endif:")
++i
}


On Feb 19, 9:36 pm, baktery <bakt...@gmail.com> wrote:
> Is enough with this binary?
>
>  test.swf
> 54KViewDownload

pleclech

unread,
Feb 19, 2011, 7:38:14 PM2/19/11
to apparat-framework
Ok i have made a fix within the source code.

Best,
Patrick.

baktery

unread,
Feb 20, 2011, 2:14:51 AM2/20/11
to apparat-...@googlegroups.com
Thanks Patrick!
Reply all
Reply to author
Forward
0 new messages