chyyuu / ucore_os_plus

232 stars 132 forks source link

The bionic libc test test_executable_destructor fails #22

Open jzk66596 opened 11 years ago

jzk66596 commented 11 years ago

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".