Closed mattchrist closed 5 months ago
Haven't seen this one before.
Just to double check: verify that /var/lib/s3backer/cache/backup
is not somehow symlinked into /var/lib/s3backer/backup
and getting covered up by the mount.
Random thing to try: edit dcache.c
line 160 and change USE_FALLOCATE
from 1
to 0
.
Thanks for the response! I can confirm that /var/lib/s3backer/cache/backup
is not symlinked into /var/lib/s3backer/backup
.
I plan to replicate the issue with unimportant data later today, if i can I'll try with your dcache.c recommendation and report back.
Ok, I'm able to reliably recreate the segfault issue.
Steps to reproduce:
zpool trim
on the poolI wasn't able to reproduce with --test
, so the segfault issue may also rely on having dirty blocks when the trim is issued.
Opening the coredump with gdb:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 s3b_dcache_count_zero_fs_blocks (priv=<optimized out>, len=774144,
src=0x10000 <error: Cannot access memory at address 0x10000>) at dcache.c:687
687 if (word_ptr[i] != 0)
[Current thread is 1 (Thread 0x7f145edd06c0 (LWP 1610003))]
I can also confirm that the issue does not occur with USE_FALLOCATE=0.
Thanks for the detective work. I'll take a look.
Should be fixed in 5cfc652. Thanks for the hint!
@archiecobbs Hello! Any chance you can make a new minor release? I don't mean to pester, and would fully understand if this is not in your plans. But a couple of potentially important bugs have been fixed, and building depending on ndb got better, and a new release would simplify packaging :-)
Sure, no problem - done.
great, thank you!
Hello! I'm experiencing issues with release 2.1.2 of s3backer. I'm using an s3backer-backed file as a zfs pool, and replicating local datasets to the s3backer pool using syncoid.
Since updating from 2.0.2 to 2.1.2, I get errors and segfaults. I've downgraded to 2.0.2 and the issues no longer occur.
Log entries:
configFile:
I'll try and reproduce/bisect in a more detailed way later, but figured it was important to get an issue started.