All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] make check failed: rcutorture error
@ 2015-11-24 11:45 Yijun Zhu
  2015-11-24 11:54 ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Yijun Zhu @ 2015-11-24 11:45 UTC (permalink / raw)
  To: QEMU Developers, Peter Maydell, Paolo Bonzini
  Cc: Hangaohuai, Huangpeng (Peter), Shannon Zhao

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] make check failed: rcutorture error
  2015-11-24 11:45 [Qemu-devel] make check failed: rcutorture error Yijun Zhu
@ 2015-11-24 11:54 ` Paolo Bonzini
  2015-11-24 12:25   ` Yijun Zhu
  2015-11-25  1:50   ` Yijun Zhu
  0 siblings, 2 replies; 5+ messages in thread
From: Paolo Bonzini @ 2015-11-24 11:54 UTC (permalink / raw)
  To: Yijun Zhu, QEMU Developers, Peter Maydell
  Cc: Hangaohuai, Huangpeng (Peter), Shannon Zhao



On 24/11/2015 12:45, Yijun Zhu wrote:
> 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?

>    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

> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] make check failed: rcutorture error
  2015-11-24 11:54 ` Paolo Bonzini
@ 2015-11-24 12:25   ` Yijun Zhu
  2015-11-25  1:50   ` Yijun Zhu
  1 sibling, 0 replies; 5+ messages in thread
From: Yijun Zhu @ 2015-11-24 12:25 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Peter Maydell, Hangaohuai, Shannon Zhao, QEMU Developers,
	Huangpeng (Peter)

Hi Paolo,

   Thanks for you reply.

On 2015/11/24 19:54, Paolo Bonzini wrote:

> 
> 
> On 24/11/2015 12:45, Yijun Zhu wrote:
>> 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?
> 


It is cross compiled.

>>    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.
> 


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

> Paolo
> 
>> 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.
> 
> .
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] make check failed: rcutorture error
  2015-11-24 11:54 ` Paolo Bonzini
  2015-11-24 12:25   ` Yijun Zhu
@ 2015-11-25  1:50   ` Yijun Zhu
  2015-11-25 13:47     ` Paolo Bonzini
  1 sibling, 1 reply; 5+ messages in thread
From: Yijun Zhu @ 2015-11-25  1:50 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Peter Maydell, Hangaohuai, Shannon Zhao, QEMU Developers,
	Huangpeng (Peter)

On 2015/11/24 19:54, Paolo Bonzini wrote:

> 
> 
> On 24/11/2015 12:45, Yijun Zhu wrote:
>> 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?
> 


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

>>    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.
> 


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


> Paolo
> 
>> 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.
> 
> .
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] make check failed: rcutorture error
  2015-11-25  1:50   ` Yijun Zhu
@ 2015-11-25 13:47     ` Paolo Bonzini
  0 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2015-11-25 13:47 UTC (permalink / raw)
  To: Yijun Zhu
  Cc: Peter Maydell, Hangaohuai, Shannon Zhao, QEMU Developers,
	Huangpeng (Peter)



On 25/11/2015 02:50, Yijun Zhu wrote:
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-25 13:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-24 11:45 [Qemu-devel] make check failed: rcutorture error Yijun Zhu
2015-11-24 11:54 ` Paolo Bonzini
2015-11-24 12:25   ` Yijun Zhu
2015-11-25  1:50   ` Yijun Zhu
2015-11-25 13:47     ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.