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-issue-importer opened this issue Nov 6, 2007 · 9 comments

Comments

@firebird-issue-importer
Copy link

@firebird-issue-importer firebird-issue-importer commented Nov 6, 2007

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 6, 2007

Modified by: Timo Partanen (partim)

Attachment: Call_Stack_Failing_Place.txt [ 10639 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 6, 2007

Modified by: Timo Partanen (partim)

Attachment: Call_Stack_Before_Exit.txt [ 10640 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 6, 2007

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 6, 2007

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.1 RC1 [ 10201 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 29, 2007

Modified by: @pcisar

Link: This issue is related to QA200 [ QA200 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 28, 2008

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 30, 2008

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 26, 2009

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants