Skip to content

The bionic libc test test_executable_destructor fails #22

Description

@jzk66596

Description
The test_executable_destructor tries to test constructor and destructor functions in executables. But it fails with trapframe printed. See "Current result" for details.

Reproduce steps
cd ~/ucore_plus/ucore
make ARCH=arm BOARD=goldfishv7 defconfig
make sfsimg
make kernel
./uCore_test -s bionic -w 15 -t 45 -f src/user-ucore/testspecs/test_executable_destructor.testspec

Current result
kernel_execve: pid = 4, name = "/bionic-test/test_executable_destructor".
trapframe at 0x7e0af68
r00 0x00000004
r01 0x6fffdf78
r02 0x6fffdfcc
r03 0x6fffdf78
r04 0x30809000
r05 0x00000000
r06 0x00000000
r07 0x0000004b
r08 0x00000000
r09 0x00000000
r10 0x00000000
fp 0x6fffdf94
ip 0x3080902c
usr_lr 0x3080084c
sp 0x6fffdf70
lr 0x6fe81178
spsr 0x60000050 User
trap 0x00000002 Software interrupt
err 0x00000000
undefined syscall 0, pid = 4, name = 4.

Expected Result
The test passes with no trapframe printed but the right output information "OK".

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions