qemu hangs in pselect syscall
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm using git commit d75aa4372f0414c
--enable-
--disable-
--disable-tools \
--disable-
--static --disable-linux-aio \
--disable-fdt \
--without-
--disable-blobs \
Stable version (v2.6.0) also have the same problem.
In a chroot environment I ran below command-line to compile some things, different sources each time.
/usr/
Here is back trace with gdb;
#0 safe_syscall_end () at /usr/src/
#1 0x60049370 in safe_pselect6 (nfds=10, readfds=0xffa31b5c, writefds=
at /usr/src/
#2 0x6004b2fe in do_select (n=10, rfd_addr=
at /usr/src/
#3 0x6005e5ba in do_syscall (cpu_env=
arg8=0) at /usr/src/
#4 0x60045def in cpu_loop (env=0x640d0454) at /usr/src/
#5 0x60047640 in main (argc=10, argv=0xffa33c84, envp=0xffa33cb0) at /usr/src/
Attached core file taken from gdb. To see the stack frame, you could try;
$ tar -xf reproduced_
And recent strace log for PID 1823(stucked one);
79965 [ 313s] 1823 :0x8e _newselect(
79966 [ 313s] ==>[pselect6(0xa)=]
79967 [ 313s] [pselect6=0x1]<==
79968 [ 313s] 1823 :0x8e _newselect(
79969 [ 313s] 1823 :0x8e => = 0x00000001 ([9,],[],[],NULL)
79970 [ 313s] 1823 :0xfc epoll_wait(
79971 [ 313s] 1823 :0xfc epoll_wait(
79972 [ 313s] 1823 :0xfc => = 0
79973 [ 313s] 1823 :0x3 read(9,
79974 [ 313s] 1823 :0x3 read(9,
79975 [ 313s] 1823 :0x3 => = 8
79976 [ 313s] 1823 :0x107 clock_gettime(
79977 [ 313s] 1823 :0x107 clock_gettime(
79978 [ 313s] 1823 :0x107 => = 0
79979 [ 313s] 1823 :0x8e _newselect(
79980 [ 313s] ==>[pselect6(0xa)=]
I'm using 64-bit Ubuntu with kernel release Linux 3.19.0-25-generic #26~14.04.1-Ubuntu.
Reproducibility is low. One occurrence out of 50+ trials.
Changed in qemu: | |
status: | Fix Committed → Fix Released |
FYI, adding a build log with strace enabled.