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-issue-importer opened this issue Jul 18, 2013 · 9 comments
Closed

Leak memory in fbembed.dll [CORE4143] #4470

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

Comments

@firebird-issue-importer

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

@firebird-issue-importer firebird-issue-importer commented Jul 18, 2013

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

@firebird-issue-importer firebird-issue-importer commented Jul 18, 2013

Commented by: @paulbeach

Please read CORE2978

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 18, 2013

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 2, 2013

Commented by: @hvlad

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 2, 2013

Modified by: @hvlad

Attachment: test.dpr [ 12354 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 2, 2013

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 2.5.3 [ 10461 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 23, 2015

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

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

Modified by: @pavel-zotov

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

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 25, 2016

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

Successfully merging a pull request may close this issue.

None yet
2 participants