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

Segmentation fault in TRA_detach_request [CORE5582] #5849

Open
firebird-automations opened this issue Jul 14, 2017 · 2 comments
Open

Segmentation fault in TRA_detach_request [CORE5582] #5849

firebird-automations opened this issue Jul 14, 2017 · 2 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

There is user report that some of many Firebird CS processes crashes when database is shutting down by DBA before sweep run.
The crashes relatively rare, once per few days or weeks.
The coredump contains following stack

#⁠0 0x00007f7f438c5d44 in TRA_detach_request (request=0x7f7f34a1dab0) at ../src/jrd/tra.cpp:208
#⁠1 0x00007f7f4380c30e in EXE_unwind (tdbb=0x7f7f41cfdb40, request=0x7f7f34a1dab0) at ../src/jrd/exe.cpp:1122
#⁠2 0x00007f7f437d5e44 in CMP_release (tdbb=0x7f7f41cfdb40, request=0x7f7f34a1dab0) at ../src/jrd/cmp.cpp:2483
#⁠3 0x00007f7f437d6ab0 in CMP_fini (tdbb=0x7f7f41cfdb40) at ../src/jrd/cmp.cpp:743
#⁠4 0x00007f7f43843c7d in shutdown_database (dbb=0x7f7f39f89d98, release_pools=true) at ../src/jrd/jrd.cpp:5953
#⁠5 0x00007f7f43847d41 in purge_attachment (tdbb=0x7f7f41cfdb40, attachment=0x7f7f39f83408, force_flag=true) at ../src/jrd/jrd.cpp:6458
#⁠6 0x00007f7f438537d2 in jrd8_detach_database (user_status=0x7f7f41cfdd70, handle=0x7f7f405d02b8) at ../src/jrd/jrd.cpp:2499
#⁠7 0x00007f7f4370edd8 in fb_ping (user_status=<value optimized out>, db_handle=<value optimized out>) at ../src/jrd/why.cpp:6119
#⁠8 0x00007f7f43842cba in (anonymous namespace)::attachmentShutdownThread (arg=<value optimized out>) at ../src/jrd/jrd.cpp:7503
#⁠9 0x00007f7f43706f10 in run (arg=0x7f7f2930a138) at ../src/jrd/ThreadStart.cpp:128
#⁠10 (anonymous namespace)::threadStart (arg=0x7f7f2930a138) at ../src/jrd/ThreadStart.cpp:139
#⁠11 0x00007f7f426ceaa1 in start_thread () from /lib64/libpthread.so.0
#⁠12 0x00007f7f4241bbcd in clone () from /lib64/libc.so.6

Coredump analisys show that system request (used in METD to query metadata) contains reference (req_transaction) to the
(most probably) already deallocated transaction.

Commits: 1a6bcde

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Workaround is committed, waiting for confirmation by the user

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

2 participants