On Fri, Apr 27, 2018 at 6:19 PM, Waldek Kozaczuk <jwkozac...@gmail.com>
wrote:

> My theory might be right.
>
> I ran simple experiment by adding this before first assert
> in test_when_ring_gets_full test:
> sched::thread::pin(sched::cpus[0]);
>
> and then before assert(!ring.push(5));
> sched::thread::pin(sched::cpus[1]);
>
> I received this error:
>
> OSv v0.24-519-g2a7a27b
> eth0: 192.168.122.15
> __sigsetjmp() stubbed
> Running 3 test cases...
> Assertion failed: !ring.push(5) (/home/wkozaczuk/projects/osv/
> tests/tst-unordered-ring-mpsc.cc: test_method: 62)
>
> [backtrace]
> 0x0000000000225a88 <__assert_fail+24>
> 0x0000100001406f64 <test_when_ring_gets_full::test_method()+2564>
> 0x000010000140717d <???+21000573>
> 0xffffa00002c4de5f <???+46456415>
> 0xffffa00002915857 <???+43079767>
> 0x000010000186afbf <???+25604031>
> 0x0000000000841f0e <???+8658702>
> Test tst-unordered-ring-mpsc.so FAILED
> Traceback (most recent call last):
>   File "./scripts/test.py", line 187, in <module>
>     main()
>   File "./scripts/test.py", line 174, in main
>     run_tests()
>   File "./scripts/test.py", line 165, in run_tests
>     run(tests_to_run)
>   File "./scripts/test.py", line 85, in run
>     run_test(test)
>   File "./scripts/test.py", line 60, in run_test
>     test.run()
>   File "/home/wkozaczuk/projects/osv/scripts/tests/testing.py", line 29,
> in run
>     run_command_in_guest(self.command).join()
>   File "/home/wkozaczuk/projects/osv/scripts/tests/testing.py", line 163,
> in join
>     raise Exception('Guest failed')
> Exception: Guest failed
>
> Please note however that the second line in the backtrace is different
> from the one in the Jenkins failure. So I am not sure if I have reproduced
> the exact same error.
>

I can't find "the Jenkins failure" (and apparently above you quoted the
wrong email?). Can you please paste it here?


