Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in TipCache::findStates #8296

Open
hvlad opened this issue Oct 28, 2024 · 0 comments
Open

Crash in TipCache::findStates #8296

hvlad opened this issue Oct 28, 2024 · 0 comments

Comments

@hvlad
Copy link
Member

hvlad commented Oct 28, 2024

User reported privately crash of Firebird.

Stack trace of crashed thread
#0  0x00007fcb1818e2d6 in load (__m=std::memory_order_relaxed, this=0x50) at /usr/home/firebird/v5.0-release/src/jrd/tpc.cpp:557
#1  Jrd::TipCache::findStates (this=0x7fcb10208840, minNumber=<optimized out>, maxNumber=maxNumber@entry=363379813, mask=mask@entry=4294967255, state=@0x7fc6a32c7d7c: 3)
    at /usr/home/firebird/v5.0-release/src/jrd/tpc.cpp:557
#2  0x00007fcb18195786 in TPC_find_states (state=@0x7fc6a32c7d7c: 3, mask=4294967255, maxNumber=363379813, minNumber=<optimized out>, tdbb=0x7fc6a32c8488)
    at /usr/home/firebird/v5.0-release/src/jrd/../jrd/jrd.h:569
#3  transaction_start(Jrd::thread_db*, Jrd::jrd_tra*) () at /usr/home/firebird/v5.0-release/src/jrd/tra.cpp:3698
#4  0x00007fcb181a3100 in TRA_start(Jrd::thread_db*, int, unsigned char const*, Jrd::jrd_tra*) () at /usr/home/firebird/v5.0-release/src/jrd/tra.cpp:1789
#5  0x00007fcb181207cf in Jrd::JProvider::internalAttach(Firebird::CheckStatusWrapper*, char const*, unsigned int, unsigned char const*, Jrd::UserId const*) ()
    at /usr/home/firebird/v5.0-release/src/jrd/../jrd/jrd.h:810
#6  0x00007fcb18121808 in Jrd::JProvider::attachDatabase (this=this@entry=0x7fcb08d59460, user_status=user_status@entry=0x7fc6a32c9100, filename=filename@entry=0x7fc6a32c927c "/u/banco/scherer.fdb", 
    dpb_length=dpb_length@entry=327, dpb=dpb@entry=0x7fcb100b3850 "\001OI") at /usr/home/firebird/v5.0-release/src/jrd/jrd.cpp:1622
#7  0x00007fcb17f8261d in Firebird::IProviderBaseImpl<Jrd::JProvider, Firebird::CheckStatusWrapper, Firebird::IPluginBaseImpl<Jrd::JProvider, Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IReferenceCountedImpl<Jrd::JProvider, Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IVersionedImpl<Jrd::JProvider, Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IProvider> > > > > > >::cloopattachDatabaseDispatcher (self=<optimized out>, status=0x7fc6a32c96a8, fileName=0x7fc6a32c927c "/u/banco/scherer.fdb", dpbLength=327, dpb=0x7fcb100b3850 "\001OI")
    at /usr/home/firebird/v5.0-release/src/include/firebird/IdlFbInterfaces.h:12253
#8  0x00007fcb21286b82 in attachDatabase<Firebird::CheckStatusWrapper> (dpb=0x7fcb100b3850 "\001OI", dpbLength=<optimized out>, fileName=0x7fc6a32c927c "/u/banco/scherer.fdb", status=0x7fc6a32c96a0, 
    this=0x7fcb08d59468) at /usr/home/firebird/v5.0-release/src/yvalve/../yvalve/../common/../common/../common/classes/fb_string.h:234
#9  Why::Dispatcher::attachOrCreateDatabase(Firebird::CheckStatusWrapper*, bool, char const*, unsigned int, unsigned char const*) () at /usr/home/firebird/v5.0-release/src/yvalve/why.cpp:6466
#10 0x00007fcb21287000 in Why::Dispatcher::attachDatabase (this=this@entry=0x7fc6bc0174c0, status=status@entry=0x7fc6a32c96a0, filename=filename@entry=0x7fcafdf15c4c "/u/banco/scherer.fdb", 
    dpbLength=dpbLength@entry=327, dpb=dpb@entry=0x7fc731994010 "\001OI") at /usr/home/firebird/v5.0-release/src/yvalve/why.cpp:6376
#11 0x00007fcb2122edbd in Firebird::IProviderBaseImpl<Why::Dispatcher, Firebird::CheckStatusWrapper, Firebird::IPluginBaseImpl<Why::Dispatcher, Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IReferenceCountedImpl<Why::Dispatcher, Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IVersionedImpl<Why::Dispatcher, Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IProvider> > > > > > >::cloopattachDatabaseDispatcher (self=<optimized out>, status=0x7fc6a32c9738, fileName=0x7fcafdf15c4c "/u/banco/scherer.fdb", dpbLength=327, dpb=0x7fc731994010 "\001OI")
    at /usr/home/firebird/v5.0-release/src/include/firebird/IdlFbInterfaces.h:12253
#12 0x0000000000451a9a in attachDatabase<Firebird::CheckStatusWrapper> (dpb=<optimized out>, dpbLength=<optimized out>, fileName=<optimized out>, status=<optimized out>, this=<optimized out>)
    at /usr/home/firebird/v5.0-release/src/include/../common/classes/fb_string.h:234
#13 (anonymous namespace)::DatabaseAuth::accept(packet*, Auth::WriterImplementation*) () at /usr/home/firebird/v5.0-release/src/remote/server/server.cpp:2562
#14 0x0000000000444392 in (anonymous namespace)::ServerAuth::authenticate(packet*, unsigned int) () at /usr/home/firebird/v5.0-release/src/remote/server/server.cpp:631
#15 0x0000000000453935 in attach_database (send=0x7fcb10380158, attach=0x7fcb10380850, operation=op_attach, port=0x7fcaf8b796c0) at /usr/home/firebird/v5.0-release/src/remote/server/server.cpp:2499
#16 process_packet(rem_port*, packet*, packet*, rem_port**) () at /usr/home/firebird/v5.0-release/src/remote/server/server.cpp:5044
#17 0x000000000045619e in loopThread(void*) () at /usr/home/firebird/v5.0-release/src/remote/server/server.cpp:6780
#18 0x0000000000470194 in run (this=<synthetic pointer>) at /usr/home/firebird/v5.0-release/src/common/ThreadStart.cpp:94
#19 threadStart () at /usr/home/firebird/v5.0-release/src/common/ThreadStart.cpp:94
#20 0x00007fcb20417ea5 in start_thread () from /lib64/libpthread.so.0
#21 0x00007fcb20140b0d in clone () from /lib64/libc.so.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant