[Samba] "samba-tool backup offline" stuck

Andrea Venturoli ml at netfence.it
Wed Nov 13 08:23:08 UTC 2019

On 2019-11-11 09:41, Andrew Bartlett wrote:

>>> and what is the full backtrace on that tdbbackup?
>> You mean: compile with debug symbols, attach gdb and get stack trace?
>> If so, I'll do it, but I'll need some time.
> Yes, that's what I need.

Please, find it below:

(gdb) bt
#0  0x0000000800fcdab8 in _fcntl () from /lib/libc.so.7
#1  0x0000000800c68908 in __thr_fcntl (fd=3, cmd=13)
     at /usr/src/lib/libthr/thread/thr_syscalls.c:202
#2  0x0000000800ed2127 in fcntl (fd=3, cmd=13) at 
#3  0x000000080082c83c in fcntl_lock (tdb=<optimized out>, rw=<optimized 
out>, off=8,
     len=<optimized out>, waitflag=<optimized out>) at 
#4  tdb_brlock (tdb=0x80161f000, rw_type=3, offset=8, len=1, 
flags=<optimized out>)
     at ../../common/lock.c:200
#5  0x000000080082cd19 in tdb_nest_lock (tdb=0x80161f000, offset=8, 
     flags=TDB_LOCK_WAIT) at ../../common/lock.c:390
#6  0x0000000800831808 in _tdb_transaction_start (tdb=0x80161f000, 
     at ../../common/transaction.c:490
#7  0x000000000040188b in backup_tdb (
     old_name=0x7fffffffddd6 "/var/db/samba4/private/secrets.ldb",
     new_name=0x80161c000 "/var/db/samba4/private/secrets.ldb.copy.tdb",
     hash_size=<optimized out>, nolock=<optimized out>, 
readonly=<optimized out>)
     at ../../tools/tdbbackup.c:157
#8  0x0000000000401528 in main (argc=<optimized out>, argv=0x7fffffffdb40)
     at ../../tools/tdbbackup.c:360

Don't know if this is enough, but I'll get more info if needed (just 
tell me which info).

  bye & Thanks

More information about the samba mailing list