Message ID | 20180823113659.21737-1-pbonzini@redhat.com |
---|---|
State | New |
Headers | show |
On 23 August 2018 at 12:36, Paolo Bonzini <pbonzini@redhat.com> wrote: > The following changes since commit 659b11e7a7239529cfdb4968418268ff9aa22d88: > > Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging (2018-08-21 11:36:15 +0100) > > are available in the Git repository at: > > git://github.com/bonzini/qemu.git tags/for-upstream > > for you to fetch changes up to 07c8c1c9311b81cbf3bcc49d4fed18e1d889a8f2: > > test-char: add socket reconnect test (2018-08-23 13:32:50 +0200) > > I removed the offending patch. Test failure on FreeBSD: MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} gtester -k --verbose -m=quick tests/test-char TEST: tests/test-char... (pid=16190) /char/null: OK /char/invalid: OK /char/ringbuf: OK /char/mux: OK /char/stdio: OK /char/pipe: OK /char/file: OK /char/file-fifo: OK /char/udp: OK /char/serial: OK /char/hotswap: OK /char/socket/basic: OK /char/socket/reconnect: FAIL GTester: last random seed: R02S521380d9c12f1dac3ad1763bf5665c27 (pid=16367) /char/socket/fdpass: OK FAIL: tests/test-char ** ERROR:tests/test-char.c:353:char_socket_test_common: assertion failed: (object_property_get_bool(OBJECT(chr_client), "connected", &error_abort)) thanks -- PMM
On 23 August 2018 at 14:30, Peter Maydell <peter.maydell@linaro.org> wrote: > On 23 August 2018 at 12:36, Paolo Bonzini <pbonzini@redhat.com> wrote: >> The following changes since commit 659b11e7a7239529cfdb4968418268ff9aa22d88: >> >> Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging (2018-08-21 11:36:15 +0100) >> >> are available in the Git repository at: >> >> git://github.com/bonzini/qemu.git tags/for-upstream >> >> for you to fetch changes up to 07c8c1c9311b81cbf3bcc49d4fed18e1d889a8f2: >> >> test-char: add socket reconnect test (2018-08-23 13:32:50 +0200) >> >> I removed the offending patch. > > Test failure on FreeBSD: > > MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} > gtester -k --verbose -m=quick tests/test-char > TEST: tests/test-char... (pid=16190) > /char/null: OK > /char/invalid: OK > /char/ringbuf: OK > /char/mux: OK > /char/stdio: OK > /char/pipe: OK > /char/file: OK > /char/file-fifo: OK > /char/udp: OK > /char/serial: OK > /char/hotswap: OK > /char/socket/basic: OK > /char/socket/reconnect: FAIL > GTester: last random seed: R02S521380d9c12f1dac3ad1763bf5665c27 > (pid=16367) > /char/socket/fdpass: OK > FAIL: tests/test-char > ** > ERROR:tests/test-char.c:353:char_socket_test_common: assertion failed: > (object_property_get_bool(OBJECT(chr_client), "connected", > &error_abort)) Fairly reproducible (I think it passed about once in 10 tries.) Backtrace, which looks bogus, probably due to compiler optimisation: (gdb) bt #0 0x0000000801ff884a in thr_kill () from /lib/libc.so.7 #1 0x0000000801ff8814 in raise () from /lib/libc.so.7 #2 0x0000000801ff8789 in abort () from /lib/libc.so.7 #3 0x0000000800d4e36c in g_assertion_message () from /usr/local/lib/libglib-2.0.so.0 #4 0x0000000800d4e3ce in g_assertion_message_expr () from /usr/local/lib/libglib-2.0.so.0 #5 0x0000000000409a40 in char_socket_test_common (chr=0x802ea5100, reconnect=<value optimized out>) at test-char.c:352 #6 0x0000000800d4deee in g_test_queue_destroy () from /usr/local/lib/libglib-2.0.so.0 #7 0x0000000800d4e14b in g_test_queue_destroy () from /usr/local/lib/libglib-2.0.so.0 #8 0x0000000800d4e14b in g_test_queue_destroy () from /usr/local/lib/libglib-2.0.so.0 #9 0x0000000800d4d2a3 in g_test_run_suite () from /usr/local/lib/libglib-2.0.so.0 #10 0x0000000800d4d1d8 in g_test_run () from /usr/local/lib/libglib-2.0.so.0 #11 0x00000000004074a4 in main (argc=1, argv=0x7fffffffebc8) at test-char.c:839 thanks -- PMM
Hi On Thu, Aug 23, 2018 at 3:31 PM Peter Maydell <peter.maydell@linaro.org> wrote: > > On 23 August 2018 at 12:36, Paolo Bonzini <pbonzini@redhat.com> wrote: > > The following changes since commit 659b11e7a7239529cfdb4968418268ff9aa22d88: > > > > Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-request' into staging (2018-08-21 11:36:15 +0100) > > > > are available in the Git repository at: > > > > git://github.com/bonzini/qemu.git tags/for-upstream > > > > for you to fetch changes up to 07c8c1c9311b81cbf3bcc49d4fed18e1d889a8f2: > > > > test-char: add socket reconnect test (2018-08-23 13:32:50 +0200) > > > > I removed the offending patch. > > Test failure on FreeBSD: > > MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} > gtester -k --verbose -m=quick tests/test-char > TEST: tests/test-char... (pid=16190) > /char/null: OK > /char/invalid: OK > /char/ringbuf: OK > /char/mux: OK > /char/stdio: OK > /char/pipe: OK > /char/file: OK > /char/file-fifo: OK > /char/udp: OK > /char/serial: OK > /char/hotswap: OK > /char/socket/basic: OK > /char/socket/reconnect: FAIL > GTester: last random seed: R02S521380d9c12f1dac3ad1763bf5665c27 > (pid=16367) > /char/socket/fdpass: OK > FAIL: tests/test-char > ** > ERROR:tests/test-char.c:353:char_socket_test_common: assertion failed: > (object_property_get_bool(OBJECT(chr_client), "connected", > &error_abort)) > Hmm, it looks like a race that pre-existed char_socket_test_common(), we wait for the server to be connected, and check both client and server have the connected option set. It may be that the client hasn't yet processed the connection event. Paolo, can you drop the test? > thanks > -- PMM >
On 23/08/2018 15:37, Marc-André Lureau wrote: > Hmm, it looks like a race that pre-existed char_socket_test_common(), > we wait for the server to be connected, and check both client and > server have the connected option set. It may be that the client hasn't > yet processed the connection event. > > Paolo, can you drop the test? > Well, I dropped all the four patches. :) Paolo