some tests fail on linux/aarch32
Hello I tried building on arm 32-bit and I can successfully build tor on NixOS when skipping the tests. However with the tests enabled the build fails.
This is the output from build logs:
` # sandbox/is_active: [forking] Feb 06 17:43:14.224 [err] install_syscall_filter(): Bug: (Sandbox) failed to load: -125 (Operation canceled)! Are you sure that your kernel has seccomp2 support? The sandbox won't work without it. (on Tor 0.4.8.10 )
# FAIL src/test/test_sandbox.c:146: assert(sandbox_is_active())
# [is_active FAILED]
# sandbox/open_filename: [forking] Feb 06 17:43:14.279 [err] install_syscall_filter(): Bug: (Sandbox) failed to load: -125 (Operation canceled)! Are you sure that your kernel has seccomp2 support? The sandbox won't work without it. (on Tor 0.4.8.10 )
# FAIL src/test/test_sandbox.c:170: assert(fd OP_EQ -1): 9 vs -1
# [open_filename FAILED]
# sandbox/opendir_dirname: [forking] Feb 06 17:43:14.343 [err] install_syscall_filter(): Bug: (Sandbox) failed to load: -125 (Operation canceled)! Are you sure that your kernel has seccomp2 support? The sandbox won't work without it. (on Tor 0.4.8.10 )
# FAIL src/test/test_sandbox.c:271: assert(dir OP_EQ NULL): 0xdf8300 vs (nil)
# [opendir_dirname FAILED]
# sandbox/openat_filename: [forking] Feb 06 17:43:14.400 [err] install_syscall_filter(): Bug: (Sandbox) failed to load: -125 (Operation canceled)! Are you sure that your kernel has seccomp2 support? The sandbox won't work without it. (on Tor 0.4.8.10 )
# FAIL src/test/test_sandbox.c:249: assert(fd OP_EQ -1): 9 vs -1
# [openat_filename FAILED]
# sandbox/chmod_filename: [forking] Feb 06 17:43:14.493 [err] install_syscall_filter(): Bug: (Sandbox) failed to load: -125 (Operation canceled)! Are you sure that your kernel has seccomp2 support? The sandbox won't work without it. (on Tor 0.4.8.10 )
# FAIL src/test/test_sandbox.c:190: assert(rc OP_EQ -1): 0 vs -1
# [chmod_filename FAILED]
# sandbox/chown_filename: [forking] Feb 06 17:43:14.561 [err] install_syscall_filter(): Bug: (Sandbox) failed to load: -125 (Operation canceled)! Are you sure that your kernel has seccomp2 support? The sandbox won't work without it. (on Tor 0.4.8.10 )
# FAIL src/test/test_sandbox.c:208: assert(rc OP_EQ -1): 0 vs -1
# [chown_filename FAILED]
# sandbox/rename_filename: [forking] Feb 06 17:43:14.629 [err] install_syscall_filter(): Bug: (Sandbox) failed to load: -125 (Operation canceled)! Are you sure that your kernel has seccomp2 support? The sandbox won't work without it. (on Tor 0.4.8.10 )
# FAIL src/test/test_sandbox.c:228: assert(rc OP_EQ -1): 0 vs -1
# [rename_filename FAILED]`
The NixOS build script can be found here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/security/tor/default.nix
I already submitted a PR which disables the tests for linux/aarch32 (https://github.com/NixOS/nixpkgs/pull/286792/files) but ideally would be to have the fix upstream.
Edited by dasj19