BZ #148: Unknown ICMD 148 when trying to run java trading software

Status fields:

creation_ts:2010-11-17 16:22
component:jit
version:default branch
rep_platform:x86_64
op_sys:Linux
bug_status:RESOLVED
resolution:FIXED
reporter:eric225125@gmail.com
This bug can be reproduced by following the steps here:
http://interactivebrokers.com/en/control/systemstandalone.php?os=unix&ib_entity=llc

I ran this with the latest Icedtea6/CACAO from the tree.

% java -cp
jts.jar:hsqldb.jar:jcommon-1.0.12.jar:jfreechart-1.0.9.jar:jhall.jar:other.jar:rss.jar
-Xmx512M jclient.LoginFrame .
Exception in thread "JTS-Main" java.lang.InternalError: Unknown ICMD 148 during code
generation
        at twslaunch.jclient.login.a.a(a.java:72)
        at jclient.Launcher.a(Launcher.java:255)
        at jclient.Launcher.a(Launcher.java:202)
        at jclient.Launcher.a(Launcher.java:83)
        at jclient.LoginFrame.main(LoginFrame.java:343)

Comment #1 by eric225125@gmail.com on 2010-11-17 16:25:38

Additional info:

% java -version
java version "1.6.0_20"
IcedTea Runtime Environment (1.10pre) (Exherbo)
CACAO (build 1.1.0pre2, compiled mode)

% uname -a
Linux shuttle 2.6.34.1 #5 PREEMPT Mon Sep 20 16:43:08 EDT 2010 x86_64 GNU/Linux

Comment #2 by stefan@complang.tuwien.ac.at on 2010-11-17 18:44:40

Fascinating! ICMD_LCMP has never been implemented on most architectures. Apparently only
Alpha and PowerPC had it during a brief period, more than half a decade ago...

Comment #3 by stefan@complang.tuwien.ac.at on 2010-11-18 15:43:02

http://mips.complang.tuwien.ac.at/hg/cacao/rev/d9927802106c

Unbelievably easy to fix. The auto builtin needs to take over, and everything is fine.

Comment #4 by eric225125@gmail.com on 2010-11-18 17:38:00

Awesome! I tried a few charts and placed some orders, and everything seems to work.

I do get messages about an usupported feature, but they seem pretty harmless.

11:20:39:128 JTS-DeadlockMonitor: Anticipated error
java.lang.UnsupportedOperationException: Thread CPU Time Measurement is not supported.
        at sun.management.ThreadImpl.getThreadCpuTime(ThreadImpl.java:214)
        at jutils.health.fb.a(fb.java:125)
        at jutils.health.fb.run(fb.java:113)
        at java.util.TimerThread.mainLoop(Timer.java:534)
        at java.util.TimerThread.run(Timer.java:484)
LOG: [0x00007fd042508710] jmm_FindMonitorDeadlockedThreads: IMPLEMENT ME!