1. 03 Dec, 2021 5 commits
  2. 29 Nov, 2021 1 commit
    • RILLING Louis's avatar
      tests: Fix termination by signal of the fake actor · 0b50cc39
      RILLING Louis authored
      The signal handler of SIGQUIT calls exit() which is not signal safe.
      This sometimes leads to deadlocks (see the backtrace below where
      pthread_mutex_lock() is interrupted by the signal and called on the
      same lock by exit()). To fix this just call _exit().
      
       (gdb) bt
       #0  0x0000792090f0f5cb in __lll_lock_wait () from target:/lib/x86_64-linux-gnu/libpthread.so.0
       #1  0x0000792090f08211 in pthread_mutex_lock () from target:/lib/x86_64-linux-gnu/libpthread.so.0
       #2  0x0000792090f4735f in ?? () from target:/lib64/ld-linux-x86-64.so.2
       #3  0x0000792090a0a537 in ?? () from target:/lib/x86_64-linux-gnu/libc.so.6
       #4  0x0000792090a0a6da in exit () from target:/lib/x86_64-linux-gnu/libc.so.6
       #5  0x00005a95f258ed39 in sigquit (signum=3) at /usr/include/c++/11/bits/catch.hpp:18
       #6  <signal handler called>
       #7  0x0000792090f08193 in pthread_mutex_lock () from target:/lib/x86_64-linux-gnu/libpthread.so.0
       #8  0x0000792090f2a40d in dlsym () from target:/lib/x86_64-linux-gnu/libdl.so.2
       #9  0x00005a95f24cba89 in std::sys::unix::weak::fetch (name=<optimized out>)
           at library/std/src/sys/unix/weak.rs:101
       #10 std::sys::unix::weak::Weak<F>::initialize (
           self=0x5a95f2847c88 <std::sys::unix::rand::imp::getrandom::getrandom::getrandom>)
           at library/std/src/sys/unix/weak.rs:85
       #11 0x00005a95f267f398 in std::sys::unix::weak::Weak<F>::get (self=<optimized out>)
           at library/std/src/sys/unix/weak.rs:54
       #12 std::sys::unix::rand::imp::getrandom::getrandom (buffer=0x7ffd9778bd10, length=16, flags=1)
           at library/std/src/sys/unix/weak.rs:135
       #13 std::sys::unix::rand::imp::getrandom (buf=...) at library/std/src/sys/unix/rand.rs:44
       #14 std::sys::unix::rand::imp::getrandom_fill_bytes (v=...) at library/std/src/sys/unix/rand.rs:69
       #15 std::sys::unix::rand::imp::fill_bytes (v=...) at library/std/src/sys/unix/rand.rs:102
       #16 0x00005a95f2691808 in std::sys::unix::rand::hashmap_random_keys ()
           at library/std/src/sys/unix/rand.rs:8
       #17 0x00005a95f25dbffa in std::thread::local::fast::Key<T>::try_initialize ()
       #18 0x00005a95f25ddccd in <clap::args::arg_matcher::ArgMatcher as core::default::Default>::default ()
       #19 0x00005a95f26ce92d in clap::app::App::get_matches_from_safe ()
       #20 0x00005a95f26c8171 in tansiv_client::init ()
       #21 0x00005a95f25915fc in vsg_init ()
       #22 0x00005a95f24f8373 in ____C_A_T_C_H____T_E_S_T____9 () at /usr/include/c++/11/bits/atomic:145
       #23 0x00005a95f24e486c in Catch::TestInvokerAsFunction::invoke (this=0x5a95f39586c0)
           at /srv/src/build/std_abs.h:14321
       #24 0x00005a95f24e3bb3 in Catch::TestCase::invoke (this=0x5a95f3969f68)
           at /srv/src/build/std_abs.h:14160
       #25 0x00005a95f24de7ff in Catch::RunContext::invokeActiveTestCase (this=0x7ffd9778cf30)
           at /srv/src/build/std_abs.h:13020
       #26 0x00005a95f24de583 in Catch::RunContext::runCurrentTest (this=0x7ffd9778cf30, redirectedCout=...,
           redirectedCerr=...) at /srv/src/build/std_abs.h:12993
       #27 0x00005a95f24dd211 in Catch::RunContext::runTest (this=0x7ffd9778cf30, testCase=...)
           at /srv/src/build/std_abs.h:12754
       #28 0x00005a95f24dff27 in Catch::(anonymous namespace)::TestGroup::execute (this=0x7ffd9778cf20)
           at /srv/src/build/std_abs.h:13347
       #29 0x00005a95f24e1203 in Catch::Session::runInternal (this=0x7ffd9778d230)
           at /srv/src/build/std_abs.h:13553
       #30 0x00005a95f24e0f48 in Catch::Session::run (this=0x7ffd9778d230) at /srv/src/build/std_abs.h:13509
       #31 0x00005a95f251ee17 in Catch::Session::run<char> (this=0x7ffd9778d230, argc=2, argv=0x7ffd9778d4c8)
           at /srv/src/build/std_abs.h:13231
       #32 0x00005a95f24f636f in main (argc=2, argv=0x7ffd9778d4c8) at /srv/src/build/std_abs.h:17526
      0b50cc39
  3. 24 Nov, 2021 1 commit
  4. 23 Nov, 2021 1 commit
    • RILLING Louis's avatar
      tests: Fix logic of test "VSG send piggyback port" · bd28ffea
      RILLING Louis authored
      Fix two flaws:
      - depending on execution timings, AtDeadline messages can arrive
        before the actor receives a SendPacket message;
      - failing to decode the right port could just result from no
        DeliverPacket message received at all.
      
      For #23
      bd28ffea
  5. 19 Nov, 2021 6 commits
  6. 17 Nov, 2021 5 commits
  7. 12 Nov, 2021 2 commits
  8. 10 Nov, 2021 4 commits
  9. 09 Nov, 2021 7 commits
  10. 29 Oct, 2021 2 commits
  11. 28 Oct, 2021 1 commit
  12. 23 Oct, 2021 1 commit
  13. 22 Oct, 2021 4 commits