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

Leak memory in fbembed.dll [CORE4143] #4470

Closed
firebird-automations opened this issue Jul 18, 2013 · 9 comments
Closed

Leak memory in fbembed.dll [CORE4143] #4470

firebird-automations opened this issue Jul 18, 2013 · 9 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Maxim Kuzmin (cybermax)

Attachments:
test.dpr

Votes: 2

After multiply calls isc_attach_database, isc_detachDatabase and FreeLibrary(), embedded server crashes with various errors, examples:

 Access violation\.
	The code attempted to access a virtual
	address without privilege to do so\.
This exception will cause the Firebird server
to terminate abnormally\.

Database: F:\\D2010\\PROJECTS\\EMB\\DATA\.FDB
lock manager error
operating system directive \_beginthreadex failed
Недостаточно памяти для обработки команды\.

Commits: bf3009d FirebirdSQL/fbt-repository@a1e8407

@firebird-automations
Copy link
Collaborator Author

Commented by: @ibaseru

need to say that on some systems there are no access violation.
Application just stops after ~32k pairs of attach/detach calls, with error in firebird.log
IBASE Wed Jul 17 21:30:14 2013
Operating system call _beginthreadex failed. Error code 8

IBASE Wed Jul 17 21:30:14 2013
Database: F:\D2010\PROJECTS\EMB\DATA.FDB
lock manager error
operating system directive _beginthreadex failed
Not enough storage is available to process this command.

At that time attach/detach pair after ~32k iterations takes up to 62516 handles and 138mb of RAM.

@firebird-automations
Copy link
Collaborator Author

Commented by: @paulbeach

Please read CORE2978

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Test application, big thanks for the initial version to the NickDee

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Attachment: test.dpr [ 12354 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 2.5.3 [ 10461 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Cannot be tested

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