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

bionic libc test test_clone fails #18

Open
tomxice opened this issue Oct 3, 2012 · 1 comment
Open

bionic libc test test_clone fails #18

tomxice opened this issue Oct 3, 2012 · 1 comment

Comments

@tomxice
Copy link

tomxice commented Oct 3, 2012

Description

test_clone.c fails. The father process calls "clone" function and gets pid of its child process. But something goes wrong before father finish "waitpid" function.

Reproduce Steps

cd ~/ucore_plus/ucore
./uCore_test -s bionic -w 15 -t 45 -f src/user-ucore/testspecs/test_clone.testpec

Current Result

From the serial console:

kernel_execve: pid = 4, name = "/bionic-test/test_clone".
child pid 5
trapframe at 0x7b64fb0
r00 0x00000000
r01 0x00000000
r02 0x00000000
r03 0x00000000
r04 0x00000000
r05 0x30800750
r06 0x00000000
r07 0x0000001a
r08 0x00000000
r09 0x00000000
r10 0x00000000
fp 0x3080cfe4
ip 0x3080903c
usr_lr 0x6fe8529c
sp 0x3080cfb0
lr 0x6fe81124
spsr 0xa0000050 User
trap 0x00000002 Software interrupt
err 0x00000000
undefined syscall 0, pid = 5, name = .
file->fd:3
kernel panic at fs.c:64:
assertion failed: file->status == FD_NONE
Welcome to the kernel debug monitor!!

Expected Result

child pid 5
waitpid returned 5
child 5, status 0x137f

@geraint0923
Copy link
Contributor

The undefined syscall is ptrace. After removing the calling of ptrace from source code, this error will gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants