Skip to content

Bugcheck during nbackup under high load #8901

@hvlad

Description

@hvlad

User reported pirvately problem when nbackup is run and the system is under heavy load.
The firebird.log contains messages like

    internal Firebird consistency check (Can't lock state for write)

The issue happens with CS only.

Call stack

Thread 1 (Thread 0x7f7fb53ff6c0 (LWP 22293)):
#0  0x00007f7fb54a94ac in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x00007f7fb54578c2 in raise () from /lib64/libc.so.6
#2  0x00007f7fb543f64f in abort () from /lib64/libc.so.6
#3  0x00007f7faec7c62b in ERR_punt () at /firebird/src/jrd/err.cpp:345
#4  0x00007f7faee45861 in ERR_post (v=...) at /firebird/src/jrd/err.cpp:320
#5  0x00007f7faee45b20 in ERR_bugcheck_msg (msg=msg@entry=0x7f7faf3445ee "Can't lock state for write") at /firebird/src/jrd/../jrd/../jrd/../common/StatusArg.h:184
#6  0x00007f7faeed4d4a in Jrd::BackupManager::StateWriteGuard::StateWriteGuard (this=0x7f7fb53fd0e0, tdbb=0x7f7fb53fd618, window=0x7f7fb53fd0c0) at /firebird/src/jrd/nbak.cpp:178
#7  0x00007f7faeed8a01 in Jrd::BackupManager::endBackup (this=0x7f7fac7aade0, tdbb=0x7f7fb53fd618, recover=recover@entry=false) at /firebird/src/jrd/nbak.cpp:588
#8  0x00007f7faee1a025 in end_backup (tdbb=<optimized out>, phase=<optimized out>) at /firebird/temp/Release/jrd/dfw.cpp:6003
#9  0x00007f7faee30b0f in DFW_perform_work (tdbb=tdbb@entry=0x7f7fb53fd618, transaction=transaction@entry=0x7f7faa5d39c0) at /firebird/temp/Release/jrd/dfw.cpp:5016
#10 0x00007f7faef2413b in TRA_commit (tdbb=0x7f7fb53fd618, transaction=0x7f7faa5d39c0, retaining_flag=<optimized out>) at /firebird/src/jrd/tra.cpp:487
#11 0x00007f7faee97561 in Jrd::JTransaction::internalCommit (this=0x7f7fb41f9a60, user_status=0x7f7fb53fd7b0) at /firebird/src/jrd/../jrd/jrd.h:810
#12 0x00007f7faee9bb23 in Jrd::JTransaction::commit (this=0x7f7fb41f9a60, user_status=0x7f7fb53fd7b0) at /firebird/src/jrd/jrd.cpp:2563

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions