make check failed: rcutorture error
Hi all,
I got an error when doing "make check" on qemu code both stable-2.4 and master branch, after updating binutils to 2.24-33.
Qemu compiled successfully with following configure command:
$ ./configure --target-list=aarch64-softmmu --cross-prefix=aarch64-redhat-linux- --enable-fdt --enable-kvm
However, it is failed when "make check", error message as below:
...
GTESTER tests/test-int128
GTESTER tests/rcutorture
GTester: last random seed: R02S9b7fc016e5b1445e9959506b4f1a11e0
GTester: last random seed: R02S413c94c1f16958c42064a5600d8f7dff
make: *** [check-tests/rcutorture] Error 1
And I try to get more debug info when "make check -d", it shows:
...
Finished prerequisites of target file `tests/rcutorture'.
Prerequisite tests/rcutorture.o' is older than target tests/rcutorture'.
Prerequisite tests/rcutorture.o' is older than target tests/rcutorture'.
Prerequisite libqemuutil.a' is older than target tests/rcutorture'.
Prerequisite libqemustub.a' is older than target tests/rcutorture'.
No need to remake target `tests/rcutorture'.
Finished prerequisites of target file `check-tests/rcutorture'.
Must remake target `check-tests/rcutorture'.
Invoking recipe from /home/abuild/rpmbuild/BUILD/qemu-2.4.50/tests/Makefile:496 to update target `check-tests/rcutorture'. Putting child 0x290df180 (check-tests/rcutorture) PID 26655 on the chain.
Live child 0x290df180 (check-tests/rcutorture) PID 26655
GTESTER tests/rcutorture
GTester: last random seed: R02Sf7dcd0ceea4ebc8b1b6018a3141708b1
GTester: last random seed: R02Sd00479c75bcb82dad813650eef27552f
Reaping losing child 0x290df180 PID 26655
make: *** [check-tests/rcutorture] Error 1
Removing child 0x290df180 PID 26655 from chain.
By the way, with gcc-4.9.3 and binutils-2.23.52 it is OK. It may be inappropriate to put the problem here, but I really want to
get some ideas to solve it. Thanks!
Zhu Yijun
Quoted 7 lines · Yijun Zhu
Hi all,
I got an error when doing "make check" on qemu code both stable-2.4 and master branch, after updating binutils to 2.24-33.
Qemu compiled successfully with following configure command:
$ ./configure --target-list=aarch64-softmmu --cross-prefix=aarch64-redhat-linux- --enable-fdt --enable-kvm
I'm not sure I understand, are you cross compiling to aarch64, or is this a native build? If so, how is aarch64 code run?
Quoted 10 lines
However, it is failed when "make check", error message as below:
... GTESTER tests/test-int128 GTESTER tests/rcutorture GTester: last random seed: R02S9b7fc016e5b1445e9959506b4f1a11e0 GTester: last random seed: R02S413c94c1f16958c42064a5600d8f7dff make: *** [check-tests/rcutorture] Error 1 And I try to get more debug info when "make check -d", it shows:
You should use "make check V=1" instead to get more information.
Paolo
Quoted 6 lines
GTESTER tests/rcutorture
GTester: last random seed: R02Sf7dcd0ceea4ebc8b1b6018a3141708b1
GTester: last random seed: R02Sd00479c75bcb82dad813650eef27552f Reaping losing child0x290df180PID 26655
make: *** [check-tests/rcutorture] Error 1
Removing child0x290df180PID 26655 from chain.
Hi Paolo,
Thanks for you reply.
Quoted 5 lines · Paolo Bonzini
Quoted 2 lines · Yijun Zhu
Hi all,
Quoted 9 lines
Quoted 5 lines
I got an error when doing "make check" on qemu code both stable-2.4 and master branch, after updating binutils to 2.24-33.
Qemu compiled successfully with following configure command:
$ ./configure --target-list=aarch64-softmmu --cross-prefix=aarch64-redhat-linux- --enable-fdt --enable-kvmI'm not sure I understand, are you cross compiling to aarch64, or is this a native build? If so, how is aarch64 code run?
It is cross compiled.
Quoted 9 lines
Quoted 9 lines
However, it is failed when "make check", error message as below: ... GTESTER tests/test-int128 GTESTER tests/rcutorture GTester: last random seed: R02S9b7fc016e5b1445e9959506b4f1a11e0 GTester: last random seed: R02S413c94c1f16958c42064a5600d8f7dff make: *** [check-tests/rcutorture] Error 1
Quoted 4 lines
Quoted 1 line
And I try to get more debug info when "make check -d", it shows:
You should use "make check V=1" instead to get more information.
OK, output showed as below:
...
PASS: tests/test-int128
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$((RANDOM % 255 + 1))} gtester -k --verbose -m=quick tests/rcutorture
TEST: tests/rcutorture... (pid=906)
/rcu/torture/1reader: FAIL
GTester: last random seed: R02Sc33aa3bda61b6c1acdcc9e6b38cc64d6
(pid=916)
/rcu/torture/10readers: FAIL
GTester: last random seed: R02S254aec3a6362e02d5c8746edec71673b
(pid=934)
FAIL: tests/rcutorture
make: *** [check-tests/rcutorture] Error 1
Quoted 11 lines
Paolo
Quoted 6 lines
GTESTER tests/rcutorture
GTester: last random seed: R02Sf7dcd0ceea4ebc8b1b6018a3141708b1
GTester: last random seed: R02Sd00479c75bcb82dad813650eef27552f Reaping losing child0x290df180PID 26655
make: *** [check-tests/rcutorture] Error 1
Removing child0x290df180PID 26655 from chain..
Quoted 5 lines · Paolo Bonzini
Quoted 2 lines · Yijun Zhu
Hi all,
Quoted 9 lines
Quoted 5 lines
I got an error when doing "make check" on qemu code both stable-2.4 and master branch, after updating binutils to 2.24-33.
Qemu compiled successfully with following configure command:
$ ./configure --target-list=aarch64-softmmu --cross-prefix=aarch64-redhat-linux- --enable-fdt --enable-kvmI'm not sure I understand, are you cross compiling to aarch64, or is this a native build? If so, how is aarch64 code run?
Sorry, there is something wrong about configure command. It is native build and configured by:
./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --interp-prefix=/usr/qemu-%M --audio-drv-list=pa,alsa \
--with-confsuffix=/qemu --localstatedir=/var --disable-strip '--extra-ldflags=-Wl,--build-id -pie -Wl,-z,relro -Wl,-z,now' \
'--extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -fPIE -DPIE' \
--enable-trace-backend=dtrace --enable-werror --disable-xen --disable-virtfs --enable-kvm --enable-curl --enable-libusb --disable-spice --disable-seccomp \
--enable-fdt --enable-docs --disable-sdl --disable-debug-tcg --disable-sparse --disable-brlapi --disable-bluez --disable-vde --disable-curses --enable-vnc \
--enable-vnc-sasl --enable-linux-aio --enable-lzo --enable-snappy --disable-usb-redir --enable-vnc-png --disable-vnc-jpeg --enable-uuid --disable-vhost-scsi \
--disable-guest-agent --disable-tpm --disable-glusterfs --block-drv-rw-whitelist=qcow2,raw,file,host_device,nbd,iscsi,rbd,blkdebug --block-drv-ro-whitelist=vmdk,vhdx,vpc,https,ssh \
--enable-numa --target-list=aarch64-softmmu
Quoted 9 lines
Quoted 9 lines
However, it is failed when "make check", error message as below: ... GTESTER tests/test-int128 GTESTER tests/rcutorture GTester: last random seed: R02S9b7fc016e5b1445e9959506b4f1a11e0 GTester: last random seed: R02S413c94c1f16958c42064a5600d8f7dff make: *** [check-tests/rcutorture] Error 1
Quoted 4 lines
Quoted 1 line
And I try to get more debug info when "make check -d", it shows:
You should use "make check V=1" instead to get more information.
After running "make check V=1", output shows:
...
PASS: tests/test-int128
cc -I/home/abuild/rpmbuild/BUILD/qemu-2.4.50/tcg -I/home/abuild/rpmbuild/BUILD/qemu-2.4.50/tcg/aarch64 -I/home/abuild/rpmbuild/BUILD/qemu-2.4.50/linux-headers -I/home/abuild/rpmbuild/BUILD/qemu-2.4.50/linux-headers -I. -I/home/abuild/rpmbuild/BUILD/qemu-2.4.50 -I/home/abuild/rpmbuild/BUILD/qemu-2.4.50/include -Itests -Itests -Itests -I/usr/include/pixman-1 -Werror -DHAS_LIBSSH2_SFTP_FSYNC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -fPIE -DPIE -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng1!
5-I/usr/include/libusb-1.0 -I/home/abuild/rpmbuild/BUILD/qemu-2.4.50/tests -MMD -MP -MT tests/rcutorture.o -MF tests/rcutorture.d -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -c -o tests/rcutorture.o tests/rcutorture.c
c++ -I/usr/include/pixman-1 -Werror -DHAS_LIBSSH2_SFTP_FSYNC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -fPIE -DPIE -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng15 -I/usr/include/libusb-1.0 -I/home/abuild/rpmbuild/BUILD/qemu-2.4.50/tests -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -Wl,--warn-common -g -Wl,--build-id -pie -Wl,-z,relro -Wl,-z,now -o tests/rcutorture tests/rcutorture.o libqemuutil.a libqemustub.a -l!
m -pthre
ad
-lgthread-2.0 -lglib-2.0 -lz -lrt -lz -luuid -lnettle -lgnutls -lutil -ltasn1
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$((RANDOM % 255 + 1))} gtester -k --verbose -m=quick tests/rcutorture
TEST: tests/rcutorture... (pid=11593)
/rcu/torture/1reader: FAIL
GTester: last random seed: R02Sea7709d95e8ac37849453294f67d961e
(pid=11603)
/rcu/torture/10readers: FAIL
GTester: last random seed: R02S287b0f32d203d81e774e307e72e8e0b0
(pid=11621)
FAIL: tests/rcutorture
make: *** [check-tests/rcutorture] Error 1
Quoted 11 lines
Paolo
Quoted 6 lines
GTESTER tests/rcutorture
GTester: last random seed: R02Sf7dcd0ceea4ebc8b1b6018a3141708b1
GTester: last random seed: R02Sd00479c75bcb82dad813650eef27552f Reaping losing child0x290df180PID 26655
make: *** [check-tests/rcutorture] Error 1
Removing child0x290df180PID 26655 from chain..
Quoted 9 lines · Yijun Zhu
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$((RANDOM % 255 + 1))} gtester -k --verbose -m=quick tests/rcutorture
TEST: tests/rcutorture... (pid=11593)
/rcu/torture/1reader: FAIL
GTester: last random seed: R02Sea7709d95e8ac37849453294f67d961e
(pid=11603)
/rcu/torture/10readers: FAIL
GTester: last random seed: R02S287b0f32d203d81e774e307e72e8e0b0
(pid=11621)
FAIL: tests/rcutorture
Weird, it does not print an assertion failure. Can you try
MALLOC_PERTURB=35 tests/rcutorture --verbose -m=quick
?
Paolo