Skip to main content

Need Help! CLDC VM Debug version can not run class

4 replies [Last post]
singlly
Offline
Joined: 2008-03-18

I success built the phoneme feature cldc vm and put it to sdcard run on device. (cldc build config use linux_arm, USE_DEBUG=false)

The release version run class helloworld success, but the debug version can not run.

Here's the error info:

/sdcard/cldc/linux_arm/dist/bin # ./cldc_vm_g helloworld
Fatal signal SIGILL: errno=0; code=4; addr=0x12bac8
[Dumping all threads]
Current thread = 0x0

[Finished dumping all threads]
/sdcard/cldc/linux_arm/dist/bin # ./cldc_vm_r helloworld
Hello World!
/sdcard/cldc/linux_arm/dist/bin #

Is there anyone can help me on this issue? Thank you very much!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vitty85
Offline
Joined: 2007-07-20

see on http://wcejavaproject.blogattivo.com/ maybe you'll find what you need....bye

singlly
Offline
Joined: 2008-03-18

/sdcard/cldc/linux_arm/dist/bin # ./cldc_vm_r -buildopts

VM build options:

_DEBUG -
AZZERT -
ENABLE_ARM_V5TE -
ENABLE_ARM_V6 -
ENABLE_ARM_V6T2 -
ENABLE_ARM_V7 -
ENABLE_ARM_VFP -
ENABLE_ARM9_VFP_BUG_WORKAROUND -
ENABLE_ARM11_JAZELLE_DLOAD_BUG_WORKAROUND -
ENABLE_BRUTE_FORCE_ICACHE_FLUSH -
ENABLE_BYTECODE_FLUSHING -
ENABLE_C_INTERPRETER -
ENABLE_CLDC_11 enabled
ENABLE_CODE_OPTIMIZER -
ENABLE_COMPILER enabled
ENABLE_COMPILER_TYPE_INFO enabled
ENABLE_CPU_VARIANT -
ENABLE_DISPATCH_TABLE_ALIGNMENT -
ENABLE_DISPATCH_TABLE_PADDING -
ENABLE_DYNAMIC_NATIVE_METHODS -
ENABLE_DYNAMIC_RESTRICTED_PACKAGE -
ENABLE_FAST_CRC32 enabled
ENABLE_FAST_MEM_ROUTINES enabled
ENABLE_INLINEASM_INTERPRETER -
ENABLE_INLINED_ARRAYCOPY enabled
ENABLE_INTERPRETATION_LOG enabled
ENABLE_FLOAT enabled
ENABLE_INCREASING_JAVA_STACK -
ENABLE_REFLECTION -
ENABLE_RVDS -
ENABLE_ISOLATES enabled
ENABLE_JAVA_DEBUGGER -
ENABLE_JAZELLE -
ENABLE_HEAP_NEARS_IN_HEAP -
ENABLE_PREINITED_TASK_MIRRORS enabled
ENABLE_LIB_IMAGES -
ENABLE_PAGE_PROTECTION -
ENABLE_ZERO_YOUNG_GENERATION enabled
ENABLE_MEMORY_MAPPED_FILES enabled
ENABLE_MEMORY_PROFILER -
ENABLE_ROM_JAVA_DEBUGGER -
ENABLE_SYSTEM_CLASSES_DEBUG -
ENABLE_JAVA_DEBUGGER_OLD_JAVAC -
ENABLE_JAVA_STACK_TAGS -
ENABLE_JAR_ENTRY_CACHE enabled
ENABLE_JAR_READER_EXPORTS enabled
ENABLE_KVM_COMPAT -
ENABLE_NATIVE_ORDER_REWRITING enabled
ENABLE_MEASURE_NATIVE_STACK -
ENABLE_MINIMAL_ASSERT_BUILD -
ENABLE_MONET -
ENABLE_MONET_COMPILATION -
ENABLE_MONET_DEBUG_DUMP enabled
ENABLE_VM_MIPS -
ENABLE_METHOD_TRAPS -
ENABLE_PCSL enabled
ENABLE_PERFORMANCE_COUNTERS enabled
ENABLE_DETAILED_PERFORMANCE_COUNTERS -
ENABLE_PRODUCT_PRINT_STACK -
ENABLE_PROFILER -
ENABLE_WTK_PROFILER -
ENABLE_REMOTE_TRACER -
ENABLE_SYSTEM_ROM_OVERRIDE enabled
ENABLE_SYSTEM_ROM_HEADER_SKIPPING enabled
ENABLE_ROM_DEBUG_SYMBOLS enabled
ENABLE_SEGMENTED_ROM_TEXT_BLOCK enabled
ENABLE_SOFT_FLOAT enabled
ENABLE_SEMAPHORE enabled
ENABLE_ROM_GENERATOR -
ENABLE_INTERPRETER_GENERATOR -
ENABLE_STACK_TRACE enabled
ENABLE_THUMB_LIBC_GLUE -
ENABLE_THUMB_VM -
ENABLE_THUMB_COMPILER -
ENABLE_THUMB_REGISTER_MAPPING -
ENABLE_THUMB_GP_TABLE -
ENABLE_TIMER_THREAD enabled
ENABLE_TTY_TRACE enabled
ENABLE_TOS_CACHING enabled
ENABLE_FULL_STACK enabled
ENABLE_VERBOSE_ASSERTION enabled
ENABLE_VERIFY_ONLY enabled
ENABLE_EMBEDDED_CALLINFO -
ENABLE_APPENDED_CALLINFO enabled
ENABLE_COMPRESSED_VSF -
ENABLE_INLINE_COMPILER_STUBS enabled
ENABLE_XSCALE_WMMX_INSTRUCTIONS -
ENABLE_XSCALE_WMMX_TIMER_TICK -
ENABLE_XSCALE_WMMX_ARRAYCOPY -
ENABLE_REMEMBER_ARRAY_LENGTH -
ENABLE_LOOP_OPTIMIZATION -
ENABLE_XSCALE_PMU_CYCLE_COUNTER -
ENABLE_NPCE -
ENABLE_INTERNAL_CODE_OPTIMIZER -
ENABLE_INLINE enabled
ENABLE_REMEMBER_ARRAY_CHECK -
ENABLE_STATIC_TRAMPOLINE -
ENABLE_TRAMPOLINE -
ENABLE_CSE -
ENABLE_HARDWARE_TIMER_FOR_TICKS -
ENABLE_OOP_TAG -
ENABLE_MULTIPLE_PROFILES_SUPPORT -
ENABLE_JVMPI_PROFILE -
ENABLE_JVMPI_PROFILE_VERIFY -
ENABLE_CODE_PATCHING -
HARDWARE_LITTLE_ENDIAN enabled
MSW_FIRST_FOR_DOUBLE enabled
MSW_FIRST_FOR_LONG -
ROMIZING enabled
USE_BSD_SOCKET enabled
USE_UNICODE_FOR_FILENAMES enabled
/sdcard/cldc/linux_arm/dist/bin # cat /proc/cpuinfo
Processor : ARM926EJ-S rev 5 (v5l)
BogoMIPS : 571.80
Features : swp half thumb fastmult vfp edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 5
Cache type : write-through
Cache clean : not required
Cache lockdown : not supported
Cache format : Harvard
I size : 4096
I assoc : 4
I line length : 32
I sets : 32
D size : 65536
D assoc : 4
D line length : 32
D sets : 512

danila
Offline
Joined: 2006-09-25

Hi singlly,

do you have any debugger on your device?
If so, try to run the debug build under debugger and get the stack trace at the point of crash.
If not, try to build gdb or gdbserver for the device.

Danila

singlly
Offline
Joined: 2008-03-18

thanks danila.

I think it's caused by my qemu simulator kernel, the kernel does not support OABI, I rebuilt the kernel with OABI support, it's ok now.