Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/kernel/pipe/pipe: "Kernel Oops" and "CPU Page Fault" when running coverage for qemu_x86 #15152

Closed
cinlyooi-intel opened this issue Apr 3, 2019 · 0 comments
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@cinlyooi-intel
Copy link
Contributor

To Reproduce
Steps to reproduce the behavior:

# To generate the errors
scripts/sanitycheck --coverage 
   --coverage-platform mps2_an385 -p mps2_an385 
   --coverage-platform qemu_x86 -p qemu_x86  
   --coverage-platform qemu_x86_nommu  -p qemu_x86_nommu -
   -gcov-tool /opt/zephyr-sdk-0.10.0/i586-zephyr-elf/bin/i586-zephyr-elf-gcov \
   -T tests/kernel -T tests/subsys/logging | tee output.log

# the file to open is
# sanity-out/qemu_x86/tests/kernel/pipe/pipe/kernel.pipe/handler.log

Screenshots or console output

�c�[?7l�[2J�[0mSeaBIOS (version rel-1.12.0-0-ga698c8995f-prebuilt.qemu.org)
Booting from ROM..***** Booting Zephyr OS v1.14.0-rc3-76-g0734b4fcaaea *****
Running test suite test_pipe
===================================================================
starting test - test_pipe_on_single_elements
***** CPU Page Fault (error code 0x00000004)
User thread read address 0x00423004
PDE: 0x027 Present, Writable, User, Execute Enabled
PTE: 0x800000002 Non-present, Writable, Supervisor, Execute Disable
Current thread ID = 0x0040a0a0
eax: 0x00423004, ebx: 0x00410033, ecx: 0x00000000, edx: 0x00000000
esi: 0x00000000, edi: 0x00418fe8, ebp: 0x00418f64, esp: 0x00418f4c
eflags: 0x00000202 cs: 0x002b
call trace:
eip: 0x000027e1
     0x00004a94 (0x0)
     0x00011de6 (0x0)
     0x00012047 (0x409000)
     0x00008cf2 (0x409000)
Caught system error -- reason 6
FAIL - test_pipe_on_single_elements
===================================================================
starting test - test_pipe_on_multiple_elements
0x0040a000 k_thread in use
syscall z_hdlr_k_thread_create failed check: access denied
***** Kernel OOPS! *****
Current thread ID = 0x0040a0a0
eax: 0x00000000, ebx: 0x00000000, ecx: 0x00000000, edx: 0x00000000
esi: 0x00000000, edi: 0x00000000, ebp: 0x00000000, esp: 0x00418e78
eflags: 0x00000246 cs: 0x002b
call trace:
eip: 0x00001bb6
NULL base ptr
Caught system error -- reason 7
FAIL - test_pipe_on_multiple_elements
===================================================================
starting test - test_pipe_forever_wait
0x0040a000 k_thread in use
syscall z_hdlr_k_thread_create failed check: access denied
***** Kernel OOPS! *****
Current thread ID = 0x0040a0a0
eax: 0x00000000, ebx: 0x00000000, ecx: 0x00000000, edx: 0x00000000
esi: 0x00000000, edi: 0x00000000, ebp: 0x00000000, esp: 0x00418e78
eflags: 0x00000246 cs: 0x002b
call trace:
eip: 0x00001bb6
NULL base ptr
Caught system error -- reason 7
FAIL - test_pipe_forever_wait
===================================================================
starting test - test_pipe_timeout
0x0040a000 k_thread in use
syscall z_hdlr_k_thread_create failed check: access denied
***** Kernel OOPS! *****
Current thread ID = 0x0040a0a0
eax: 0x00000000, ebx: 0x00000000, ecx: 0x00000000, edx: 0x00000000
esi: 0x00000000, edi: 0x00000000, ebp: 0x00000000, esp: 0x00418e78
eflags: 0x00000246 cs: 0x002b
call trace:
eip: 0x00001bb6
NULL base ptr
Caught system error -- reason 7
FAIL - test_pipe_timeout
===================================================================
starting test - test_pipe_get_on_empty_pipe
PASS - test_pipe_get_on_empty_pipe
===================================================================
starting test - test_pipe_forever_timeout
0x0040a000 k_thread in use
syscall z_hdlr_k_thread_create failed check: access denied
***** Kernel OOPS! *****
Current thread ID = 0x0040a0a0
eax: 0x00000000, ebx: 0x00000000, ecx: 0x00000000, edx: 0x00000000
esi: 0x00000000, edi: 0x00000000, ebp: 0x00000000, esp: 0x00418e78
eflags: 0x00000246 cs: 0x002b
call trace:
eip: 0x00001bb6
NULL base ptr
Caught system error -- reason 7
FAIL - test_pipe_forever_timeout
===================================================================
starting test - test_pipe_get_timeout
***** CPU Page Fault (error code 0x00000004)
User thread read address 0x00423244
PDE: 0x027 Present, Writable, User, Execute Enabled
PTE: 0x800000002 Non-present, Writable, Supervisor, Execute Disable
Current thread ID = 0x0040a0a0
eax: 0x00423244, ebx: 0x00410033, ecx: 0x00000000, edx: 0x00000000
esi: 0x00000000, edi: 0x00418fe8, ebp: 0x00418f74, esp: 0x00418f5c
eflags: 0x00000206 cs: 0x002b
call trace:
eip: 0x00004786
     0x00004ffd (0x0)
     0x00011de6 (0x0)
     0x00012047 (0x409078)
     0x00008cf2 (0x409078)
Caught system error -- reason 6
FAIL - test_pipe_get_timeout
===================================================================
starting test - test_pipe_get_invalid_size
syscall z_hdlr_k_pipe_get failed check: min_xfer <= bytes_to_read
***** Kernel OOPS! *****
Current thread ID = 0x0040a0a0
eax: 0x00000000, ebx: 0x00000000, ecx: 0x00000000, edx: 0x00000000
esi: 0x00000000, edi: 0x00000000, ebp: 0x00000000, esp: 0x00418ef0
eflags: 0x00000246 cs: 0x002b
call trace:
eip: 0x00001bb6
NULL base ptr
Caught system error -- reason 7
PASS - test_pipe_get_invalid_size
===================================================================
Test suite test_pipe failed.
===================================================================
PROJECT EXECUTION FAILED

GCOV_COVERAGE_DUMP_START
GCOV_COVERAGE_DUMP_END

Environment (please complete the following information):

  • OS: fedora29
  • Toolchain zephyr
  • Commit SHA or Version used: 0734b4f
@cinlyooi-intel cinlyooi-intel added the bug The issue is a bug, or the PR is fixing a bug label Apr 3, 2019
@nashif nashif closed this as completed Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

2 participants