View Issue Details

IDProjectCategoryView StatusLast Update
0001547bareos-coredirectorpublic2023-08-31 09:52
Reporterpreussal Assigned Tobruno-at-bareos  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
OSUbuntu 20.04.6 LTSOS Version20.04.6 LTS 
Product Version22.1.0 
Summary0001547: bareos-dbcheck Segmentation fault
DescriptionHallo,

ich bekomme immer einen Segmentation fault wenn ich beim bareos-dbcheck die option 12) Check for orphaned storage records auswähle
##
su -s /bin/bash - bareos -c "/usr/sbin/bareos-dbcheck /etc/bareos/ -h"
The Bareos Database Checker.

Bareos community build (UNSUPPORTED).
Get professional support from https://www.bareos.com
Copyright (C) 2013-2023 Bareos GmbH & Co. KG
Copyright (C) 2002-2012 Free Software Foundation Europe e.V.
Copyright (C) 2010-2017 Planets Communications B.V.

Version: 22.1.1~pre26.eeec2501e (18 July 2023) Ubuntu 20.04.5 LTS
###


su -s /bin/bash - bareos -c "/usr/sbin/bareos-dbcheck /etc/bareos/ -f"
Hello, this is the Bareos database check/correct program.
Modify database is on. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 12
Checking for orphaned Storage entries.
Segmentation fault

Das gleiche bekomme ich auch wenn ich es als Batch prozess laufen lasse.
su -s /bin/bash - bareos -c "/usr/sbin/bareos-dbcheck /etc/bareos/ -bf"

