Lines Matching +full:0 +full:a

1 Title: A common fatal error and assert fail handler
17 into a common part and let other test suites or applications reuse it, instead
20 And when error happens, we sometimes need a special action to make our testing
22 error happened. This is why we add a hook on it, in order to achieve that goal.
28 (a) Usage for dealing with fatal error:
34 Step3: (optional) Define a hook function call ztest_post_fatal_error_hook().
46 Step3: (optional) Define a hook function call ztest_post_assert_fail_hook().
64 - To call a function then giving the condition to trigger the assert fail,
68 - start a thread to test triggering a null address dereferencing, then catch
70 - start a thread to test triggering an illegal instruction, then catch
72 - start a thread to test triggering a divide-by-zero error, then catch
74 - start a thread to call k_oops() then catch the (expected) fatal error.
75 - start a thread to call k_panel() then catch the (expected) fatal error.
78 - start a thread to enter ISR context by calling irq_offload(), then trigger
83 K_OOPS macro will trigger a fatal error that will get caught (as expected).
90 Trigger a fatal error in ISR context, that will cause problem due to
102 ASSERTION FAIL [a != ((void *)0)] @ WEST_TOPDIR/zephyr/tests/ztest/error_hook/src/main.c:41
103 parameter a should not be NULL!
109 case type is 0
110 E: Page fault at address (nil) (error code 0x4)
114 E: EAX: 0x00000000, EBX: 0x00000000, ECX: 0x00000000, EDX: 0x0010fe51
115 E: ESI: 0x00000000, EDI: 0x0012dfe8, EBP: 0x0012dfcc, ESP: 0x0012dfc4
116 E: EFLAGS: 0x00000246 CS: 0x002b CR3: 0x001142c0
118 E: EIP: 0x00100439
119 E: 0x001010ea (0x113068)
120 E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
121 E: Current thread: 0x114000 (unknown)
122 Caught system error -- reason 0 1
125 E: Page fault at address 0x12dfc4 (error code 0x15)
127 E: PTE: 0x12d000 -> 0x000000000012d000: RW US A D XD
128 E: EAX: 0x0012dfc4, EBX: 0x00000001, ECX: 0x00000001, EDX: 0x0010fe51
129 E: ESI: 0x00000000, EDI: 0x0012dfe8, EBP: 0x0012dfcc, ESP: 0x0012dfc0
130 E: EFLAGS: 0x00000246 CS: 0x002b CR3: 0x001142c0
132 E: EIP: 0x0012dfc4
133 E: 0x001010ea (0x113068)
134 E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
135 E: Current thread: 0x114000 (unknown)
136 Caught system error -- reason 0 1
140 E: EAX: 0x00000000, EBX: 0x00000002, ECX: 0x00000002, EDX: 0x0010fe51
141 E: ESI: 0x00000000, EDI: 0x0012dfe8, EBP: 0x0012dfcc, ESP: 0x0012dfc4
142 E: EFLAGS: 0x00000246 CS: 0x002b CR3: 0x001142c0
144 E: EIP: 0x00100451
145 E: 0x001010ea (0x113068)
146 E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
147 E: Current thread: 0x114000 (unknown)
148 Caught system error -- reason 0 1
151 E: EAX: 0x00000000, EBX: 0x00000003, ECX: 0x00000003, EDX: 0x0010fe51
152 E: ESI: 0x00000000, EDI: 0x0012dfe8, EBP: 0x0012dfcc, ESP: 0x0012dfc0
153 E: EFLAGS: 0x00000246 CS: 0x002b CR3: 0x001142c0
155 E: EIP: 0x0010045c
156 E: 0x001010ea (0x113068)
157 E: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
158 E: Current thread: 0x114000 (unknown)
162 E: EAX: 0x00000000, EBX: 0x00000004, ECX: 0x00000004, EDX: 0x0010fe51
163 E: ESI: 0x00000000, EDI: 0x0012dfe8, EBP: 0x0012dfcc, ESP: 0x0012dfc0
164 E: EFLAGS: 0x00000246 CS: 0x002b CR3: 0x001142c0
166 E: EIP: 0x00100465
167 E: 0x001010ea (0x113068)
168 E: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
169 E: Current thread: 0x114000 (unknown)
175 ASSERTION FAIL [a != ((void *)0)] @ WEST_TOPDIR/zephyr/tests/ztest/error_hook/src/main.c:41
176 parameter a should not be NULL!
182 E: EAX: 0x00000000, EBX: 0x00000000, ECX: 0x00000000, EDX: 0x00000000
183 E: ESI: 0x00000000, EDI: 0x00000000, EBP: 0x00000000, ESP: 0x00000000
184 E: EFLAGS: 0x001003c4 CS: 0x0511 CR3: 0x00115740
186 E: EIP: 0x0010ff9e
188 E: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
189 E: Current thread: 0x114120 (unknown)