Re: [Firebird-devel] Memory manager cleanup / external libraries

2021-04-15 Thread Adriano dos Santos Fernandes
On 15/04/2021 15:05, Alex Peshkoff via Firebird-devel wrote: > On 4/15/21 8:21 PM, Adriano dos Santos Fernandes wrote: > >>> Can you send me full test (or patch)? I want ot test on Android. >>> >> Attached test. >> >> Here is results (init.cpp is showed many times because it's included in >> many

[Firebird-devel] Unit tests in core code

2021-04-15 Thread Adriano dos Santos Fernandes
Hi! I'm refactoring and putting INTL in the new API, and a need I have is to write test code, with in current Firebird code, should be discarded or will not be maintained and used. This test code is not necessarily SQL/API code (as I'm doing things, engine is not even fully runnable). A much bett

Re: [Firebird-devel] Memory manager cleanup / external libraries

2021-04-15 Thread Alex Peshkoff via Firebird-devel
On 4/15/21 8:21 PM, Adriano dos Santos Fernandes wrote: Can you send me full test (or patch)? I want ot test on Android. Attached test. Here is results (init.cpp is showed many times because it's included in many libraries): Same result on android: eneric_arm64:/data/firebird # bin/

Re: [Firebird-devel] Memory manager cleanup / external libraries

2021-04-15 Thread Adriano dos Santos Fernandes
On 15/04/2021 14:27, Dimitry Sibiryakov wrote: > 15.04.2021 19:21, Adriano dos Santos Fernandes wrote: >> CtorDtorDebug::CtorDtorDebug - utl.cpp 6000 >> CtorDtorDebug::CtorDtorDebug - init.cpp 6000 >> CtorDtorDebug::CtorDtorDebug - init.cpp 5000 >> CtorDtorDebug::CtorDtorDebug - init.cpp 5400 > >

Re: [Firebird-devel] Memory manager cleanup / external libraries

2021-04-15 Thread Alex Peshkoff via Firebird-devel
On 4/15/21 8:27 PM, Dimitry Sibiryakov wrote: 15.04.2021 19:21, Adriano dos Santos Fernandes wrote: CtorDtorDebug::CtorDtorDebug - utl.cpp 6000 CtorDtorDebug::CtorDtorDebug - init.cpp 6000 CtorDtorDebug::CtorDtorDebug - init.cpp 5000 CtorDtorDebug::CtorDtorDebug - init.cpp 5400  This piece doe

Re: [Firebird-devel] Charset of plugin configuration parameters

2021-04-15 Thread Dimitry Sibiryakov
15.04.2021 18:28, Alex Peshkoff via Firebird-devel wrote: It transfers data from config file 'as is', I suppose that matches charset none. If parameter's value is a connection string or an user name it would cause troubles for using them. -- WBR, SD. Firebird-Devel mailing list, web in

Re: [Firebird-devel] Memory manager cleanup / external libraries

2021-04-15 Thread Dimitry Sibiryakov
15.04.2021 19:21, Adriano dos Santos Fernandes wrote: CtorDtorDebug::CtorDtorDebug - utl.cpp 6000 CtorDtorDebug::CtorDtorDebug - init.cpp 6000 CtorDtorDebug::CtorDtorDebug - init.cpp 5000 CtorDtorDebug::CtorDtorDebug - init.cpp 5400 This piece doesn't look right. -- WBR, SD. Firebird-Dev

Re: [Firebird-devel] Memory manager cleanup / external libraries

2021-04-15 Thread Adriano dos Santos Fernandes
On 15/04/2021 11:40, Alex Peshkoff via Firebird-devel wrote: > On 4/15/21 2:33 PM, Adriano dos Santos Fernandes wrote: > I have tested with common/classes/init.cpp and this solved the specific problem I had with Boost.Test: Cleanup global __attribute__ ((init_priority (2000)));

Re: [Firebird-devel] Charset of plugin configuration parameters

2021-04-15 Thread Alex Peshkoff via Firebird-devel
On 4/15/21 6:49 PM, Dimitry Sibiryakov wrote:  Hello All.  Is there a way to know the charset of a string returned by IConfigEntry::getValue()? It transfers data from config file 'as is', I suppose that matches charset none. Firebird-Devel mailing list, web interface at https://lists

[Firebird-devel] Charset of plugin configuration parameters

2021-04-15 Thread Dimitry Sibiryakov
Hello All. Is there a way to know the charset of a string returned by IConfigEntry::getValue()? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Memory manager cleanup / external libraries

2021-04-15 Thread Alex Peshkoff via Firebird-devel
On 4/15/21 2:33 PM, Adriano dos Santos Fernandes wrote: I have tested with common/classes/init.cpp and this solved the specific problem I had with Boost.Test: Cleanup global __attribute__ ((init_priority (2000))); As far as I can see from documentation init_priority works only inside simgle fi

[Firebird-devel] [FB-Tracker] Created: (CORE-6540) A way for a replication plugin to refuse attachment

2021-04-15 Thread Dimitry Sibiryakov (JIRA)
A way for a replication plugin to refuse attachment --- Key: CORE-6540 URL: http://tracker.firebirdsql.org/browse/CORE-6540 Project: Firebird Core Issue Type: Improvement Components:

Re: [Firebird-devel] Memory manager cleanup / external libraries

2021-04-15 Thread Adriano dos Santos Fernandes
On 15/04/2021 08:33, Adriano dos Santos Fernandes wrote: > On 15/04/2021 07:55, Alex Peshkoff via Firebird-devel wrote: >>> >>> It uses global std objects which in this case have theirs destructors >>> called after Firebird default pool are already cleaned up. >> >> Yes, that's really a problem. An

[Firebird-devel] [FB-Tracker] Created: (CORE-6539) Replication plugin can crash engine returning nullptr from startTransaction() method

2021-04-15 Thread Dimitry Sibiryakov (JIRA)
Replication plugin can crash engine returning nullptr from startTransaction() method Key: CORE-6539 URL: http://tracker.firebirdsql.org/browse/CORE-6539 Project: Fir

[Firebird-devel] [FB-Tracker] Created: (CORE-6538) Add support for Package Body Constants (or even Variables)

2021-04-15 Thread Anderson Farias (JIRA)
Add support for Package Body Constants (or even Variables) -- Key: CORE-6538 URL: http://tracker.firebirdsql.org/browse/CORE-6538 Project: Firebird Core Issue Type: Improvement

Re: [Firebird-devel] Memory manager cleanup / external libraries

2021-04-15 Thread Adriano dos Santos Fernandes
On 15/04/2021 07:55, Alex Peshkoff via Firebird-devel wrote: >> >> It uses global std objects which in this case have theirs destructors >> called after Firebird default pool are already cleaned up. > > Yes, that's really a problem. And must say that even forgetting about > MemPool implementation

Re: [Firebird-devel] Memory manager cleanup / external libraries

2021-04-15 Thread Alex Peshkoff via Firebird-devel
On 4/14/21 8:25 PM, Adriano dos Santos Fernandes wrote: Hi! C++ guarantees the execution order of constructors only inside the same translation unit (say, a .cpp file) for global objects. It also guarantees inverse order of destructors in relation to constructors order. But constructor order a