Steps To Reproducesu -s /bin/bash - bareos -c "/usr/sbin/bareos-dbcheck /etc/bareos/ -f"
option 12
Additional InformationHier noch einen strace. ganz unten bei read(0, 12 kommt dann der fehler

su -s /bin/bash - bareos -c "strace /usr/sbin/bareos-dbcheck /etc/bareos/ -f"
execve("/usr/sbin/bareos-dbcheck", ["/usr/sbin/bareos-dbcheck", "/etc/bareos/", "-f"], 0x7ffc6423c580 /* 11 vars */) = 0
brk(NULL) = 0x5631cf039000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc79b9d030) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/bareos/tls/haswell/x86_64/libbareossql.so.22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/bareos/tls/haswell/x86_64", 0x7ffc79b9c280) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/bareos/tls/haswell/libbareossql.so.22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/bareos/tls/haswell", 0x7ffc79b9c280) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/bareos/tls/x86_64/libbareossql.so.22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/bareos/tls/x86_64", 0x7ffc79b9c280) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/bareos/tls/libbareossql.so.22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/bareos/tls", 0x7ffc79b9c280) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/bareos/haswell/x86_64/libbareossql.so.22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/bareos/haswell/x86_64", 0x7ffc79b9c280) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/bareos/haswell/libbareossql.so.22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/bareos/haswell", 0x7ffc79b9c280) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/bareos/x86_64/libbareossql.so.22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/bareos/x86_64", 0x7ffc79b9c280) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/bareos/libbareossql.so.22", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\234\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=204504, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0b716d000
mmap(NULL, 206344, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b713a000
mmap(0x7ff0b7143000, 102400, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x7ff0b7143000
mmap(0x7ff0b715c000, 61440, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7ff0b715c000
mmap(0x7ff0b716b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x30000) = 0x7ff0b716b000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libbareosfind.so.22", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`M\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=89168, ...}) = 0
mmap(NULL, 91136, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b7123000
mmap(0x7ff0b7127000, 49152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b7127000
mmap(0x7ff0b7133000, 20480, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x7ff0b7133000
mmap(0x7ff0b7138000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7ff0b7138000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32437, ...}) = 0
mmap(NULL, 32437, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff0b711b000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\220\7\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=2954080, ...}) = 0
mmap(NULL, 2973600, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6e45000
mmap(0x7ff0b6ebd000, 1683456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x78000) = 0x7ff0b6ebd000
mmap(0x7ff0b7058000, 593920, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x213000) = 0x7ff0b7058000
mmap(0x7ff0b70e9000, 188416, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2a3000) = 0x7ff0b70e9000
mmap(0x7ff0b7117000, 16288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b7117000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libbareoscats.so.22", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 $\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=23080, ...}) = 0
mmap(NULL, 25040, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6e3e000
mmap(0x7ff0b6e40000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b6e40000
mmap(0x7ff0b6e42000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b6e42000
mmap(0x7ff0b6e43000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b6e43000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libbareos.so.22", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2409\4\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1181368, ...}) = 0
mmap(NULL, 1190872, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6d1b000
mprotect(0x7ff0b6d5b000, 901120, PROT_NONE) = 0
mmap(0x7ff0b6d5b000, 688128, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x40000) = 0x7ff0b6d5b000
mmap(0x7ff0b6e03000, 208896, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe8000) = 0x7ff0b6e03000
mmap(0x7ff0b6e37000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11b000) = 0x7ff0b6e37000
mmap(0x7ff0b6e3c000, 7128, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b6e3c000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libjansson.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libjansson.so.4", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\"\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=55608, ...}) = 0
mmap(NULL, 57696, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6d0c000
mmap(0x7ff0b6d0e000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b6d0e000
mmap(0x7ff0b6d16000, 12288, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7ff0b6d16000
mmap(0x7ff0b6d19000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x7ff0b6d19000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\341\t\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1956992, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0b6d0a000
mmap(NULL, 1972224, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6b28000
mprotect(0x7ff0b6bbe000, 1290240, PROT_NONE) = 0
mmap(0x7ff0b6bbe000, 987136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x96000) = 0x7ff0b6bbe000
mmap(0x7ff0b6caf000, 299008, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x187000) = 0x7ff0b6caf000
mmap(0x7ff0b6cf9000, 57344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d0000) = 0x7ff0b6cf9000
mmap(0x7ff0b6d07000, 10240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b6d07000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3405\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=104984, ...}) = 0
mmap(NULL, 107592, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6b0d000
mmap(0x7ff0b6b10000, 73728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b6b10000
mmap(0x7ff0b6b22000, 16384, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7ff0b6b22000
mmap(0x7ff0b6b26000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7ff0b6b26000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300A\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\30x\346\264ur\f|Q\226\236i\253-'o"..., 68, 880) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=2029592, ...}) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\30x\346\264ur\f|Q\226\236i\253-'o"..., 68, 880) = 68
mmap(NULL, 2037344, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b691b000
mmap(0x7ff0b693d000, 1540096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7ff0b693d000
mmap(0x7ff0b6ab5000, 319488, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19a000) = 0x7ff0b6ab5000
mmap(0x7ff0b6b03000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7ff0b6b03000
mmap(0x7ff0b6b09000, 13920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b6b09000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libacl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libacl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360$\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=39088, ...}) = 0
mmap(NULL, 41120, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6910000
mmap(0x7ff0b6912000, 20480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b6912000
mmap(0x7ff0b6917000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7ff0b6917000
mmap(0x7ff0b6919000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7ff0b6919000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \22\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=18848, ...}) = 0
mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b690a000
mmap(0x7ff0b690b000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7ff0b690b000
mmap(0x7ff0b690d000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b690d000
mmap(0x7ff0b690e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b690e000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220q\0\0\0\0\0\0"..., 832) = 832
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0{E6\364\34\332\245\210\204\10\350-\0106\343="..., 68, 824) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=157224, ...}) = 0
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0{E6\364\34\332\245\210\204\10\350-\0106\343="..., 68, 824) = 68
mmap(NULL, 140408, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b68e7000
mmap(0x7ff0b68ed000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7ff0b68ed000
mmap(0x7ff0b68fe000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7ff0b68fe000
mmap(0x7ff0b6904000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7ff0b6904000
mmap(0x7ff0b6906000, 13432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b6906000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libbareosfastlz.so.22", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`!\0\0\0\0\0\0"..., 832) = 832
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0b68e5000
fstat(3, {st_mode=S_IFREG|0644, st_size=59552, ...}) = 0
mmap(NULL, 61552, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b68d5000
mmap(0x7ff0b68d7000, 40960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b68d7000
mmap(0x7ff0b68e1000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x7ff0b68e1000
mmap(0x7ff0b68e3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x7ff0b68e3000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\367\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=597952, ...}) = 0
mmap(NULL, 600368, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6842000
mprotect(0x7ff0b685e000, 434176, PROT_NONE) = 0
mmap(0x7ff0b685e000, 323584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7ff0b685e000
mmap(0x7ff0b68ad000, 106496, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6b000) = 0x7ff0b68ad000
mmap(0x7ff0b68c8000, 53248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x85000) = 0x7ff0b68c8000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\"\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=108936, ...}) = 0
mmap(NULL, 110776, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6826000
mprotect(0x7ff0b6828000, 98304, PROT_NONE) = 0
mmap(0x7ff0b6828000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b6828000
mmap(0x7ff0b6839000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13000) = 0x7ff0b6839000
mmap(0x7ff0b6840000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x7ff0b6840000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/bareos/liblzo2.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/liblzo2.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3400\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=145480, ...}) = 0
mmap(NULL, 147472, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6801000
mprotect(0x7ff0b6804000, 131072, PROT_NONE) = 0
mmap(0x7ff0b6804000, 114688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b6804000
mmap(0x7ff0b6820000, 12288, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f000) = 0x7ff0b6820000
mmap(0x7ff0b6824000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7ff0b6824000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\323\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1369384, ...}) = 0
mmap(NULL, 1368336, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b66b2000
mmap(0x7ff0b66bf000, 684032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x7ff0b66bf000
mmap(0x7ff0b6766000, 626688, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb4000) = 0x7ff0b6766000
mmap(0x7ff0b67ff000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14c000) = 0x7ff0b67ff000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0b66b0000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0b66ae000
arch_prctl(ARCH_SET_FS, 0x7ff0b66aeb80) = 0
mprotect(0x7ff0b6b03000, 16384, PROT_READ) = 0
mprotect(0x7ff0b67ff000, 4096, PROT_READ) = 0
mprotect(0x7ff0b6824000, 4096, PROT_READ) = 0
mprotect(0x7ff0b6840000, 4096, PROT_READ) = 0
mprotect(0x7ff0b690e000, 4096, PROT_READ) = 0
mprotect(0x7ff0b6904000, 4096, PROT_READ) = 0
mprotect(0x7ff0b70e9000, 180224, PROT_READ) = 0
mprotect(0x7ff0b68c8000, 36864, PROT_READ) = 0
mprotect(0x7ff0b68e3000, 4096, PROT_READ) = 0
mprotect(0x7ff0b6919000, 4096, PROT_READ) = 0
mprotect(0x7ff0b6b26000, 4096, PROT_READ) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0b66ac000
mprotect(0x7ff0b6cf9000, 45056, PROT_READ) = 0
mprotect(0x7ff0b6d19000, 4096, PROT_READ) = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0b66a9000
mprotect(0x7ff0b6e37000, 12288, PROT_READ) = 0
mprotect(0x7ff0b6e43000, 4096, PROT_READ) = 0
mprotect(0x7ff0b7138000, 4096, PROT_READ) = 0
mprotect(0x7ff0b716b000, 4096, PROT_READ) = 0
mprotect(0x5631cdbe3000, 12288, PROT_READ) = 0
mprotect(0x7ff0b719c000, 4096, PROT_READ) = 0
munmap(0x7ff0b711b000, 32437) = 0
set_tid_address(0x7ff0b66aee50) = 3391459
set_robust_list(0x7ff0b66aee60, 24) = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7ff0b68edbf0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7ff0b68fb420}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7ff0b68edc90, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7ff0b68fb420}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(NULL) = 0x5631cf039000
brk(0x5631cf05a000) = 0x5631cf05a000
futex(0x7ff0b6d076bc, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7ff0b6d076c8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=3381152, ...}) = 0
mmap(NULL, 3381152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff0b636f000
close(3) = 0
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2326, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=2326, ...}) = 0
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\t\0\0\0\t\0\0\0\0"..., 4096) = 2326
lseek(3, -1467, SEEK_CUR) = 859
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\t\0\0\0\t\0\0\0\0"..., 4096) = 1467
close(3) = 0
uname({sysname="Linux", nodename="bareos-dir", ...}) = 0
futex(0x7ff0b6e3d6b4, FUTEX_WAKE_PRIVATE, 2147483647) = 0
stat("/usr/lib/bareos/backends/libbareoscats-postgresql.so", {st_mode=S_IFREG|0644, st_size=77544, ...}) = 0
futex(0x7ff0b690f0c8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
openat(AT_FDCWD, "/usr/lib/bareos/backends/libbareoscats-postgresql.so", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`K\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=77544, ...}) = 0
mmap(NULL, 79504, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b635b000
mmap(0x7ff0b635f000, 24576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b635f000
mmap(0x7ff0b6365000, 32768, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7ff0b6365000
mmap(0x7ff0b636d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0x7ff0b636d000
close(3) = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32437, ...}) = 0
mmap(NULL, 32437, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff0b711b000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libpq.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\272\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=321672, ...}) = 0
mmap(NULL, 324160, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b630b000
mmap(0x7ff0b6315000, 143360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7ff0b6315000
mmap(0x7ff0b6338000, 126976, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2d000) = 0x7ff0b6338000
mmap(0x7ff0b6357000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4b000) = 0x7ff0b6357000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\321\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=309712, ...}) = 0
mmap(NULL, 312128, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b62be000
mmap(0x7ff0b62c9000, 204800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7ff0b62c9000
mmap(0x7ff0b62fb000, 49152, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3d000) = 0x7ff0b62fb000
mmap(0x7ff0b6307000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x48000) = 0x7ff0b6307000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\356\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=339472, ...}) = 0
mmap(NULL, 351048, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6268000
mprotect(0x7ff0b6275000, 278528, PROT_NONE) = 0
mmap(0x7ff0b6275000, 212992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x7ff0b6275000
mmap(0x7ff0b62a9000, 61440, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x41000) = 0x7ff0b62a9000
mmap(0x7ff0b62b9000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x50000) = 0x7ff0b62b9000
mmap(0x7ff0b62bc000, 6984, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b62bc000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libkrb5.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 ?\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=902016, ...}) = 0
mmap(NULL, 904640, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b618b000
mprotect(0x7ff0b61ad000, 700416, PROT_NONE) = 0
mmap(0x7ff0b61ad000, 397312, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7ff0b61ad000
mmap(0x7ff0b620e000, 299008, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x83000) = 0x7ff0b620e000
mmap(0x7ff0b6258000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xcc000) = 0x7ff0b6258000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libk5crypto.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240D\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=191040, ...}) = 0
mmap(NULL, 196696, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b615a000
mprotect(0x7ff0b615e000, 172032, PROT_NONE) = 0
mmap(0x7ff0b615e000, 114688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b615e000
mmap(0x7ff0b617a000, 53248, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x7ff0b617a000
mmap(0x7ff0b6188000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2d000) = 0x7ff0b6188000
mmap(0x7ff0b618a000, 88, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b618a000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcom_err.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200$\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=22600, ...}) = 0
mmap(NULL, 24744, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6153000
mmap(0x7ff0b6155000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b6155000
mmap(0x7ff0b6157000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b6157000
mmap(0x7ff0b6158000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b6158000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libkrb5support.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3605\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=56096, ...}) = 0
mmap(NULL, 58344, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6144000
mmap(0x7ff0b6147000, 28672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b6147000
mmap(0x7ff0b614e000, 12288, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7ff0b614e000
mmap(0x7ff0b6151000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x7ff0b6151000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3003\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=63888, ...}) = 0
mmap(NULL, 66024, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6133000
mprotect(0x7ff0b6136000, 49152, PROT_NONE) = 0
mmap(0x7ff0b6136000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b6136000
mmap(0x7ff0b613e000, 12288, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7ff0b613e000
mmap(0x7ff0b6142000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x7ff0b6142000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 G\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=101352, ...}) = 0
mmap(NULL, 113280, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b6117000
mmap(0x7ff0b611b000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b611b000
mmap(0x7ff0b612b000, 16384, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7ff0b612b000
mmap(0x7ff0b612f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7ff0b612f000
mmap(0x7ff0b6131000, 6784, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b6131000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libsasl2.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2008\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=113552, ...}) = 0
mmap(NULL, 115688, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b60fa000
mmap(0x7ff0b60fd000, 73728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b60fd000
mmap(0x7ff0b610f000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7ff0b610f000
mmap(0x7ff0b6115000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7ff0b6115000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libgssapi.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \367\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=278160, ...}) = 0
mmap(NULL, 280472, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b60b5000
mmap(0x7ff0b60c2000, 167936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x7ff0b60c2000
mmap(0x7ff0b60eb000, 45056, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x36000) = 0x7ff0b60eb000
mmap(0x7ff0b60f6000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x40000) = 0x7ff0b60f6000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\4\3\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1914336, ...}) = 0
mmap(NULL, 1922664, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5edf000
mprotect(0x7ff0b5f0e000, 1654784, PROT_NONE) = 0
mmap(0x7ff0b5f0e000, 1187840, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2f000) = 0x7ff0b5f0e000
mmap(0x7ff0b6030000, 462848, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x151000) = 0x7ff0b6030000
mmap(0x7ff0b60a2000, 69632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c2000) = 0x7ff0b60a2000
mmap(0x7ff0b60b3000, 5736, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b60b3000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libkeyutils.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\"\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=22600, ...}) = 0
mmap(NULL, 24592, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5ed8000
mmap(0x7ff0b5eda000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b5eda000
mmap(0x7ff0b5edc000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b5edc000
mmap(0x7ff0b5edd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b5edd000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libheimntlm.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`6\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=43712, ...}) = 0
mmap(NULL, 45648, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5ecc000
mprotect(0x7ff0b5ecf000, 28672, PROT_NONE) = 0
mmap(0x7ff0b5ecf000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b5ecf000
mmap(0x7ff0b5ed3000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7ff0b5ed3000
mmap(0x7ff0b5ed6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x7ff0b5ed6000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libkrb5.so.26", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\363\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=594104, ...}) = 0
mmap(NULL, 598928, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5e39000
mmap(0x7ff0b5e54000, 331776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7ff0b5e54000
mmap(0x7ff0b5ea5000, 131072, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6c000) = 0x7ff0b5ea5000
mmap(0x7ff0b5ec5000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8b000) = 0x7ff0b5ec5000
mmap(0x7ff0b5ecb000, 912, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b5ecb000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libasn1.so.8", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\243\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=674144, ...}) = 0
mmap(NULL, 676080, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5d93000
mprotect(0x7ff0b5dad000, 557056, PROT_NONE) = 0
mmap(0x7ff0b5dad000, 434176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7ff0b5dad000
mmap(0x7ff0b5e17000, 118784, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x84000) = 0x7ff0b5e17000
mmap(0x7ff0b5e35000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa1000) = 0x7ff0b5e35000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libhcrypto.so.4", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 z\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=221816, ...}) = 0
mmap(NULL, 227944, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5d5b000
mmap(0x7ff0b5d62000, 126976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7ff0b5d62000
mmap(0x7ff0b5d81000, 57344, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7ff0b5d81000
mmap(0x7ff0b5d8f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x33000) = 0x7ff0b5d8f000
mmap(0x7ff0b5d92000, 2664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b5d92000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libroken.so.18", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200`\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=97024, ...}) = 0
mmap(NULL, 99376, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5d42000
mprotect(0x7ff0b5d47000, 73728, PROT_NONE) = 0
mmap(0x7ff0b5d47000, 53248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7ff0b5d47000
mmap(0x7ff0b5d54000, 16384, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0x7ff0b5d54000
mmap(0x7ff0b5d59000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7ff0b5d59000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libp11-kit.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\273\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1265624, ...}) = 0
brk(0x5631cf07b000) = 0x5631cf07b000
mmap(NULL, 1268992, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5c0c000
mmap(0x7ff0b5c37000, 630784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2b000) = 0x7ff0b5c37000
mmap(0x7ff0b5cd1000, 376832, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc5000) = 0x7ff0b5cd1000
mmap(0x7ff0b5d2d000, 86016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x120000) = 0x7ff0b5d2d000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libidn2.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240$\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=129096, ...}) = 0
mmap(NULL, 131096, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5beb000
mprotect(0x7ff0b5bed000, 118784, PROT_NONE) = 0
mmap(0x7ff0b5bed000, 20480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b5bed000
mmap(0x7ff0b5bf2000, 94208, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7ff0b5bf2000
mmap(0x7ff0b5c0a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7ff0b5c0a000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libunistring.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\10\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1575112, ...}) = 0
mmap(NULL, 1579272, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5a69000
mprotect(0x7ff0b5a79000, 1499136, PROT_NONE) = 0
mmap(0x7ff0b5a79000, 221184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x7ff0b5a79000
mmap(0x7ff0b5aaf000, 1273856, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x46000) = 0x7ff0b5aaf000
mmap(0x7ff0b5be7000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17d000) = 0x7ff0b5be7000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libtasn1.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2404\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=84120, ...}) = 0
mmap(NULL, 86568, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5a53000
mprotect(0x7ff0b5a56000, 69632, PROT_NONE) = 0
mmap(0x7ff0b5a56000, 49152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b5a56000
mmap(0x7ff0b5a62000, 16384, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7ff0b5a62000
mmap(0x7ff0b5a67000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13000) = 0x7ff0b5a67000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libnettle.so.7", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\220\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=231592, ...}) = 0
mmap(NULL, 233592, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5a19000
mmap(0x7ff0b5a22000, 122880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x7ff0b5a22000
mmap(0x7ff0b5a40000, 65536, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x27000) = 0x7ff0b5a40000
mmap(0x7ff0b5a50000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x36000) = 0x7ff0b5a50000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libhogweed.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 v\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=219976, ...}) = 0
mmap(NULL, 221976, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b59e2000
mmap(0x7ff0b59e9000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7ff0b59e9000
mmap(0x7ff0b59f9000, 122880, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7ff0b59f9000
mmap(0x7ff0b5a17000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x34000) = 0x7ff0b5a17000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libgmp.so.10", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\242\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=534880, ...}) = 0
mmap(NULL, 537024, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b595e000
mprotect(0x7ff0b5968000, 491520, PROT_NONE) = 0
mmap(0x7ff0b5968000, 393216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7ff0b5968000
mmap(0x7ff0b59c8000, 94208, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6a000) = 0x7ff0b59c8000
mmap(0x7ff0b59e0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x81000) = 0x7ff0b59e0000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libwind.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\21\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=166040, ...}) = 0
mmap(NULL, 167984, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5934000
mmap(0x7ff0b5935000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7ff0b5935000
mmap(0x7ff0b5937000, 151552, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b5937000
mmap(0x7ff0b595c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x27000) = 0x7ff0b595c000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libheimbase.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3605\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=68752, ...}) = 0
mmap(NULL, 71896, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5922000
mmap(0x7ff0b5925000, 36864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b5925000
mmap(0x7ff0b592e000, 16384, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x7ff0b592e000
mmap(0x7ff0b5932000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7ff0b5932000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libhx509.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340/\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=313336, ...}) = 0
mmap(NULL, 316456, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b58d4000
mmap(0x7ff0b58e4000, 167936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x7ff0b58e4000
mmap(0x7ff0b590d000, 65536, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x39000) = 0x7ff0b590d000
mmap(0x7ff0b591d000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x48000) = 0x7ff0b591d000
mmap(0x7ff0b5921000, 1064, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b5921000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\346\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1212216, ...}) = 0
mmap(NULL, 1216056, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b57ab000
mprotect(0x7ff0b57b9000, 1134592, PROT_NONE) = 0
mmap(0x7ff0b57b9000, 917504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x7ff0b57b9000
mmap(0x7ff0b5899000, 212992, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xee000) = 0x7ff0b5899000
mmap(0x7ff0b58ce000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x122000) = 0x7ff0b58ce000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@ \0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=202760, ...}) = 0
mmap(NULL, 238280, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5770000
mmap(0x7ff0b5772000, 86016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b5772000
mmap(0x7ff0b5787000, 106496, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7ff0b5787000
mmap(0x7ff0b57a1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x30000) = 0x7ff0b57a1000
mmap(0x7ff0b57a3000, 29384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b57a3000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libffi.so.7", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\"\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=43416, ...}) = 0
mmap(NULL, 46632, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5764000
mprotect(0x7ff0b5766000, 32768, PROT_NONE) = 0
mmap(0x7ff0b5766000, 24576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b5766000
mmap(0x7ff0b576c000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7ff0b576c000
mmap(0x7ff0b576e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x7ff0b576e000
close(3) = 0
mprotect(0x7ff0b576e000, 4096, PROT_READ) = 0
mprotect(0x7ff0b57a1000, 4096, PROT_READ) = 0
mprotect(0x7ff0b58ce000, 12288, PROT_READ) = 0
mprotect(0x7ff0b6158000, 4096, PROT_READ) = 0
mprotect(0x7ff0b612f000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5d59000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5e35000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5932000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5d8f000, 8192, PROT_READ) = 0
mprotect(0x7ff0b595c000, 4096, PROT_READ) = 0
mprotect(0x7ff0b591d000, 12288, PROT_READ) = 0
mprotect(0x7ff0b59e0000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5a50000, 8192, PROT_READ) = 0
mprotect(0x7ff0b5a17000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5a67000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5be7000, 12288, PROT_READ) = 0
mprotect(0x7ff0b5c0a000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5d2d000, 45056, PROT_READ) = 0
mprotect(0x7ff0b5ec5000, 16384, PROT_READ) = 0
mprotect(0x7ff0b5ed6000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5edd000, 4096, PROT_READ) = 0
mprotect(0x7ff0b60a2000, 61440, PROT_READ) = 0
mprotect(0x7ff0b60f6000, 8192, PROT_READ) = 0
mprotect(0x7ff0b6115000, 4096, PROT_READ) = 0
mprotect(0x7ff0b6142000, 4096, PROT_READ) = 0
mprotect(0x7ff0b6151000, 4096, PROT_READ) = 0
mprotect(0x7ff0b6188000, 4096, PROT_READ) = 0
mprotect(0x7ff0b6258000, 57344, PROT_READ) = 0
mprotect(0x7ff0b62b9000, 8192, PROT_READ) = 0
mprotect(0x7ff0b6307000, 8192, PROT_READ) = 0
mprotect(0x7ff0b6357000, 12288, PROT_READ) = 0
mprotect(0x7ff0b636d000, 4096, PROT_READ) = 0
brk(0x5631cf09c000) = 0x5631cf09c000
getrandom("\x8a", 1, GRND_NONBLOCK) = 1
stat("/etc/gnutls/config", 0x7ffc79b9bfe0) = -1 ENOENT (No such file or directory)
munmap(0x7ff0b711b000, 32437) = 0
geteuid() = 110
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=513, ...}) = 0
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 513
read(3, "", 4096) = 0
close(3) = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32437, ...}) = 0
mmap(NULL, 32437, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff0b711b000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0$\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=43992, ...}) = 0
mmap(NULL, 47264, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5758000
mmap(0x7ff0b575a000, 28672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b575a000
mmap(0x7ff0b5761000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x7ff0b5761000
mmap(0x7ff0b5762000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x7ff0b5762000
close(3) = 0
mprotect(0x7ff0b5762000, 4096, PROT_READ) = 0
munmap(0x7ff0b711b000, 32437) = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32437, ...}) = 0
mmap(NULL, 32437, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff0b711b000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200%\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=51856, ...}) = 0
mmap(NULL, 54664, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b574a000
mmap(0x7ff0b574c000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ff0b574c000
mmap(0x7ff0b5754000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7ff0b5754000
mmap(0x7ff0b5756000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7ff0b5756000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 M\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=105560, ...}) = 0
mmap(NULL, 117336, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b572d000
mmap(0x7ff0b5731000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7ff0b5731000
mmap(0x7ff0b5741000, 20480, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7ff0b5741000
mmap(0x7ff0b5746000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7ff0b5746000
mmap(0x7ff0b5748000, 6744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b5748000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3005\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=51856, ...}) = 0
mmap(NULL, 79672, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0b5719000
mmap(0x7ff0b571c000, 28672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0b571c000
mmap(0x7ff0b5723000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7ff0b5723000
mmap(0x7ff0b5725000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7ff0b5725000
mmap(0x7ff0b5727000, 22328, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0b5727000
close(3) = 0
mprotect(0x7ff0b5725000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5746000, 4096, PROT_READ) = 0
mprotect(0x7ff0b5756000, 4096, PROT_READ) = 0
munmap(0x7ff0b711b000, 32437) = 0
openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
lseek(3, 0, SEEK_CUR) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=1975, ...}) = 0
mmap(NULL, 1975, PROT_READ, MAP_SHARED, 3, 0) = 0x7ff0b719b000
lseek(3, 1975, SEEK_SET) = 1975
munmap(0x7ff0b719b000, 1975) = 0
close(3) = 0
geteuid() = 110
openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
lseek(3, 0, SEEK_CUR) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=1975, ...}) = 0
mmap(NULL, 1975, PROT_READ, MAP_SHARED, 3, 0) = 0x7ff0b719b000
lseek(3, 1975, SEEK_SET) = 1975
munmap(0x7ff0b719b000, 1975) = 0
close(3) = 0
stat("/var/lib/bareos/.pgpass", 0x7ffc79b9c470) = -1 ENOENT (No such file or directory)
socket(AF_UNIX, SOCK_STREAM, 0) = 3
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/postgresql/.s.PGSQL.5432"}, 110) = 0
getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
getsockname(3, {sa_family=AF_UNIX}, [128->2]) = 0
poll([{fd=3, events=POLLOUT|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\0\0\0%\0\3\0\0user\0bareos\0database\0bar"..., 37, MSG_NOSIGNAL, NULL, 0) = 37
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "R\0\0\0\10\0\0\0\0S\0\0\0\26application_name\0\0"..., 16384, 0, NULL, NULL) = 369
sendto(3, "Q\0\0\0\"SELECT VersionId FROM Versi"..., 35, MSG_NOSIGNAL, NULL, 0) = 35
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "T\0\0\0\"\0\1versionid\0\0\0AI\0\1\0\0\0\27\0\4\377\377\377"..., 16384, 0, NULL, NULL) = 70
sendto(3, "Q\0\0\0 SET datestyle TO 'ISO, YMD'"..., 33, MSG_NOSIGNAL, NULL, 0) = 33
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "S\0\0\0\27DateStyle\0ISO, YMD\0C\0\0\0\10SET"..., 16384, 0, NULL, NULL) = 39
sendto(3, "Q\0\0\0 SET cursor_tuple_fraction=1"..., 33, MSG_NOSIGNAL, NULL, 0) = 33
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "C\0\0\0\10SET\0Z\0\0\0\5I", 16384, 0, NULL, NULL) = 15
sendto(3, "Q\0\0\0'SET standard_conforming_str"..., 40, MSG_NOSIGNAL, NULL, 0) = 40
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "S\0\0\0#standard_conforming_strings"..., 16384, 0, NULL, NULL) = 51
sendto(3, "Q\0\0\0!SELECT getdatabaseencoding("..., 34, MSG_NOSIGNAL, NULL, 0) = 34
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "T\0\0\0,\0\1getdatabaseencoding\0\0\0\0\0\0"..., 16384, 0, NULL, NULL) = 85
sendto(3, "Q\0\0\0'SET client_encoding TO 'SQL"..., 40, MSG_NOSIGNAL, NULL, 0) = 40
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "S\0\0\0\36client_encoding\0SQL_ASCII\0C"..., 16384, 0, NULL, NULL) = 46
getcwd("/var/lib/bareos", 4096) = 16
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2996, ...}) = 0
read(4, "# Locale name alias data base.\n#"..., 4096) = 2996
read(4, "", 4096) = 0
close(4) = 0
openat(AT_FDCWD, "/var/lib/bareos/share/locale/en_US.UTF-8/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/var/lib/bareos/share/locale/en_US.utf8/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/var/lib/bareos/share/locale/en_US/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/var/lib/bareos/share/locale/en.UTF-8/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/var/lib/bareos/share/locale/en.utf8/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/var/lib/bareos/share/locale/en/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en_US/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en.utf8/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en/LC_MESSAGES/bareos.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x2), ...}) = 0
write(1, "Hello, this is the Bareos databa"..., 58Hello, this is the Bareos database check/correct program.
) = 58
getcwd("/var/lib/bareos", 4096) = 16
getcwd("/var/lib/bareos", 4096) = 16
write(1, "Modify database is on. Verbose i"..., 39Modify database is on. Verbose is off.
) = 39
getcwd("/var/lib/bareos", 4096) = 16
write(1, "Please select the function you w"..., 48Please select the function you want to perform.
) = 48
write(1, " 0) Quit\n", 13 0) Quit
) = 13
write(1, " 1) Toggle modify database f"..., 36 1) Toggle modify database flag
) = 36
write(1, " 2) Toggle verbose flag\n", 28 2) Toggle verbose flag
) = 28
write(1, " 3) Check for bad Filename r"..., 39 3) Check for bad Filename records
) = 39
write(1, " 4) Check for bad Path recor"..., 35 4) Check for bad Path records
) = 35
write(1, " 5) Check for duplicate Path"..., 41 5) Check for duplicate Path records
) = 41
write(1, " 6) Check for orphaned Jobme"..., 44 6) Check for orphaned Jobmedia records
) = 44
write(1, " 7) Check for orphaned File "..., 40 7) Check for orphaned File records
) = 40
write(1, " 8) Check for orphaned Path "..., 40 8) Check for orphaned Path records
) = 40
write(1, " 9) Check for orphaned FileS"..., 43 9) Check for orphaned FileSet records
) = 43
write(1, " 10) Check for orphaned Clien"..., 42 10) Check for orphaned Client records
) = 42
write(1, " 11) Check for orphaned Job r"..., 39 11) Check for orphaned Job records
) = 39
write(1, " 12) Check for orphaned stora"..., 43 12) Check for orphaned storage records
) = 43
write(1, " 13) Check for all Admin reco"..., 36 13) Check for all Admin records
) = 36
write(1, " 14) Check for all Restore re"..., 38 14) Check for all Restore records
) = 38
write(1, " 15) Run ALL checks\n", 23 15) Run ALL checks
) = 23
getcwd("/var/lib/bareos", 4096) = 16
write(1, "Select function number: ", 24Select function number: ) = 24
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x2), ...}) = 0
read(0, 12
"12\n", 1024) = 3
getcwd("/var/lib/bareos", 4096) = 16
write(1, "Checking for orphaned Storage en"..., 39Checking for orphaned Storage entries.
) = 39
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x68} ---
+++ killed by SIGSEGV +++
Segmentation fault
Tagscrash

Activities

preussal

preussal

2023-07-20 11:52

reporter   ~0005237

sudo apt-show-versions |grep bareos

bareos-bconsole:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-postgresql:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-tools:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-director:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-director-python-plugins-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-director-python2-plugin:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-filedaemon:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-filedaemon-python-plugins-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-filedaemon-python2-plugin:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-filedaemon-python3-plugin:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-webui:all/focal 22.1.1~pre26.eeec2501e-70 uptodate
bruno-at-bareos

bruno-at-bareos

2023-07-20 13:38

manager   ~0005238

Would you mind to check the following command

su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck -d 1000 --dt -v -c /etc/bareos" | tee /var/tmp/bareos-dbcheck.trace

It will not try to modify the database, please use choice 12.
Check any permission issues with bareos user not able to read a config file.
having the storage definition and bconsole output of list storages would help also to try to reproduce.
preussal

preussal

2023-07-20 15:48

reporter   ~0005239

echo "list storages" | bconsole

Connecting to Director localhost:9101
 Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
1000 OK: bareos-dir.mgm.ovh.fti-cloud.de Version: 22.1.1~pre26.eeec2501e (18 July 2023)
Bareos community build (UNSUPPORTED).
Get professional support from https://www.bareos.com
You are connected using the default console

Enter a period (.) to cancel a command.
list storages
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
+-----------+----------------------+-------------+
| storageid | name | autochanger |
+-----------+----------------------+-------------+
| 6 | MUC_File-Autochanger | 1 |
| 5 | OVH_File-Autochanger | 1 |
+-----------+----------------------+-------------+
You have messages.

director config part of the Storages

Storage {
    Name = "MUC_File-Autochanger"

    Address = bareos-sd01.mgm.muc01.fti.int
    Autochanger = yes
    Description = Virtual File Autochanger
    Device = MUC_File-Autochanger
    Enabled = yes
    Maximum Bandwidth Per Job = 0
    Maximum Concurrent Jobs = 20
    Maximum Concurrent Read Jobs = 0
    Media Type = File
    Password = XxXxXxXxXxX
    SD Port = 9103
}
Storage {
    Name = "OVH_File-Autochanger"

    Address = bareos-sd01.mgm.ovh.fti-cloud.de
    Autochanger = yes
    Description = Virtual File Autochanger
    Device = OVH_File-Autochanger
    Enabled = Yes
    Maximum Bandwidth Per Job = 0
    Maximum Concurrent Jobs = 20
    Maximum Concurrent Read Jobs = 0
    Media Type = File
    Password = XxXxXxXxXxX
    SD Port = 9103
}

when i use this command
"su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck -d 1000 --dt -v -c /etc/bareos" | tee /var/tmp/bareos-dbcheck.trace"

I get an endless stack trace and at the end a segmentation fault.
Here are the last lines. Since the passwords are displayed everywhere

20-Jul-2023 15:37:57.829356 dbcheck (200): lib/res.cc:1794-0 TlsCaCertificateFile (inherited: 1, verbose: 0):
20-Jul-2023 15:37:57.829360 dbcheck (200): lib/res.cc:1794-0 TlsCaCertificateDir (inherited: 1, verbose: 0):
20-Jul-2023 15:37:57.829364 dbcheck (200): lib/res.cc:1794-0 TlsCertificateRevocationList (inherited: 1, verbose: 0):
20-Jul-2023 15:37:57.829368 dbcheck (200): lib/res.cc:1794-0 TlsCertificate (inherited: 1, verbose: 0):
20-Jul-2023 15:37:57.829372 dbcheck (200): lib/res.cc:1794-0 TlsKey (inherited: 1, verbose: 0):
20-Jul-2023 15:37:57.829376 dbcheck (200): lib/res.cc:1794-0 TlsAllowedCn (inherited: 1, verbose: 0):
20-Jul-2023 15:37:57.829380 dbcheck (800): lib/output_formatter.cc:178-0 obj end: monitoring
Console {
  Name = "monitoring"
  Description = "WebUIUserMonitoring"
  Password = "XxXxXxXxXxX"
  Profile = "monitoring"
  TlsEnable = No
20-Jul-2023 15:37:57.829384 dbcheck (800): lib/output_formatter.cc:178-0 obj end: Consoles
}

No User resource defined
20-Jul-2023 15:37:57.829395 dbcheck (900): lib/parse_conf.cc:245-0 Leave ParseConfigFile()
20-Jul-2023 15:37:57.829419 dbcheck (900): lib/parse_conf.cc:282-0 Inserting Console res: *UserAgent* index=12
Segmentation fault

But everything is set up for user monitoring.

Console {
    Name = "monitoring"
    Description = WebUI User Monitoring
    Password = XxXxXxXxXxX
    Profile = monitoring
    Tls Enable = False
}
.
.
.
Profile {
    Name = "monitoring"
    Catalog ACL = *all*
    Client ACL = *all*
    Command ACL = "!.bvfs_clear_cache","!.exit","!.sql","!configure","!create","!delete","!purge","!sqlquery","!umount","!unmount","*all*"
    Description = Profile for WebUI monitoring
    File Set ACL = *all*
    Job ACL = *all*
    Pool ACL = *all*
    Schedule ACL = *all*
    Storage ACL = *all*
    Where ACL = *all*
}


when i remove the -c
"su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck -d 1000 --dt -v /etc/bareos" | tee /var/tmp/bareos-dbcheck.trace"
then i get the options Menue

20-Jul-2023 15:34:41.275636 dbcheck (100): cats/cats_backends.cc:71-0 db_init_database: Trying to find mapping of given interfacename postgresql to mapping interfacename dbi, partly_compare = true
20-Jul-2023 15:34:41.275685 dbcheck (100): cats/cats_backends.cc:71-0 db_init_database: Trying to find mapping of given interfacename postgresql to mapping interfacename mysql, partly_compare = false
20-Jul-2023 15:34:41.275692 dbcheck (100): cats/cats_backends.cc:71-0 db_init_database: Trying to find mapping of given interfacename postgresql to mapping interfacename postgresql, partly_compare = false
20-Jul-2023 15:34:41.275698 dbcheck (100): cats/cats_backends.cc:219-0 db_init_database: checking backend /usr/lib/bareos/backends/libbareoscats-postgresql.so
20-Jul-2023 15:34:41.281616 dbcheck (100): cats/cats_backends.cc:245-0 db_init_database: loaded backend /usr/lib/bareos/backends/libbareoscats-postgresql.so
20-Jul-2023 15:34:41.281651 dbcheck (100): cats/postgresql.cc:956-0 db_init_database first time
20-Jul-2023 15:34:41.288044 dbcheck (50): cats/postgresql.cc:224-0 pg_real_connect ok
20-Jul-2023 15:34:41.288065 dbcheck (50): cats/postgresql.cc:226-0 db_user=bareos db_name=bareos db_password=
20-Jul-2023 15:34:41.288071 dbcheck (500): cats/postgresql.cc:548-0 SqlQueryWithHandler starts with 'SELECT VersionId FROM Version'
20-Jul-2023 15:34:41.288095 dbcheck (500): cats/postgresql.cc:587-0 SqlQueryWithoutHandler starts with 'SELECT VersionId FROM Version'
20-Jul-2023 15:34:41.289294 dbcheck (500): cats/postgresql.cc:610-0 we have a result
20-Jul-2023 15:34:41.289313 dbcheck (500): cats/postgresql.cc:613-0 we have 1 fields
20-Jul-2023 15:34:41.289318 dbcheck (500): cats/postgresql.cc:616-0 we have 1 rows
20-Jul-2023 15:34:41.289322 dbcheck (500): cats/postgresql.cc:659-0 SqlQueryWithoutHandler finishing
20-Jul-2023 15:34:41.289326 dbcheck (500): cats/postgresql.cc:557-0 SqlQueryWithHandler succeeded. checking handler
20-Jul-2023 15:34:41.289330 dbcheck (500): cats/postgresql.cc:560-0 SqlQueryWithHandler invoking handler
20-Jul-2023 15:34:41.289334 dbcheck (500): cats/postgresql.cc:695-0 SqlFetchRow start
20-Jul-2023 15:34:41.289338 dbcheck (500): cats/postgresql.cc:707-0 we need space for 8 bytes
20-Jul-2023 15:34:41.289342 dbcheck (500): cats/postgresql.cc:717-0 SqlFetchRow row number '0' is acceptable (0..1)
20-Jul-2023 15:34:41.289347 dbcheck (500): cats/postgresql.cc:721-0 SqlFetchRow field '0' has value '2210'
20-Jul-2023 15:34:41.289351 dbcheck (500): cats/postgresql.cc:731-0 SqlFetchRow finishes returning 55b1aedf4730
20-Jul-2023 15:34:41.289355 dbcheck (500): cats/postgresql.cc:562-0 SqlQueryWithHandler SqlFetchRow worked
20-Jul-2023 15:34:41.289362 dbcheck (800): cats/sql.cc:69-0 int_handler starts with row pointing at aedf4730
20-Jul-2023 15:34:41.289366 dbcheck (800): cats/sql.cc:72-0 int_handler finds '2210'
20-Jul-2023 15:34:41.289374 dbcheck (800): cats/sql.cc:78-0 int_handler finishes
20-Jul-2023 15:34:41.289378 dbcheck (500): cats/postgresql.cc:695-0 SqlFetchRow start
20-Jul-2023 15:34:41.289382 dbcheck (500): cats/postgresql.cc:727-0 SqlFetchRow row number '1' is NOT acceptable (0..1)
20-Jul-2023 15:34:41.289386 dbcheck (500): cats/postgresql.cc:731-0 SqlFetchRow finishes returning 0
20-Jul-2023 15:34:41.289392 dbcheck (500): cats/postgresql.cc:568-0 SqlQueryWithHandler finished
20-Jul-2023 15:34:41.289397 dbcheck (500): cats/postgresql.cc:587-0 SqlQueryWithoutHandler starts with 'SET datestyle TO 'ISO, YMD''
20-Jul-2023 15:34:41.289631 dbcheck (500): cats/postgresql.cc:610-0 we have a result
20-Jul-2023 15:34:41.289643 dbcheck (500): cats/postgresql.cc:613-0 we have 0 fields
20-Jul-2023 15:34:41.289647 dbcheck (500): cats/postgresql.cc:616-0 we have 0 rows
20-Jul-2023 15:34:41.289652 dbcheck (500): cats/postgresql.cc:659-0 SqlQueryWithoutHandler finishing
20-Jul-2023 15:34:41.289656 dbcheck (500): cats/postgresql.cc:587-0 SqlQueryWithoutHandler starts with 'SET cursor_tuple_fraction=1'
20-Jul-2023 15:34:41.289855 dbcheck (500): cats/postgresql.cc:610-0 we have a result
20-Jul-2023 15:34:41.289869 dbcheck (500): cats/postgresql.cc:613-0 we have 0 fields
20-Jul-2023 15:34:41.289874 dbcheck (500): cats/postgresql.cc:616-0 we have 0 rows
20-Jul-2023 15:34:41.289878 dbcheck (500): cats/postgresql.cc:659-0 SqlQueryWithoutHandler finishing
20-Jul-2023 15:34:41.289882 dbcheck (500): cats/postgresql.cc:587-0 SqlQueryWithoutHandler starts with 'SET standard_conforming_strings=on'
20-Jul-2023 15:34:41.290009 dbcheck (500): cats/postgresql.cc:610-0 we have a result
20-Jul-2023 15:34:41.290020 dbcheck (500): cats/postgresql.cc:613-0 we have 0 fields
20-Jul-2023 15:34:41.290024 dbcheck (500): cats/postgresql.cc:616-0 we have 0 rows
20-Jul-2023 15:34:41.290028 dbcheck (500): cats/postgresql.cc:659-0 SqlQueryWithoutHandler finishing
20-Jul-2023 15:34:41.290032 dbcheck (500): cats/postgresql.cc:587-0 SqlQueryWithoutHandler starts with 'SELECT getdatabaseencoding()'
20-Jul-2023 15:34:41.290364 dbcheck (500): cats/postgresql.cc:610-0 we have a result
20-Jul-2023 15:34:41.290378 dbcheck (500): cats/postgresql.cc:613-0 we have 1 fields
20-Jul-2023 15:34:41.290383 dbcheck (500): cats/postgresql.cc:616-0 we have 1 rows
20-Jul-2023 15:34:41.290386 dbcheck (500): cats/postgresql.cc:659-0 SqlQueryWithoutHandler finishing
20-Jul-2023 15:34:41.290390 dbcheck (500): cats/postgresql.cc:695-0 SqlFetchRow start
20-Jul-2023 15:34:41.290394 dbcheck (500): cats/postgresql.cc:707-0 we need space for 8 bytes
20-Jul-2023 15:34:41.290399 dbcheck (500): cats/postgresql.cc:717-0 SqlFetchRow row number '0' is acceptable (0..1)
20-Jul-2023 15:34:41.290403 dbcheck (500): cats/postgresql.cc:721-0 SqlFetchRow field '0' has value 'SQL_ASCII'
20-Jul-2023 15:34:41.290407 dbcheck (500): cats/postgresql.cc:731-0 SqlFetchRow finishes returning 55b1aedf4730
20-Jul-2023 15:34:41.290414 dbcheck (500): cats/postgresql.cc:587-0 SqlQueryWithoutHandler starts with 'SET client_encoding TO 'SQL_ASCII''
20-Jul-2023 15:34:41.290546 dbcheck (500): cats/postgresql.cc:610-0 we have a result
20-Jul-2023 15:34:41.290558 dbcheck (500): cats/postgresql.cc:613-0 we have 0 fields
20-Jul-2023 15:34:41.290562 dbcheck (500): cats/postgresql.cc:616-0 we have 0 rows
20-Jul-2023 15:34:41.290566 dbcheck (500): cats/postgresql.cc:659-0 SqlQueryWithoutHandler finishing
Hello, this is the Bareos database check/correct program.
Modify database is off. Verbose is on.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 12
Checking for orphaned Storage entries.
Segmentation fault
preussal

preussal

2023-07-20 15:51

reporter   ~0005240

Last edited: 2023-07-20 16:00

and then i remove the monitoring user and profile then the same error but one user above


20-Jul-2023 15:49:51.142707 dbcheck (200): lib/res.cc:1794-0 TlsEnable (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142711 dbcheck (200): lib/res.cc:1794-0 TlsRequire (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142715 dbcheck (200): lib/res.cc:1794-0 TlsCipherList (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142719 dbcheck (200): lib/res.cc:1794-0 TlsDhFile (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142723 dbcheck (200): lib/res.cc:1794-0 TlsProtocol (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142727 dbcheck (200): lib/res.cc:1794-0 TlsVerifyPeer (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142731 dbcheck (200): lib/res.cc:1794-0 TlsCaCertificateFile (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142735 dbcheck (200): lib/res.cc:1794-0 TlsCaCertificateDir (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142739 dbcheck (200): lib/res.cc:1794-0 TlsCertificateRevocationList (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142743 dbcheck (200): lib/res.cc:1794-0 TlsCertificate (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142747 dbcheck (200): lib/res.cc:1794-0 TlsKey (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142751 dbcheck (200): lib/res.cc:1794-0 TlsAllowedCn (inherited: 1, verbose: 0):
20-Jul-2023 15:49:51.142755 dbcheck (800): lib/output_formatter.cc:178-0 obj end: bareos-mon
Console {
  Name = "bareos-mon"
  Description = "Restrictedconsoleusedbytray-monitor"
  Password = "xXxXxXxXXxxxXx"
  JobAcl = "*all*"
  CommandAcl = "status", ".status"
20-Jul-2023 15:49:51.142759 dbcheck (800): lib/output_formatter.cc:178-0 obj end: Consoles
}

No User resource defined
20-Jul-2023 15:49:51.142769 dbcheck (900): lib/parse_conf.cc:245-0 Leave ParseConfigFile()
20-Jul-2023 15:49:51.142792 dbcheck (900): lib/parse_conf.cc:282-0 Inserting Console res: *UserAgent* index=12
bruno-at-bareos

bruno-at-bareos

2023-07-20 16:36

manager   ~0005241

If you want to protect your password, then please simply filter them with sed
sed 's/Password = .*/Password = "anonymized"/g; s/KeyEncryptionKey = .*/KeyEncryptionKey = "anonymized"/g; s/vcpass=[^\":]*/vcpass=anonymized/g' < output.log > output_filtered.log
should do the tricks.

I believe if you want to give a trace you will have to follow the chapter about the debugging. and run the bareos-dbcheck in gdb
https://docs.bareos.org/Appendix/Debugging.html#manually-running-bareos-under-the-debugger

check first if you have gdb installed and bareos-dbg
preussal

preussal

2023-07-21 13:55

reporter   ~0005247

here is the trace
bareos-dbcheck.trace.gz (811,989 bytes)
preussal

preussal

2023-07-21 14:59

reporter   ~0005248

and here the gdb

su bareos -s /bin/bash -c "gdb --args /usr/sbin/bareos-dbcheck -c /etc/bareos"

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/bareos-dbcheck...
(No debugging symbols found in /usr/sbin/bareos-dbcheck)
(gdb) run
Starting program: /usr/sbin/bareos-dbcheck -c /etc/bareos
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
65 ../sysdeps/x86_64/multiarch/strlen-avx2.S: Permission denied.
(gdb) quit
A debugging session is active.

    Inferior 1 [process 287247] will be killed.

Quit anyway? (y or n) y

and again without -c

su bareos -s /bin/bash -c "gdb --args /usr/sbin/bareos-dbcheck /etc/bareos"
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/bareos-dbcheck...
(No debugging symbols found in /usr/sbin/bareos-dbcheck)
(gdb) run
Starting program: /usr/sbin/bareos-dbcheck /etc/bareos
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Hello, this is the Bareos database check/correct program.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 12
Checking for orphaned Storage entries.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7c569d4 in ConfigurationParser::GetResourcesContainer() () from /usr/lib/bareos/libbareos.so.22
(gdb) quit
A debugging session is active.

    Inferior 1 [process 287860] will be killed.

Quit anyway? (y or n) y

i hope this helps
preussal

preussal

2023-07-21 15:53

reporter   ~0005249

I installed a fresh test environment
And there I have the same behavior.

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal

uname -a
Linux focal01 5.15.0-76-generic 00000830000001:0000020.04.1-Ubuntu SMP Wed Jun 21 20:23:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

apt-get install postgresql
apt-get install bareos-director bareos-dbg

default installation no special

This is the only change I made.
cat /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf

Catalog {
  Name = MyCatalog
  dbname = bareos
  dbuser = bareos
# dbpassword = ""
# dbaddress = localhost
}

service bareos-director start

service bareos-director status

● bareos-director.service - Bareos Director Daemon service
     Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-07-21 15:32:53 CEST; 6min ago
       Docs: man:bareos-dir(8)
   Main PID: 2380770 (bareos-dir)
      Tasks: 3 (limit: 4552)
     Memory: 2.0M
     CGroup: /system.slice/bareos-director.service
             └─2380770 /usr/sbin/bareos-dir -f

Jul 21 15:32:53 focal01 systemd[1]: Started Bareos Director Daemon service.


apt-show-versions |grep bareos

bareos-bconsole:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-postgresql:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-tools:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-dbg:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-director:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-filedaemon:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-filedaemon-python-plugins-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-filedaemon-python3-plugin:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate


su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck -c /etc/bareos"
Segmentation fault

and on dmesg
[Fr Jul 21 15:44:21 2023] bareos-dbcheck[2386718]: segfault at 0 ip 00007f4b797a56e5 sp 00007fff30e0e7e8 error 4 in libc-2.31.so[7f4b7963f000+178000]
[Fr Jul 21 15:44:21 2023] Code: 00 00 0f 1f 00 31 c0 c5 f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 89 f9 48 89 fa c5 f9 ef c0 83 e1 3f 83 f9 20 77 2b <c5> fd 74 0f c5 fd d7 c1 85 c0 0f 85 eb 00 00 00 48 83 c7 20 83 e1


su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck /etc/bareos"
Hello, this is the Bareos database check/correct program.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 12
Checking for orphaned Storage entries.
Segmentation fault

and on dmesg
[Fr Jul 21 15:45:04 2023] bareos-dbcheck[2386992]: segfault at 68 ip 00007f7d060e79d4 sp 00007ffc472c9838 error 4 in libbareos.so.22.1.1[7f7d06045000+a8000]
[Fr Jul 21 15:45:04 2023] Code: 05 5d c3 0f 1f 00 48 8b 45 00 48 89 ef ff 50 10 f0 83 6d 0c 01 75 ea 48 8b 45 00 48 89 ef 5d 48 8b 40 18 ff e0 90 f3 0f 1e fa <48> 8b 56 68 48 89 f8 48 89 17 48 8b 56 70 48 89 57 08 48 85 d2 74


Trace

su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck -d 1000 --dt -v -c /etc/bareos" | tee /var/tmp/bareos-dbcheck.trace_1
trace in bareos-dbcheck.trace_1.gz

dmesg
[Fr Jul 21 15:46:02 2023] bareos-dbcheck[2387337]: segfault at 0 ip 00007fb68cbd76e5 sp 00007ffd92737cd8 error 4 in libc-2.31.so[7fb68ca71000+178000]
[Fr Jul 21 15:46:02 2023] Code: 00 00 0f 1f 00 31 c0 c5 f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 89 f9 48 89 fa c5 f9 ef c0 83 e1 3f 83 f9 20 77 2b <c5> fd 74 0f c5 fd d7 c1 85 c0 0f 85 eb 00 00 00 48 83 c7 20 83 e1


su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck -d 1000 --dt -v /etc/bareos" | tee /var/tmp/bareos-dbcheck.trace_2
trace in bareos-dbcheck.trace_2.gz

dmesg
[Fr Jul 21 15:48:52 2023] bareos-dbcheck[2388304]: segfault at 68 ip 00007f1d64d029d4 sp 00007ffface244a8 error 4 in libbareos.so.22.1.1[7f1d64c60000+a8000]
[Fr Jul 21 15:48:52 2023] Code: 05 5d c3 0f 1f 00 48 8b 45 00 48 89 ef ff 50 10 f0 83 6d 0c 01 75 ea 48 8b 45 00 48 89 ef 5d 48 8b 40 18 ff e0 90 f3 0f 1e fa <48> 8b 56 68 48 89 f8 48 89 17 48 8b 56 70 48 89 57 08 48 85 d2 74


And here with gdb

su bareos -s /bin/bash -c "gdb --args /usr/sbin/bareos-dbcheck -c /etc/bareos"

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/bareos-dbcheck...
Reading symbols from /usr/lib/debug/.build-id/25/d5c8383570e048ec15226ca58f0d82e3d27cf0.debug...
(gdb) run
Starting program: /usr/sbin/bareos-dbcheck -c /etc/bareos
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
65 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
(gdb) quit
A debugging session is active.

    Inferior 1 [process 2391042] will be killed.

Quit anyway? (y or n) y



su bareos -s /bin/bash -c "gdb --args /usr/sbin/bareos-dbcheck /etc/bareos"

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/bareos-dbcheck...
Reading symbols from /usr/lib/debug/.build-id/25/d5c8383570e048ec15226ca58f0d82e3d27cf0.debug...
(gdb) run
Starting program: /usr/sbin/bareos-dbcheck /etc/bareos
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Hello, this is the Bareos database check/correct program.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 12
Checking for orphaned Storage entries.

Program received signal SIGSEGV, Segmentation fault.
ConfigurationParser::GetResourcesContainer (this=0x0) at ../../../../core/src/lib/parse_conf.cc:509
509 ../../../../core/src/lib/parse_conf.cc: No such file or directory.
(gdb) quit
A debugging session is active.

    Inferior 1 [process 2391419] will be killed.

Quit anyway? (y or n) y
preussal

preussal

2023-07-21 17:08

reporter   ~0005250

When I go to the 21.0.0-4 version it works

apt-get install postgresql

apt-get install bareos-director=21.0.0-4 bareos-dbg=21.0.0-4 bareos-common=21.0.0-4 bareos-database-common=21.0.0-4 bareos-database-postgresql=21.0.0-4 bareos-database-tools=21.0.0-4 bareos-bconsole=21.0.0-4 bareos-filedaemon=21.0.0-4

su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck"

Hello, this is the Bareos database check/correct program.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 12
Checking for orphaned Storage entries.
Found 0 orphaned Storage records.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 0

apt-show-versions |grep bareos
bareos-common:amd64/focal 21.0.0-4 upgradeable to 22.1.1~pre26.eeec2501e-70
bareos-database-common:amd64/focal 21.0.0-4 upgradeable to 22.1.1~pre26.eeec2501e-70
bareos-database-postgresql:amd64/focal 21.0.0-4 upgradeable to 22.1.1~pre26.eeec2501e-70
bareos-database-tools:amd64/focal 21.0.0-4 upgradeable to 22.1.1~pre26.eeec2501e-70
bareos-dbg:amd64/focal 21.0.0-4 upgradeable to 22.1.1~pre26.eeec2501e-70
bareos-director:amd64/focal 21.0.0-4 upgradeable to 22.1.1~pre26.eeec2501e-70


And when I update it works too

apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  filebeat salt-common salt-minion
The following packages will be upgraded:
  bareos-common bareos-database-common bareos-database-postgresql bareos-database-tools bareos-dbg bareos-director
6 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 58,1 MB of archives.
After this operation, 38,3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

apt-show-versions |grep bareos

bareos-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-postgresql:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-tools:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-dbg:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-director:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate


service bareos-director restart
Warning: The unit file, source configuration file or drop-ins of bareos-director.service changed on disk. Run 'systemctl daemon-reload' to reload units.

service bareos-director status
Warning: The unit file, source configuration file or drop-ins of bareos-director.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● bareos-director.service - Bareos Director Daemon service
     Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-07-21 16:24:30 CEST; 6s ago
       Docs: man:bareos-dir(8)
   Main PID: 40712 (bareos-dir)
      Tasks: 3 (limit: 4590)
     Memory: 2.3M
     CGroup: /system.slice/bareos-director.service
             └─40712 /usr/sbin/bareos-dir -f


su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck"
Hello, this is the Bareos database check/correct program.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 12
Checking for orphaned Storage entries.
Found 0 orphaned Storage records.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: quit


systemctl daemon-reload
service bareos-director restart

service bareos-director status
● bareos-director.service - Bareos Director Daemon service
     Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-07-21 16:25:49 CEST; 8s ago
       Docs: man:bareos-dir(8)
   Main PID: 41262 (bareos-dir)
      Tasks: 3 (limit: 4590)
     Memory: 2.2M
     CGroup: /system.slice/bareos-director.service
             └─41262 /usr/sbin/bareos-dir -f

Jul 21 16:25:49 focal01 systemd[1]: Started Bareos Director Daemon service.


su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck"
Hello, this is the Bareos database check/correct program.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 12
Checking for orphaned Storage entries.
Found 0 orphaned Storage records.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 0

And when I update it works too


OK purge all and do a fresh install

Purge all

apt-get purge bareos* postgre*
rm -r /var/lib/postgresql /etc/bareos/ /var/lib/bareos /usr/lib/bareos

Clean install

apt-get install postgresql

apt-get install bareos-director bareos-dbg

apt-show-versions |grep bareos

bareos-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-common:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-postgresql:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-database-tools:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-dbg:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate
bareos-director:amd64/focal 22.1.1~pre26.eeec2501e-70 uptodate

su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck"
Hello, this is the Bareos database check/correct program.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 12
Checking for orphaned Storage entries.
Found 0 orphaned Storage records.
Modify database is off. Verbose is off.
Please select the function you want to perform.
     0) Quit
     1) Toggle modify database flag
     2) Toggle verbose flag
     3) Check for bad Filename records
     4) Check for bad Path records
     5) Check for duplicate Path records
     6) Check for orphaned Jobmedia records
     7) Check for orphaned File records
     8) Check for orphaned Path records
     9) Check for orphaned FileSet records
    10) Check for orphaned Client records
    11) Check for orphaned Job records
    12) Check for orphaned storage records
    13) Check for all Admin records
    14) Check for all Restore records
    15) Run ALL checks
Select function number: 0

all ok fine

I think I have another problem on the backup Director Server.
Everything works, except for the DB Check option 12

And everything works on the test system. Ubuntu Focal fresh install
I think something like updating the Ubuntu Bionic on Focal went wrong

thanks first of all. I'll keep looking for the bug
preussal

preussal

2023-07-21 18:25

reporter   ~0005251

Ok we can close this.


I found the problem. and the solution.

My Bareos Director has always connected to the postreqsql via the identifier. And since the user bareos can always access the database bareos. No password was given in the Catalog Config. Everything works without this line dbpassword = ......

I had also given a comment on this
###
# By default, Using PostgreSQL Ident, a UNIX user can access a database of the same name.
# Therefore the User Bareos Can Access The Database Bareos.
###

In the DB, however, a password for the user "Bareos" for the DB "Bareos" is given.

When I compared the config from my productive Bareos Director with the newly set test system. Then I noticed it.

If I remove "dbpassword = Ululululul" in the test system or commented out.
Everything continues to work.

Except, the DB Check
With -c I immediately get a segmentation fault
su bareos -s /bin/bash -c "/usr/sbin/bareos -dbcheck -c /etc/bareos"

Without the "-c" I come to the selection and 1 - 11 works. And only the number 12 = Segmentation fault
su bareos -s /bin/bash -c "/usr/sbin/bareos -dbcheck /etc/barreos"

Problem seems to be in the function for the check for the storages.
But if you write the password in the config then all checks work when you use -c
su bareos -s /bin/bash -c "/usr/sbin/bareos -dbcheck -c /etc/bareos"
or without options
su bareos -s /bin/bash -c "/usr/sbin/bareos-dbcheck"
Works also

BUT then you use without "-c"
su bareos -s /bin/bash -c "/usr/sbin/bareos -dbcheck /etc/bareos"

Then you get a Segmentation fault on nr 12.
haha this 12) Check for orphaned storage records is so funny.


Greetings from Munich and have a nice weekend
Alexander P.
bruno-at-bareos

bruno-at-bareos

2023-07-24 11:00

manager   ~0005253

Thanks for your reports.
We want to emphase that the call with su bareos -s /bin/bash -c "/usr/sbin/bareos -dbcheck /etc/bareos"
is invalid due the following fact (as describe in bareos-dbcheck --help

[Option Group: Manual credentials]
  Setting database credentials manually. Can only be used when no configuration is given.
  Positionals:
      working_directory TEXT
          Path to working directory.
      database_name TEXT
          Database name.
      user TEXT
          Database user name.
      password TEXT
          Database password.
      host TEXT
          Database host.
      port INT:POSITIVE
          Database port

Working directory should be /var/lib/bareos (maybe your /etc/bareos can't be written by bareos user)
bruno-at-bareos

bruno-at-bareos

2023-08-31 09:52

manager   ~0005361

call bareos-dbcheck with correct parameters

Issue History

Date Modified Username Field Change
2023-07-20 11:49 preussal New Issue
2023-07-20 11:49 preussal Tag Attached: crash
2023-07-20 11:52 preussal Note Added: 0005237
2023-07-20 13:38 bruno-at-bareos Note Added: 0005238
2023-07-20 15:48 preussal Note Added: 0005239
2023-07-20 15:51 preussal Note Added: 0005240
2023-07-20 16:00 preussal Note Edited: 0005240
2023-07-20 16:36 bruno-at-bareos Note Added: 0005241
2023-07-21 13:55 preussal Note Added: 0005247
2023-07-21 13:55 preussal File Added: bareos-dbcheck.trace.gz
2023-07-21 14:59 preussal Note Added: 0005248
2023-07-21 15:53 preussal Note Added: 0005249
2023-07-21 15:53 preussal File Added: bareos-dbcheck.trace_1.gz
2023-07-21 15:53 preussal File Added: bareos-dbcheck.trace_2.gz
2023-07-21 17:08 preussal Note Added: 0005250
2023-07-21 18:25 preussal Note Added: 0005251
2023-07-24 11:00 bruno-at-bareos Note Added: 0005253
2023-08-02 17:25 bruno-at-bareos Assigned To => bruno-at-bareos
2023-08-02 17:25 bruno-at-bareos Status new => assigned
2023-08-31 09:52 bruno-at-bareos Status assigned => closed
2023-08-31 09:52 bruno-at-bareos Resolution open => no change required
2023-08-31 09:52 bruno-at-bareos Note Added: 0005361