>
> On Friday, April 27, 2018 at 10:41:59 AM UTC-4, Waldek Kozaczuk wrote:
>>
>> This time tst-unordered-ring-mpsc failed (line 60). I briefly looked at
>> it and it seems to me that the test makes an assumption that it will be
>> executed on the same CPU. The unordered_ring_mpsc structure holds vector
>> for each cpu. But what if the thread running the test get migrated to
>> different CPU between line 59 and 60?
>>
>> To be honest I am quite ignorant about unordered_ring_mpsc so my
>> reasoning might be flawed.
>>
>> On Monday, April 23, 2018 at 6:58:03 PM UTC-4, jen...@scylladb.com wrote:
>>>
>>> See <http://jenkins.cloudius-systems.com:8080/job/osv-build-
>>> nightly/1451/display/redirect?page=changes>
>>>
>>> Changes:
>>>
>>> [geraldonetto] add encrypt (3) functions (fix #945)
>>>
>>> [geraldonetto] add crypt (3) tests
>>>
>>> ------------------------------------------
>>> [...truncated 149.75 KB...]
>>> Adding /tests/tst-except.so...
>>> Adding /tests/misc-tcp-sendonly.so...
>>> Adding /tests/tst-tcp-nbwrite.so...
>>> Adding /tests/misc-tcp-hash-srv.so...
>>> Adding /tests/misc-loadbalance.so...
>>> Adding /tests/misc-scheduler.so...
>>> Adding /tests/tst-console.so...
>>> Adding /tests/tst-app.so...
>>> Adding /tests/misc-setpriority.so...
>>> Adding /tests/misc-timeslice.so...
>>> Adding /tests/misc-tls.so...
>>> Adding /tests/misc-gtod.so...
>>> Adding /tests/tst-dns-resolver.so...
>>> Adding /tests/tst-fs-link.so...
>>> Adding /tests/tst-kill.so...
>>> Adding /tests/tst-truncate.so...
>>> Adding /tests/misc-panic.so...
>>> Adding /tests/tst-utimes.so...
>>> Adding /tests/tst-utimensat.so...
>>> Adding /tests/tst-futimesat.so...
>>> Adding /tests/misc-tcp.so...
>>> Adding /tests/tst-strerror_r.so...
>>> Adding /tests/misc-random.so...
>>> Adding /tests/misc-urandom.so...
>>> Adding /tests/tst-commands.so...
>>> Adding /tests/tst-threadcomplete.so...
>>> Adding /tests/tst-timerfd.so...
>>> Adding /tests/tst-nway-merger.so...
>>> Adding /tests/tst-memmove.so...
>>> Adding /tests/tst-pthread-clock.so...
>>> Adding /tests/misc-procfs.so...
>>> Adding /tests/tst-chdir.so...
>>> Adding /tests/tst-chmod.so...
>>> Adding /tests/tst-hello.so...
>>> Adding /tests/misc-concurrent-io.so...
>>> Adding /tests/tst-concurrent-init.so...
>>> Adding /tests/tst-ring-spsc-wraparound.so...
>>> Adding /tests/tst-shm.so...
>>> Adding /tests/tst-align.so...
>>> Adding /tests/tst-cxxlocale.so...
>>> Adding /tests/misc-tcp-close-without-reading.so...
>>> Adding /tests/tst-sigwait.so...
>>> Adding /tests/tst-sampler.so...
>>> Adding /tests/misc-malloc.so...
>>> Adding /tests/misc-memcpy.so...
>>> Adding /tests/misc-free-perf.so...
>>> Adding /tests/tst-fallocate.so...
>>> Adding /tests/misc-printf.so...
>>> Adding /tests/tst-hostname.so...
>>> Adding /tests/tst-sendfile.so...
>>> Adding /tests/misc-lock-perf.so...
>>> Adding /tests/tst-uio.so...
>>> Adding /tests/tst-printf.so...
>>> Adding /tests/tst-pthread-affinity.so...
>>> Adding /tests/tst-pthread-tsd.so...
>>> Adding /tests/tst-thread-local.so...
>>> Adding /tests/tst-zfs-mount.so...
>>> Adding /tests/tst-regex.so...
>>> Adding /tests/tst-tcp-siocoutq.so...
>>> Adding /tests/libtls.so...
>>> Adding /tests/tst-tls.so...
>>> Adding /tests/tst-select-timeout.so...
>>> Adding /tests/tst-faccessat.so...
>>> Adding /tests/tst-fstatat.so...
>>> Adding /tests/misc-reboot.so...
>>> Adding /tests/tst-fcntl.so...
>>> Adding /tests/payload-namespace.so...
>>> Adding /tests/tst-namespace.so...
>>> Adding /tests/tst-without-namespace.so...
>>> Adding /tests/payload-env.so...
>>> Adding /tests/payload-merge-env.so...
>>> Adding /tests/misc-execve.so...
>>> Adding /tests/misc-execve-payload.so...
>>> Adding /tests/misc-mutex2.so...
>>> Adding /tests/tst-pthread-setcancelstate.so...
>>> Adding /tests/tst-syscall.so...
>>> Adding /tests/tst-pin.so...
>>> Adding /tests/tst-run.so...
>>> Adding /tests/tst-ifaddrs.so...
>>> Adding /tests/tst-pthread-affinity-inherit.so...
>>> Adding /tests/tst-sem-timed-wait.so...
>>> Adding /tests/tst-ttyname.so...
>>> Adding /tests/tst-pthread-barrier.so...
>>> Adding /tests/tst-feexcept.so...
>>> Adding /tests/tst-math.so...
>>> Adding /tests/tst-sigaltstack.so...
>>> Adding /tests/tst-fread.so...
>>> Adding /tests/tst-tcp-cork.so...
>>> Adding /tests/tst-tcp-v6.so...
>>> Adding /tests/tst-calloc.so...
>>> Adding /tests/tst-crypt.so...
>>> Adding /tests/testrunner.so...
>>> Adding /tests/tst-rename.so...
>>> Adding /tests/tst-vfs.so...
>>> Adding /tests/tst-libc-locking.so...
>>> Adding /tests/misc-fs-stress.so...
>>> Adding /tests/misc-bdev-write.so...
>>> Adding /tests/misc-bdev-wlatency.so...
>>> Adding /tests/misc-bdev-rw.so...
>>> Adding /tests/tst-promise.so...
>>> Adding /tests/tst-dlfcn.so...
>>> Adding /tests/tst-stat.so...
>>> Adding /tests/tst-wait-for.so...
>>> Adding /tests/tst-bsd-tcp1.so...
>>> Adding /tests/tst-bsd-tcp1-zsnd.so...
>>> Adding /tests/tst-bsd-tcp1-zrcv.so...
>>> Adding /tests/tst-bsd-tcp1-zsndrcv.so...
>>> Adding /tests/tst-async.so...
>>> Adding /tests/tst-rcu-list.so...
>>> Adding /tests/tst-tcp-listen.so...
>>> Adding /tests/tst-poll.so...
>>> Adding /tests/tst-bitset-iter.so...
>>> Adding /tests/tst-timer-set.so...
>>> Adding /tests/tst-clock.so...
>>> Adding /tests/tst-rcu-hashtable.so...
>>> Adding /tests/tst-unordered-ring-mpsc.so...
>>> Adding /tests/tst-seek.so...
>>> Adding /tests/tst-solaris-taskq.so...
>>> Adding /tests/misc-zfs-io.so...
>>> cpiod finished
>>> + cd <http://jenkins.cloudius-systems.com:8080/job/osv-build-nightly/ws/>
>>>
>>> + exec ./scripts/test.py
>>>   TEST java-perms                          OK  (10.122 s)
>>>   TEST java_isolated                       OK  (13.174 s)
>>>   TEST java_non_isolated                   OK  (9.466 s)
>>>   TEST tcp_close_without_reading          qemu-system-x86_64: -redir
>>> tcp:7777::7777: The -redir option is deprecated. Please use '-netdev
>>> user,hostfwd=...' instead.
>>>  OK  (2.750 s)
>>>   TEST tracing_smoke_test                  OK  (14.624 s)
>>>   TEST tst-af-local.so                     OK  (5.373 s)
>>>   TEST tst-align.so                        OK  (3.215 s)
>>>   TEST tst-app.so                          OK  (3.177 s)
>>>   TEST tst-async.so                        OK  (3.527 s)
>>>   TEST tst-bitset-iter.so                  OK  (3.193 s)
>>>   TEST tst-bsd-evh.so                      OK  (3.974 s)
>>>   TEST tst-bsd-kthread.so                  OK  (2.921 s)
>>>   TEST tst-bsd-taskqueue.so                OK  (2.608 s)
>>>   TEST tst-bsd-tcp1-zrcv.so                OK  (4.576 s)
>>>   TEST tst-bsd-tcp1-zsnd.so                OK  (4.390 s)
>>>   TEST tst-bsd-tcp1-zsndrcv.so             OK  (5.329 s)
>>>   TEST tst-bsd-tcp1.so                     OK  (5.200 s)
>>>   TEST tst-calloc.so                       OK  (3.383 s)
>>>   TEST tst-chdir.so                        OK  (3.235 s)
>>>   TEST tst-chmod.so                        OK  (3.047 s)
>>>   TEST tst-clock.so                        OK  (17.795 s)
>>>   TEST tst-commands.so                     OK  (2.853 s)
>>>   TEST tst-concurrent-init.so              OK  (3.900 s)
>>>   TEST tst-condvar.so                      OK  (17.206 s)
>>>   TEST tst-console.so                      OK  (9.272 s)
>>>   TEST tst-crypt.so                        OK  (3.177 s)
>>>   TEST tst-cxxlocale.so                    OK  (3.158 s)
>>>   TEST tst-dlfcn.so                        OK  (3.065 s)
>>>   TEST tst-dns-resolver.so                 SKIPPED
>>>   TEST tst-elf-permissions.so              OK  (3.073 s)
>>>   TEST tst-epoll.so                        OK  (4.268 s)
>>>   TEST tst-eventfd.so                      OK  (26.605 s)
>>>   TEST tst-except.so                       OK  (2.946 s)
>>>   TEST tst-faccessat.so                    OK  (2.799 s)
>>>   TEST tst-fallocate.so                    OK  (2.919 s)
>>>   TEST tst-fcntl.so                        OK  (3.167 s)
>>>   TEST tst-feexcept.so                     SKIPPED
>>>   TEST tst-fpu.so                          OK  (250.191 s)
>>>   TEST tst-fread.so                        OK  (3.265 s)
>>>   TEST tst-fs-link.so                      OK  (2.645 s)
>>>   TEST tst-fstatat.so                      OK  (2.892 s)
>>>   TEST tst-futimesat.so                    OK  (3.227 s)
>>>   TEST tst-hello.so                        OK  (3.240 s)
>>>   TEST tst-hostname.so                     OK  (3.084 s)
>>>   TEST tst-hub.so                          OK  (13.670 s)
>>>   TEST tst-huge.so                         OK  (13.768 s)
>>>   TEST tst-ifaddrs.so                      OK  (4.110 s)
>>>   TEST tst-kill.so                         OK  (8.335 s)
>>>   TEST tst-libc-locking.so                 OK  (18.109 s)
>>>   TEST tst-math.so                         OK  (2.917 s)
>>>   TEST tst-memmove.so                      OK  (2.819 s)
>>>   TEST tst-mmap-file.so                    OK  (2.717 s)
>>>   TEST tst-mmap.so                         OK  (2.976 s)
>>>   TEST tst-namespace.so                    OK  (6.188 s)
>>>   TEST tst-nway-merger.so                  OK  (3.062 s)
>>>   TEST tst-openat.so                       OK  (2.828 s)
>>>   TEST tst-pin.so                          OK  (3.726 s)
>>>   TEST tst-pipe.so                         OK  (9.956 s)
>>>   TEST tst-poll.so                         OK  (3.328 s)
>>>   TEST tst-preempt.so                      OK  (3.237 s)
>>>   TEST tst-printf.so                       OK  (2.658 s)
>>>   TEST tst-promise.so                      OK  (3.082 s)
>>>   TEST tst-pthread-affinity-inherit.so     OK  (3.313 s)
>>>   TEST tst-pthread-affinity.so             OK  (2.961 s)
>>>   TEST tst-pthread-barrier.so              OK  (2.981 s)
>>>   TEST tst-pthread-clock.so                OK  (7.274 s)
>>>   TEST tst-pthread-setcancelstate.so       OK  (2.718 s)
>>>   TEST tst-pthread-tsd.so                  OK  (3.262 s)
>>>   TEST tst-pthread.so                      OK  (3.787 s)
>>>   TEST tst-queue-mpsc.so                   OK  (71.888 s)
>>>   TEST tst-rcu-hashtable.so                OK  (244.689 s)
>>>   TEST tst-rcu-list.so                     OK  (14.015 s)
>>>   TEST tst-read.so                         OK  (2.648 s)
>>>   TEST tst-readdir.so                      OK  (3.014 s)
>>>   TEST tst-regex.so                        OK  (2.906 s)
>>>   TEST tst-remove.so                       OK  (2.869 s)
>>>   TEST tst-rename.so                       OK  (3.314 s)
>>>   TEST tst-resolve.so                      OK  (2.762 s)
>>>   TEST tst-ring-spsc-wraparound.so         OK  (95.006 s)
>>>   TEST tst-run.so                          OK  (3.030 s)
>>>   TEST tst-sampler.so                      OK  (2.849 s)
>>>   TEST tst-seek.so                         OK  (2.819 s)
>>>   TEST tst-select-timeout.so               OK  (3.182 s)
>>>   TEST tst-sem-timed-wait.so               OK  (2.973 s)
>>>   TEST tst-sendfile.so                     OK  (4.137 s)
>>>   TEST tst-shm.so                          OK  (2.748 s)
>>>   TEST tst-sigaltstack.so                  OK  (2.783 s)
>>>   TEST tst-sigwait.so                      OK  (2.774 s)
>>>   TEST tst-sleep.so                        OK  (5.039 s)
>>>   TEST tst-solaris-taskq.so                OK  (2.754 s)
>>>   TEST tst-stat.so                         OK  (3.040 s)
>>>   TEST tst-strerror_r.so                   OK  (2.844 s)
>>>   TEST tst-symlink.so                      OK  (4.033 s)
>>>   TEST tst-syscall.so                      OK  (2.970 s)
>>>   TEST tst-tcp-cork.so                     OK  (7.299 s)
>>>   TEST tst-tcp-listen.so                   OK  (5.147 s)
>>>   TEST tst-tcp-nbwrite.so                 OSv v0.24-516-g99756343
>>> eth0: 192.168.122.15
>>> Client total: read 599999
>>> Server thinks it sent 600000, client received 599999
>>> FAIL: Test with blocking write()
>>> Client total: read 51200
>>> Server thinks it sent 51200, client received 51200
>>> PASS: Test with non-blocking write()
>>> SUMMARY: 2 tests, 1 failures
>>> Test tst-tcp-nbwrite.so FAILED
>>> Traceback (most recent call last):
>>>   File "<http://jenkins.cloudius-systems.com:8080/job/osv-build-
>>> nightly/ws/scripts/test.py",> line 187, in <module>
>>>     main()
>>>   File "<http://jenkins.cloudius-systems.com:8080/job/osv-build-
>>> nightly/ws/scripts/test.py",> line 174, in main
>>>     run_tests()
>>>   File "<http://jenkins.cloudius-systems.com:8080/job/osv-build-
>>> nightly/ws/scripts/test.py",> line 165, in run_tests
>>>     run(tests_to_run)
>>>   File "<http://jenkins.cloudius-systems.com:8080/job/osv-build-
>>> nightly/ws/scripts/test.py",> line 85, in run
>>>     run_test(test)
>>>   File "<http://jenkins.cloudius-systems.com:8080/job/osv-build-
>>> nightly/ws/scripts/test.py",> line 60, in run_test
>>>     test.run()
>>>   File "<http://jenkins.cloudius-systems.com:8080/job/osv-build-
>>> nightly/ws/scripts/tests/testing.py",> line 29, in run
>>>     run_command_in_guest(self.command).join()
>>>   File "<http://jenkins.cloudius-systems.com:8080/job/osv-build-
>>> nightly/ws/scripts/tests/testing.py",> line 163, in join
>>>     raise Exception('Guest failed')
>>> Exception: Guest failed
>>> make: *** [Makefile:143: check] Error 1
>>> Build step 'Execute shell' marked build as failure
>>> Archiving artifacts
>>> IRC notifier plugin: Sending notification to: #osv
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "OSv Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to osv-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to