Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add back the tox_loop implementation for low latency. #1821

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

feat: Add back the `tox_loop` implementation for low latency.

8a0c9a4
Select commit
Loading
Failed to load commit list.
Open

feat: Add back the tox_loop implementation for low latency. #1821

feat: Add back the `tox_loop` implementation for low latency.
8a0c9a4
Select commit
Loading
Failed to load commit list.
Cirrus CI / bazel-msan failed Jan 1, 2025 in 1m 1s

Task Summary

Instruction test_all failed in 00:52

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:06 clone
✅ 00:01 configure
❌ 00:52 test_all

(20:19:26) �[32m[739 / 775]�[0m Compiling c-toxcore/toxcore/LAN_discovery.c; 0s remote-cache, processwrapper-sandbox ... (2 actions, 1 running)
(20:19:27) �[32m[891 / 922]�[0m Linking c-toxcore/toxav/libtoxav.so; 0s remote-cache, processwrapper-sandbox ... (2 actions, 1 running)
(20:19:28) �[32m[898 / 974]�[0m Compiling c-toxcore/toxcore/events/self_connection_status.c; 0s remote-cache, processwrapper-sandbox ... (2 actions running)
(20:19:29) �[32m[905 / 977]�[0m Compiling c-toxcore/toxcore/tox_pack.c; 0s remote-cache, processwrapper-sandbox ... (3 actions, 1 running)
(20:19:30) �[32m[913 / 983]�[0m [Prepa] Compiling c-toxcore/toxcore/tox_unpack.c ... (2 actions, 1 running)
(20:19:31) �[32m[916 / 983]�[0m [Prepa] Linking c-toxcore/toxcore/libtox_unpack.so ... (2 actions, 1 running)
(20:19:33) �[32m[923 / 991]�[0m [Prepa] Compiling c-toxcore/toxcore/events/group_private_message.c ... (2 actions, 1 running)
(20:19:34) �[32m[927 / 991]�[0m [Prepa] Compiling c-toxcore/toxcore/tox.c ... (2 actions, 1 running)
(20:19:35) �[32m[932 / 994]�[0m Compiling c-toxcore/toxcore/tox.c; 0s remote-cache, processwrapper-sandbox ... (2 actions, 1 running)
(20:19:36) �[32m[940 / 997]�[0m [Prepa] action 'SolibSymlink _solib_k8/libc-toxcore_Stoxcore_Slibtox.so' ... (2 actions, 1 running)
(20:19:37) �[32m[945 / 1,000]�[0m Compiling c-toxcore/toxcore/group.c; 0s remote-cache, processwrapper-sandbox ... (2 actions running)
(20:19:38) �[32m[951 / 1,003]�[0m Linking c-toxcore/toxcore/libgroup.so; 0s remote-cache, processwrapper-sandbox ... (2 actions running)
(20:19:39) �[32m[958 / 1,012]�[0m Compiling c-toxcore/toxcore/group_pack.c; 0s remote-cache, processwrapper-sandbox ... (3 actions, 1 running)
(20:19:39) �[31m�[1mERROR: �[0m/src/workspace/c-toxcore/toxcore/BUILD.bazel:670:11: Compiling c-toxcore/toxcore/TCP_client.c failed: (Exit 1): cc failed: error executing CppCompile command (from target //c-toxcore/toxcore:TCP_client) 
  (cd /home/builder/.cache/bazel/_bazel_builder/a08c2e4811c846650b733c6fc815a920/sandbox/processwrapper-sandbox/88/execroot/_main && \
  exec env - \
    PATH=/nix/store/p6k7xp1lsfmbdd731mlglrdj2d66mr82-bash-5.2p37/bin:/nix/store/b1wvkjx96i3s7wblz38ya0zr8i93zbc5-coreutils-9.5/bin:/nix/store/cxwsmlr3xh1ml4r0kgdjrknw7504b9f8-diffutils-3.10/bin:/nix/store/sgya0zpvpvxpic016f3gpik4lkd3xjvm-file-5.45/bin:/nix/store/w8pnfazxqwmrqmwkb5zrz1bifsd8abxl-findutils-4.10.0/bin:/nix/store/nnin69nrnrrmnv2scbwyfkgh1rf51gh1-gawk-5.3.1/bin:/nix/store/85amyk92rg19l4fy0qmy7wr4jmq8p5z0-gnugrep-3.11/bin:/nix/store/mdmansf6zkzsnrcf4h3yav5kz93rh03y-patch-2.7.6/bin:/nix/store/vmby25zqxnx94awvj0k7zn0rsd0zyrwg-gnused-4.9/bin:/nix/store/zhaypw0znkjnymg0rk1599zn21rr0l50-gnutar-1.35/bin:/nix/store/a7pimibppfw2m3ryijnwwzx76i780bw2-gzip-1.13/bin:/nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/bin:/nix/store/mqsmmvjp2a9n0r2cg4ja33vmmv35lzni-unzip-6.0/bin:/nix/store/kl3zv2sn1r5ia1z7cg51g6ydcxzldp2y-which-2.21/bin:/nix/store/jpza1ck469qhc4bj7vi7pnqsd19x49n6-zip-3.0/bin:/nix/store/bs5spxg8s8mawd0zpqlyzv41m7xm43h4-make-shell-wrapper-hook/bin \
    PWD=/proc/self/cwd \
  /nix/store/03bq5hc45d5wkw8pajmz4vgd5s0ivyq8-clang-wrapper-18.1.8/bin/cc -U_FORTIFY_SOURCE -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g -MD -MF bazel-out/k8-dbg/bin/c-toxcore/toxcore/_objs/TCP_client/TCP_client.pic.d '-frandom-seed=bazel-out/k8-dbg/bin/c-toxcore/toxcore/_objs/TCP_client/TCP_client.pic.o' -fPIC -DSODIUM_STATIC -DHAVE_LIBEV -iquote . -iquote bazel-out/k8-dbg/bin -iquote external/pthread -iquote bazel-out/k8-dbg/bin/external/pthread -iquote external/libsodium -iquote bazel-out/k8-dbg/bin/external/libsodium -iquote external/ev -iquote bazel-out/k8-dbg/bin/external/ev -iquote external/psocket -iquote bazel-out/k8-dbg/bin/external/psocket -Ibazel-out/k8-dbg/bin/external/libsodium/_virtual_includes/libsodium -isystem external/ev -isystem bazel-out/k8-dbg/bin/external/ev -fomit-frame-pointer -fasynchronous-unwind-tables -DNO_FRAME_POINTER '-fsanitize=undefined' '-fsanitize-trap=all' '-fdiagnostics-color=always' -funsigned-char -Wno-c++20-compat -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-deprecated-sync -Wno-missing-field-initializers -Wno-missing-noreturn -Wno-padded -Wno-reserved-id-macro -Wno-switch-default -Wno-unused-parameter -Wno-vla -ftrapv -Wno-used-but-marked-unused -Wno-reserved-identifier -Wno-declaration-after-statement -Wno-unsafe-buffer-usage -Wno-deprecated-builtins -Wno-unreachable-code-return -UNDEBUG -O3 -fno-sanitize-ignorelist '-fsanitize=memory' '-fsanitize-memory-track-origins=2' '-std=gnu17' '-DMIN_LOGGER_LEVEL=LOGGER_LEVEL_TRACE' '-DMAX_VLA_SIZE=2048' '-Wframe-larger-than=20000' '-std=c17' -Wall -Werror -Weverything -pedantic -Wno-missing-braces -Wno-tautological-pointer-compare -O0 -fno-inline -fno-omit-frame-pointer -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c c-toxcore/toxcore/TCP_client.c -o bazel-out/k8-dbg/bin/c-toxcore/toxcore/_objs/TCP_client/TCP_client.pic.o)
# Configuration: 2f9f948effd9f6073bbd2dc1c9e3a85a3542dd7008cfb4f177142d2ddb3ab423
# Execution platform: @@rules_nixpkgs_core//platforms:host

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
�[1mc-toxcore/toxcore/TCP_client.c:122:70: �[0m�[0;1;31merror: �[0m�[1mno member named 'sock' in 'struct Socket'�[0m
  122 |     ev_io_init(&con->sock_listener.listener, callback, con->con.sock.sock, EV_READ);�[0m
      | �[0;1;32m                                                       ~~~~~~~~~~~~~ ^
�[0m�[1mexternal/ev/ev.h:712:90: �[0m�[0;1;36mnote: �[0mexpanded from macro 'ev_io_init'�[0m
  712 | #define ev_io_init(ev,cb,fd,events)          do { ev_init ((ev), (cb)); ev_io_set ((ev),(fd),(events)); } while (0)�[0m
      | �[0;1;32m                                                                                         ^~
�[0m�[1mexternal/ev/ev.h:698:63: �[0m�[0;1;36mnote: �[0mexpanded from macro 'ev_io_set'�[0m
  698 | #define ev_io_set(ev,fd_,events_)            do { (ev)->fd = (fd_); (ev)->events = (events_) | EV__IOFDSET; } while (0)�[0m
      | �[0;1;32m                                                              ^~~
�[0m1 error generated.
(20:19:40) �[32m[965 / 1,015]�[0m [Prepa] Compiling c-toxcore/toxcore/events/group_invite.c ... (2 actions, 1 running)
(20:19:42) �[32m[968 / 1,015]�[0m Compiling c-toxcore/toxcore/group_chats.c; 0s remote-cache, processwrapper-sandbox ... (2 actions, 1 running)
(20:19:43) �[32m[973 / 1,018]�[0m [Prepa] Compiling c-toxcore/toxcore/net_crypto.c ... (2 actions, 1 running)
(20:19:44) �[32m[977 / 1,018]�[0m [Prepa] Linking c-toxcore/toxcore/libMessenger.so ... (2 actions, 1 running)
(20:19:45) �[32m[985 / 1,024]�[0m [Prepa] Compiling c-toxcore/toxcore/events/friend_status.c ... (2 actions, 1 running)
(20:19:46) �[32m[990 / 1,027]�[0m Compiling c-toxcore/toxcore/events/friend_request.c; 0s remote-cache, processwrapper-sandbox ... (3 actions, 2 running)
(20:19:47) �[32m[995 / 1,030]�[0m Compiling c-toxcore/toxcore/events/friend_read_receipt.c; 0s remote-cache, processwrapper-sandbox ... (2 actions running)
(20:19:49) �[32m[1,001 / 1,033]�[0m Compiling c-toxcore/toxcore/events/friend_message.c; 0s remote-cache, processwrapper-sandbox ... (2 actions, 1 running)
(20:19:50) �[32m[1,008 / 1,036]�[0m Compiling c-toxcore/toxcore/onion_client.c; 0s remote-cache, processwrapper-sandbox ... (2 actions, 1 running)
(20:19:51) �[32m[1,018 / 1,045]�[0m Compiling c-toxcore/toxcore/events/friend_connection_status.c; 0s remote-cache, processwrapper-sandbox ... (3 actions, 2 running)
(20:19:52) �[32m[1,023 / 1,045]�[0m Compiling c-toxcore/toxcore/friend_requests.c; 0s remote-cache, processwrapper-sandbox ... (2 actions, 1 running)
(20:19:53) �[32m[1,031 / 1,048]�[0m [Prepa] Compiling c-toxcore/toxcore/events/file_recv.c ... (2 actions, 1 running)
(20:19:54) �[32m[1,036 / 1,048]�[0m [Prepa] Compiling c-toxcore/toxcore/events/conference_connected.c ... (2 actions, 1 running)
(20:19:55) �[32m[1,040 / 1,048]�[0m [Prepa] Compiling c-toxcore/toxcore/events/conference_peer_list_changed.c ... (3 actions, 1 running)
(20:19:56) �[32m[1,044 / 1,048]�[0m Compiling c-toxcore/toxcore/events/conference_peer_name.c; 0s remote-cache, processwrapper-sandbox
Target //c-toxcore/auto_tests:lossless_packet_test failed to build
(20:19:57) �[32mINFO: �[0mElapsed time: 52.255s, Critical Path: 2.72s
(20:19:57) �[32mINFO: �[0m242 processes: 38 remote cache hit, 99 internal, 105 processwrapper-sandbox.
(20:19:57) �[31m�[1mERROR: �[0mBuild did NOT complete successfully
//c-toxcore/auto_tests:lossless_packet_test                     �[0m�[31m�[1mFAILED TO BUILD�[0m

Executed 0 out of 1 test: �[0m�[31m�[1m1 fails to build�[0m.
�[0m