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

The bionic libc test test_seteuid fails #15

Open
haozhun opened this issue Sep 28, 2012 · 2 comments
Open

The bionic libc test test_seteuid fails #15

haozhun opened this issue Sep 28, 2012 · 2 comments

Comments

@haozhun
Copy link
Contributor

haozhun commented Sep 28, 2012

Description

The test_seteuid tries to seteuid to an arbitary user id (9999 in this case). And then set it back to 0.

It fails upon first call to seteuid, 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_seteuid.testspec 

Current result

kernel_execve: pid = 4, name = "/bionic-test/test_seteuid".
<1>todo __wake_up
sizeof(uid_t) = 4 sizeof(gid_t) = 4
start: ruid=0 euid=0
trapframe at 0x7e0af68
r00 0xffffffff
r01 0x0000270f
r02 0xffffffff
r03 0xff0a0000
r04 0x308005dc
r05 0x00000000
r06 0x00000000
r07 0x000000d0
r08 0x00000000
r09 0x00000000
r10 0x00000000
fp 0x6fffdf94
ip 0x6fea10fd
usr_lr 0x6fe88a2f
sp 0x6fffdf70
lr 0x6fe810d0
spsr 0x60000050 user
trap 0x00000002 software interrupt
err 0x00000000
undefined syscall 0, pid = 4, name = 4.

@eternalNight
Copy link
Collaborator

Um... Please be more accuate. See the comments below.

2012/9/28 haozhun [email protected]

part of os training hw 1, as required by
http://os.cs.tsinghua.edu.cn/oscourse/OsTrain2012/test#preview:"如果该测试未通过,在
https://github.com/chyyuu/ucore_plus/issues上新建一个Issue,具体格式和内容要求参照https://github.com/chyyuu/ucore_plus/issues/12
"

You can simply remove this line. Issues are issues and we may not care
where it comes from.

Description

Something goes wrong according to the log from the serial console and the
test fails.

Please be more detailed. I think you should have read the code of the test
and know what it tries to do and what it expects. And you have the console
log and knows what's the sympton. Please add these info in the description.

Reproduce steps

./uCore_test -s bionic -w 15 -t 45 -f
src/user-ucore/testspecs/test_seteuid.testspec

mmm... Could you please add the steps involved to reproduce the issue on a
fresh-pulled repo? The steps of building should also be included so that we
know what config you are using.

Current result

kernel_execve: pid = 4, name = "/bionic-test/test_seteuid".
todo __wake_up
sizeof(uid_t) = 4 sizeof(gid_t) = 4
start: ruid=0 euid=0
trapframe at 0x7e0af68
r00 0xffffffff
r01 0x0000270f
r02 0xffffffff
r03 0xff0a0000
r04 0x308005dc
r05 0x00000000
r06 0x00000000
r07 0x000000d0
r08 0x00000000
r09 0x00000000
r10 0x00000000
fp 0x6fffdf94
ip 0x6fea10fd
usr_lr 0x6fe88a2f
sp 0x6fffdf70
lr 0x6fe810d0
spsr 0x60000050 user
trap 0x00000002 software interrupt
err 0x00000000
undefined syscall 0, pid = 4, name = 4.


Reply to this email directly or view it on GitHubhttps://github.com//issues/15.

@haozhun
Copy link
Contributor Author

haozhun commented Sep 28, 2012

Thank you for your suggestions. Updated description.

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