zephyriot / zephyr-issues

0 stars 0 forks source link

sporadic illegal instruction exception on Nios II in test_errno #677

Open nashif opened 8 years ago

nashif commented 8 years ago

Reported by Andrew Boie:

qemu_nios2                tests/kernel/test_errno/test                       FAILED: timeout
--------------------sanity-out/qemu_nios2/tests/kernel/test_errno/test/qemu.log---------------------
task, errno before starting fibers: abad1dea

fiber 0, errno before sleep: babef00d

fiber 1, errno before sleep: deadbeef

fiber 1, errno after sleep:  deadbeef

fiber 0, errno after sleep:  babef00d

Exception cause: 0x00000005 ECCFTL: 0

reason: illegal instruction

Current thread ID: 0x00400d6c

Faulting instruction: 0x004000f0

 r1: 0x00000000  r2: 0x00000000  r3: 0x20001926  r4: 0x0105c83a

 r5: 0x18c5f004  r6: 0x00bfffd4  r7: 0x11000a36  r8: 0x00803fc4

 r9: 0x1105803a r10: 0x100490fa r11: 0x00c010b4 r12: 0x18c5f004

r13: 0x2088d83a r14: 0x1909883a r15: 0x20c00003  ra: 0x00000000

estatus: 1885883a

Fatal fault in essential task ! Spinning...
--------------------sanity-out/qemu_nios2/tests/kernel/test_errno/test/qemu.log---------------------

(Imported from Jira ZEP-722)

nashif commented 8 years ago

by Andrew Boie:

Javier B Perez can you send me the link to the patch which triggered this error? I need to be able to recreate the build.

nashif commented 8 years ago

by Javier B Perez:

Andrew Boie I saw it here https://jenkins.zephyrproject.org/view/zephyr/job/zephyr-merge/9/console That was the merge build for the patch https://gerrit.zephyrproject.org/r/4065

nashif commented 8 years ago

by Benjamin Walsh:

Seen in mailbox test as well, on Nios2:

MsgSenderTask: task_mbox_put(TICKS_NONE) to non-waiting task is OK MsgRcvrTask: task_mbox_get when no message is OK MsgSenderTask: task_mbox_put(timeout) to non-waiting task is OK MsgRcvrTask: task_mbox_get(timeout) when no message is OK MsgRcvrTask: task_mbox_get(TICKS_UNLIMITED) from specified task is OK MsgSenderTask: task_mbox_put(TICKS_NONE) to specified waiting task is OK Exception cause: 5 ECCFTL: 0x0 reason: illegal instruction Current thread ID: 0x00401498 Faulting instruction: 0x004000e8 r1: 0x00000000 r2: 0x00000000 r3: 0x00000000 r4: 0x00000000 r5: 0x00000000 r6: 0x00000000 r7: 0x00000000 r8: 0x00402ca0 r9: 0x004212dc r10: 0x00402ca8 r11: 0x00421dfc r12: 0x00000000 r13: 0x00425624 r14: 0x00000000 r15: 0x00000021 ra: 0x00000000 estatus: ffffffff Fatal fault in essential task ! Spinning...

nashif commented 7 years ago

by Mark Linkmeyer:

Fixing incorrect priority