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

Segfault when 'gstat -h' is closing [CORE5088] #5373

Closed
firebird-automations opened this issue Jan 28, 2016 · 5 comments
Closed

Segfault when 'gstat -h' is closing [CORE5088] #5373

firebird-automations opened this issue Jan 28, 2016 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @AlexPeshkoff

With -h switch gstat does attach to database - just opens it as plain file. Therefore most of library services (including timer thread) remain inactive. But when closing application library pseudo-unloads builtin plugins causing during it start of timer thread which in turn may have races with main thread. This rarely causes segfault on exit.

Commits: 2c6e4b7 FirebirdSQL/fbt-repository@66102e5

====== Test Details ======

This issue was found during high concurrent workload (oltp-emul + script with loop that did query to DB header).
It's impossible to be tested using fbtest.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Make timer thread never start after call to fb_shutdown()

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 RC2 [ 10048 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

description: With -h switch gstat does attach to database - just opens it as plain file. Therefore most of library services (including timer thread) remain inactive. But when closing application library pseudo-unloads default plugins causing during it start of timer thread which in turn may have races with main thread. This rarely causes segfault on exit. => With -h switch gstat does attach to database - just opens it as plain file. Therefore most of library services (including timer thread) remain inactive. But when closing application library pseudo-unloads builtin plugins causing during it start of timer thread which in turn may have races with main thread. This rarely causes segfault on exit.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Cannot be tested

Test Details: This issue was found during high concurrent workload (oltp-emul + script with loop that did query to DB header).
It's impossible to be tested using fbtest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment