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 fbtracemgr when closing it using ctrl-C [CORE6045] #6295
Comments
Modified by: @AlexPeshkoffdescription: When embedded access is used (specially to embedded services manager) fb_shutdown() should be invoked before exit is called (including return from main()). Unfortunately => When embedded access is used (specially to embedded services manager) fb_shutdown() should be invoked before exit is called (including return from main()). Unfortunately in out utilities at_exit() function is used for it which is not good cause using it fb_shutdown() is called _during_ exit which appears to be too late in some cases. |
Modified by: @AlexPeshkoffassignee: Alexander Peshkov [ alexpeshkoff ] |
Modified by: @AlexPeshkoff |
Commented by: @AlexPeshkoff Server hang in 6027 is not directly related to segfault in fbtracemgr but in provided test case caused by it. |
Modified by: @AlexPeshkoffreporter: Alexander Peshkov [ alexpeshkoff ] => Artyom Smirnov [ artyom.smirnov ] |
Commented by: @AlexPeshkoff I've fixed utilities working with services manager. They are primary candidates for causing segfaults. |
Modified by: @AlexPeshkoffstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 3.0.5 [ 10885 ] Fix Version: 4.0 Beta 2 [ 10888 ] |
Commented by: @artyom-smirnov I still see segfaults if AuditTraceConfigFile defined in firebird.conf |
Commented by: @artyom-smirnov Some backtraces from cores I've observed: Core was generated by `./bin/fbtracemgr -se service_mgr -user SYSDBA -password ********* -start -c fbt'. Core was generated by `./bin/fbtracemgr -se service_mgr -user SYSDBA -password ********* -start -c fbt'. |
Modified by: @dyemanovComponent: TRACEMGR [ 10140 ] |
Commented by: @AlexPeshkoff thread apply all bt |
Submitted by: @artyom-smirnov
Depends on CORE6027
When embedded access is used (specially to embedded services manager) fb_shutdown() should be invoked before exit is called (including return from main()). Unfortunately in out utilities at_exit() function is used for it which is not good cause using it fb_shutdown() is called _during_ exit which appears to be too late in some cases.
Commits: ad190a8 5fbf07e
The text was updated successfully, but these errors were encountered: