I got an error of "Illegal instruction" with the debug version.
I complied the v8 code(v3.19.0) with command: make android_arm.debug
armv7=false. Then run it on android phone, after a while(about 40s) it came
out such an errror:
> [1] Illegal instruction ./cctest test-hashing
>
>
> I got some info while it came out "Illegal instruction" with the debug
version:
> Program received signal SIGILL, Illegal instruction.
>
> 0x58953e20 in ?? ()
>
> (gdb) bt
>
> #0 0x58953e20 in ?? ()
>
> #1 0x0019b810 in check (string=...) at ../test/cctest/test-hashing.cc:181
>
> #2 0x0019bd14 in check_twochars (a=9 '\t', b=224 '\340') at
>> ../test/cctest/test-hashing.cc:226
>
> #3 0x0019be4c in TestStringHash () at ../test/cctest/test-hashing.cc:245
>
> #4 0x0004d39c in CcTest::Run (this=0x13f8944) at
>> ../test/cctest/cctest.h:79
>
> #5 0x0004dbb4 in main (argc=2, argv=0xbedfdcc4) at
>> ../test/cctest/cctest.cc:141
>
> (gdb) x/20i 0x58953e20-20
>
> 0x58953e0c: ; <UNDEFINED> instruction: 0xffffffff
>
> 0x58953e10: cdple 14, 10, cr11, cr13, cr15, {7}
>
> 0x58953e14: cdple 14, 10, cr11, cr13, cr15, {7}
>
> 0x58953e18: cdple 14, 10, cr11, cr13, cr15, {7}
>
> 0x58953e1c: cdple 14, 10, cr11, cr13, cr15, {7}
>
> => 0x58953e20: push {r10} ; (str r10, [sp, #-4]!)
>
> 0x58953e24: ldr r10, [pc, #68] ; 0x58953e70
>
> 0x58953e28: mov r0, #0
>
> 0x58953e2c: mov r12, #9
>
> 0x58953e30: ldr r0, [r10, #140] ; 0x8c
>
> 0x58953e34: add r0, r12, r0, lsr #1
>
> 0x58953e38: add r0, r0, r0, lsl #10
>
> 0x58953e3c: eor r0, r0, r0, lsr #6
>
> 0x58953e40: mov r12, #224 ; 0xe0
>
> 0x58953e44: add r0, r0, r12
>
> 0x58953e48: add r0, r0, r0, lsl #10
>
> 0x58953e4c: eor r0, r0, r0, lsr #6
>
> 0x58953e50: add r0, r0, r0, lsl #3
>
> 0x58953e54: eor r0, r0, r0, lsr #11
>
> 0x58953e58: add r0, r0, r0, lsl #15
>
> (gdb) info register
>
> r0 0x4b347211 1261728273
>
> r1 0xbedfdbc0 3202341824
>
> r2 0x3 3
>
> r3 0x58953e20 1486175776
>
> r4 0x13e98e0 20879584
>
> r5 0xffff7750 4294932304
>
> r6 0xafd41524 2949911844
>
> r7 0xbedfdcd0 3202342096
>
> r8 0x0 0
>
> r9 0x0 0
>
> r10 0x0 0
>
> r11 0xbedfdbcc 3202341836
>
> r12 0x40000000 1073741824
>
> sp 0xbedf52e8 0xbedf52e8
>
> lr 0x19b810 1685520
>
> pc 0x58953e20 0x58953e20
>
> cpsr 0x40000010 1073741840
>
>
> I got confused with the behavior of the release and debug versions. Can
anyone help me with this.
在 2013年5月20日星期一UTC+8下午7时48分04秒,Rodolph Perfetta写道:
>
> Does the debug version of V8 reports the same error?
>
>
> On 20 May 2013 07:10, Zen Harry <[email protected] <javascript:>> wrote:
>
>> I got a crash on android devices while running cctest. Here is what I do:
>>
>> 1. compile the v8 code (v3.19.0, v3.18.5, v3.17.12) with command:
>> make android_arm.release -j9 armv7=false
>> 2. push cctest to android phone
>> 3. run cctest with command: ./cctest test-hasing, then I got a crash
>> report.
>>
>> Here is what cctest report:
>>
>>> #
>>>
>>> # Fatal error in ../test/cctest/test-hashing.cc, line 184
>>>
>>> # CHECK(runtime_hash == codegen_hash) failed
>>>
>>> #
>>>
>>> [1] Bus error ./cctest test-hashing
>>>
>>>
>>> I have tested all v8 version above, they got the same error.
>>
>> Cpu info:
>>
>>> Processor : ARMv6-compatible processor rev 5 (v6l)
>>>
>>> BogoMIPS : 245.61
>>>
>>> Features : swp half thumb fastmult vfp edsp java
>>>
>>> CPU implementer : 0x41
>>>
>>> CPU architecture: 6TEJ
>>>
>>> CPU variant : 0x1
>>>
>>> CPU part : 0xb36
>>>
>>> CPU revision : 5
>>>
>>>
>>>> Hardware : GT-S5670 Board
>>>
>>> Revision : 0003
>>>
>>> Serial : 3634eebd75b800ec
>>>
>>>
>>>
>> Is anyone can tell me what happened or how can I debug on it?
>>
>> --
>> --
>> v8-users mailing list
>> [email protected] <javascript:>
>> http://groups.google.com/group/v8-users
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "v8-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
--
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.