Subject: encfs: Fails to build (test segfaults)
From: Ivan Vilata i Balaguer <[email-masked]>
To: [email-masked]
Date: Thu, 4 May 2023 18:46:54 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi!  It looks like one of the tests in package `encfs` consistently segfaults
in the version of Guix shown below:

```
$ LANG=C guix describe
Generation 56   May 02 2023 11:25:26    (current)
  guix 3f8c489
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 3f8c4899a9a67bb509a603bd21dcfcfab88c0e8e
```

This is the final part of the build log:

```
starting phase `check'
Running tests...
/gnu/store/ygab8v4ci9iklaykapq52bfsshpvi8pw-cmake-minimal-3.24.2/bin/ctest --force-new-ctest-process 
Test project /tmp/guix-build-encfs-1.9.5.drv-0/build
    Start 1: unit
1/1 Test #1: unit .............................***Exception: SegFault  0.01 sec
Running main() from /tmp/guix-build-encfs-1.9.5.drv-0/encfs-1.9.5/vendor/github.com/google/googletest/googletest/src/gtest_main.cc
[==========] Running 16 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 1 test from MemoryPool
[ RUN      ] MemoryPool.Allocate
[       OK ] MemoryPool.Allocate (0 ms)
[----------] 1 test from MemoryPool (0 ms total)

[----------] 15 tests from CipherKey/CipherTest
[ RUN      ] CipherKey/CipherTest.SaveRestoreKey/0
[       OK ] CipherKey/CipherTest.SaveRestoreKey/0 (5 ms)
[ RUN      ] CipherKey/CipherTest.SaveRestoreKey/1

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.01 sec

The following tests FAILED:
	  1 - unit (SEGFAULT)
Errors while running CTest
make: *** [Makefile:94: test] Error 8

Test suite failed, dumping logs.
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("test" "-j" "4") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `check' failed after 0.0 seconds
command "make" "test" "-j" "4" failed with status 2
```

I saw a couple of encfs issues regarding segfaults in tests, but I don't think
they're related: <https://github.com/vgough/encfs/issues/378>
<https://github.com/vgough/encfs/issues/600>

Thanks a lot, and cheers!

-- 
Ivan Vilata i Balaguer -- https://elvil.net/