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

Selecting from MON$STATEMENTS yields an error and an exit() call with Firebird Embedded 2.1 Beta 2 [CORE1567] #1985

Closed
firebird-automations opened this issue Nov 6, 2007 · 9 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Timo Partanen (partim)

Attachments:
Call_Stack_Failing_Place.txt
Call_Stack_Before_Exit.txt

Running statement "SELECT COUNT( * ) FROM MON$STATEMENTS" yields an error and an exit() call with Firebird Embedded 2.1 Beta 2. The error occurs in the following function (see Call_Stack_Failing_Place.txt):

static bool initializeFastMutex(FAST_MUTEX* lpMutex, LPSECURITY_ATTRIBUTES lpAttributes,
BOOL bInitialState, LPCSTR lpName)

There is a CreateFileMapping() call in the function, which fails (returns NULL) and a subsequent GetLastError() call returns 5 = ERROR_ACCESS_DENIED. What does it mean? The parameter values for the CreateFileMapping function are as follows:

lpMutex->hFileMap = CreateFileMapping(
INVALID_HANDLE_VALUE,
NULL,
PAGE_READWRITE, = 4
0,
sizeof(FAST_MUTEX_SHARED_SECTION), = 16
name ); = "partim2.mon_mutex_FM_MAP"

This error causes Firebird to dump "MONITOR: mutex init error, status = 1" and to call the exit() function with FINI_ERROR (See Call_Stack_Before_Exit.txt).

However, running the same SELECT statement on Firebird Super Server 2.1 Beta 2 succeeds.

Commits: 8ffc12b

@firebird-automations
Copy link
Collaborator Author

Modified by: Timo Partanen (partim)

Attachment: Call_Stack_Failing_Place.txt [ 10639 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: Timo Partanen (partim)

Attachment: Call_Stack_Before_Exit.txt [ 10640 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.1 RC1 [ 10201 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA200 [ QA200 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 13382 ] => Firebird [ 14048 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA200 [ QA200 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

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