chyyuu / ucore_os_plus

232 stars 132 forks source link

sfs_exectest1 causes a page fault #6

Closed eternalNight closed 12 years ago

eternalNight commented 12 years ago

Description

The unit test sfs_exectest1 triggers a page fault but it is not supposed so.

Commit

7e99100 unittest: Adapt tests on sfs to the current sfsimg.

Reproduce Steps

cd ucore make ARCH=i386 menuconfig UCORE_TEST=/testbin/sfs_exectest1 make kernel UCORE_TEST=/testbin/sfs_exectest1 make sfsimg make swapimg ./uCore_test -sf src/user-ucore/testspecs/sfs_exectest1.testspec

Current Result

From serial.log

kernel_execve: pid = 3, name = "/testbin/sfs_exectest1". trapframe at 0xc7ed9d9c edi 0x00000002 esi 0x04ff0000 ebp 0xc7ed9e10 oesp 0xc7ed9dbc ebx 0xc7eca00c edx 0x000005cc ecx 0x00216f3c eax 0x04ff05cc es 0x----0010 ds 0x----0010 trap 0x0000000e Page Fault err 0x00000000 eip 0xc010377a cs 0x----0008 flag 0x00000206 PF,IF,IOPL=0 kernel panic at trap.c:177: handle pgfault failed in kernel mode. Invalid argument

Expected Result

The test passes.

eternalNight commented 12 years ago

This issue doesn't exist on uCore for arm. Perhaps there's something uCore for i386 doesn't support yet.

eternalNight commented 12 years ago

This bug is a duplicate of Issue #7 and fixed by 7063302 Merge branch 'master' of https://github.com/chyyuu/ucore_plus