Skip to content

x86 stack check fail w/posix-lib & newlib #13701

@galak

Description

@galak

When trying to run the posix tests w/newlib as enabled by PR #13685

./scripts/sanitycheck -T tests/posix/ -p qemu_x86

qemu_x86 tests/posix/common/portability.posix.newlib FAILED: handler_crash

We get:

SDK 0.9.5:

SeaBIOS (version rel-1.11.2-0-gf9626ccb91-prebuilt.qemu-project.org)
Booting from ROM..***** Booting Zephyr OS v1.14.0-rc1-501-ge03b7fad46 *****
***** Double Fault *****
***** Stack Check Fail! *****
Current thread ID = 0x00403160
eax: 0x00000001, ebx: 0x004011e0, ecx: 0x00000000, edx: 0x0043e00c
esi: 0x00401020, edi: 0x00400000, ebp: 0x004011e0, esp: 0x0043e000
eflags: 0x00000202 cs: 0x0008
call trace:
eip: 0x00002cc7
     corrupted? (bp=0x004011e0)
Fatal fault in essential thread! Spinning...
Terminate emulator due to fatal kernel error

SDK 0.10.0:

SeaBIOS (version rel-1.12.0-0-ga698c8995f-prebuilt.qemu.org)
Booting from ROM..***** Booting Zephyr OS v1.14.0-rc1-501-ge03b7fad46 *****
***** Double Fault *****
***** Stack Check Fail! *****
Current thread ID = 0x00403160
eax: 0x00000001, ebx: 0x0043e064, ecx: 0x00000000, edx: 0x00000012
esi: 0x004011dc, edi: 0x0043e060, ebp: 0x0043e040, esp: 0x0043dfd8
eflags: 0x00000202 cs: 0x0008
call trace:
eip: 0x000026f3
     0x0000275e (0x401020)
     0x00001e26 (0x401020)
     0x000016ed (0x401020)
     0x00001568 (0x401020)
     0x0000a616 (0x14c4f)
     0x00003255 (0x124bd)
     0x0000a7f0 (0x4430ec)
     0x0000ac27 (0x43e1e4)
Fatal fault in essential thread! Spinning...
Terminate emulator due to fatal kernel error

Metadata

Metadata

Labels

area: POSIXPOSIX API Libraryarea: X86x86 Architecture (32-bit)bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions