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

"firebird_trace_mutex" global object cannot be created from client library, when server engine is running as service on the same machine [CORE2446] #2860

Open
firebird-automations opened this issue May 1, 2009 · 1 comment

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Yurij (yurij)

1. Firebird client library cannot create global mutex "firebird_trace_mutex" for trace log file thread-safe access, when firebird server engine is running on the same machine.

The call in file gds.cpp
HANDLE trace_mutex_handle = CreateMutex(NULL, FALSE, "firebird_trace_mutex");
returns NULL and GetLastError returns 5(ACCESS_IS_DENIED).

2. Different trace log files from different server instances or client application instances are protected by same global mutex.

3. All WaitForSingleObject calls on trace_mutex_handle don`t contain error code checks. Also in case of exception in mutex-protected code block, corresponding ReleaseMutex won`t be called.

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