Open slonik-az opened 2 years ago
Last commit should fix the
-wpanic turns this warning into a panic: Openat: O_NOFOLLOW missing: flags = 0x4
which are most of the failures
No luck so far. Compiled the latest master (bd1ecf5) without openSSL as before. Running tests produces failures and also it hangs. I had to kill the process after 3 minutes gocryptfs spinning the wheels.
The output from my test session (terminated by ^C after 3 minutes wait): test.log
Can you try
./test-without-openssl.bash -v
?
Reran tests with
./test-without-openssl.bash -v
as you suggested. It hangs as before. After waiting few minutes watching nothing happening I killed the job with ^C
. Here is the captured output:
test-v.log
Hope it helps.
Can you try
./test-without-openssl.bash -v
?
These tests also fail for me. Additionally the tests create files with multiple hundreds of GB in size:
/private/var/folders/_x/5t9ddfn94s9cx9ln43smhrw80000gn/T/gocryptfs-test-parent-501/3692329624
❯ du -d 1 -h | sort -h
0 ./TestCtlSock.2606075678.mnt
0 ./TestCtlSockDecrypt.3361523765.mnt
0 ./TestCtlSockDecryptCrash.2334803329.mnt
8.0K ./TestCtlSock.2606075678
8.0K ./TestCtlSockDecrypt.3361523765
8.0K ./TestCtlSockDecryptCrash.2334803329
350G ./default-plain
353G ./default-cipher
703G .
/private/var/folders/_x/5t9ddfn94s9cx9ln43smhrw80000gn/T/gocryptfs-test-parent-501/3692329624
❯ ls -lha default-plain
total 350G
drwxr-xr-x 13 marcel staff 416 Dec 24 13:34 .
drwxr-xr-x 13 marcel staff 416 Dec 24 13:34 ..
drwx------ 4 marcel staff 128 Dec 24 13:34 TestDirIVRace_Dir2
-rw-r--r-- 1 marcel staff 0 Jan 2 1980 1980.txt
-rw------- 1 marcel staff 3 Dec 24 13:34 TestCpWarnings
-rw------- 1 marcel staff 0 Dec 24 13:34 TestMvWarnings
-rw-r--r-- 1 marcel staff 350G Dec 24 13:39 TestSeekData
-rw-r--r-- 1 marcel staff 3 Dec 24 13:52 TestTruncateWrite
-rw------- 1 marcel staff 0 Dec 24 13:34 TestWORead
--w------- 1 marcel staff 10 Dec 24 13:34 TestWrite0200File
-rw------- 1 marcel staff 0 Dec 24 13:34 TestXattrOverflow
-rw-r--r-- 1 marcel staff 10 Dec 24 13:34 TestXfs124
Confirming that running the test on Apple Silicon creates huge files > 300GB in size. Had to kill the process when 50% of my SSD got filled.
TestSeekData tries to create a 1 TiB sparse file, but because it's sparse, it should only take up a few kiB. Looks like this does not work here. On the other hand, maybe the tests are not really hanging, but still in the procress of writing 1 TiB of data?
Can you try again? I have now
(1) improved the output of test.bash -v
so we should see where it hangs (if it hangs)
(2) Limited TestSeekData
to 1 GiB to not fill up the disk when sparse files don't work
It does not hang anymore.
Results:
With -v
:
Opening a new issue since #623 has been already closed. The commit a48d6c3 fixed the tests breakage, so that the tests can run. But unfortunately, quite a few of them still fail. Moreover, the test suite leaves behind several dozens of test directories mounted as gocryptfs file systems. I had to reboot the machine to cleanup the mess. Here are the details.
Setup
Build
Compiling latest master (hash=a48d6c3...) with
completes OK and without errors.
Test
results in multiple test failures. Here is the output:
test.log