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

Python's time.sleep hangs at select syscall when boot from a snapshot #18

Open
tan-yue opened this issue Aug 21, 2019 · 0 comments
Open

Comments

@tan-yue
Copy link
Contributor

tan-yue commented Aug 21, 2019

Relevant strace output from strace python2 /bin/runtime-workload:

open("/dev/ttyS1", O_RDONLY)            = 3
fstat(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 65), ...}) = 0
pipe([4, 6])                            = 0
fcntl(4, F_GETFD)                       = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
fcntl(6, F_GETFD)                       = 0
fcntl(6, F_SETFD, FD_CLOEXEC)           = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
fork()                                  = 856
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
close(6)                                = 0
mmap(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdf4fc62000
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=856, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
read(4, "", 1048576)                    = 0
munmap(0x7fdf4fc62000, 1052672)         = 0
close(4)                                = 0
wait4(856, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 856
read(3, "{\"request\": \"haha\"}\n", 1024) = 20
select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=500000}
@tan-yue tan-yue changed the title Python's time.sleep hangs at select syscall based when boot from a snapshot Python's time.sleep hangs at select syscall when boot from a snapshot Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant