FirebirdSQL / firebird

Firebird server, client and tools
https://www.firebirdsql.org/
1.26k stars 216 forks source link

4.0.2: build fails #7308

Closed kloczek closed 2 years ago

kloczek commented 2 years ago

Looks like something is wrong with build procedure. Probably some library needs to be added on linking libEngine13.so

make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen'
rm -f metadata.fdb
/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql -q -i /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dbs/metadata.sql
Statement failed, SQLSTATE = 39000
Error loading plugin Engine13
-Module /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/plugins/libEngine13.so exists but can not be loaded
-/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/plugins/libEngine13.so: undefined symbol: ltm_desc
After line 21 in file /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dbs/metadata.sql
make[3]: *** [Makefile:441: metadata.fdb] Error 1
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen'
make[2]: *** [Makefile:292: master_process] Error 2
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen'
make[1]: *** [Makefile:91: firebird] Error 2
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen'
make: *** [Makefile:6: firebird] Error 2
AlexPeshkoff commented 2 years ago

No - that symbol should be defined in tomcrypt library. What linux & configure switches are you using?

kloczek commented 2 years ago

So in my case there is no that symnbol

[tkloczko@devel-g2v firebird-4.0.2]$ objdump -T /lib64/libtomcrypt.so.1 | grep ltm_desc
[tkloczko@devel-g2v firebird-4.0.2]$

What linux & configure switches are you using?

My own distro and firebird si configured only with set of options passing some paths.

%configure \
        --disable-rpath \
        --with-fbbin=%{_bindir} \
        --with-fbconf=%{_sysconfdir}/%{name} \
        --with-fbdoc=%{_defaultdocdir}/%{name} \
        --with-fbglock=%{_rundir}/%{name} \
        --with-fbhelp=%{_localstatedir}/lib/%{name}/system \
        --with-fbinclude=%{_includedir} \
        --with-fbintl=%{_libdir}/%{name}/intl \
        --with-fblib=%{_libdir} \
        --with-fblog=%{_localstatedir}/log/%{name} \
        --with-fbmisc=%{_datadir}/%{name}/misc \
        --with-fbmsg=%{_localstatedir}/lib/%{name}/system \
        --with-fbplugins=%{_libdir}/%{name}/plugins \
        --with-fbsample-db=%{_localstatedir}/lib/%{name}/data \
        --with-fbsample=%{_defaultdocdir}/%{name}/sample \
        --with-fbsbin=%{_sbindir} \
        --with-fbsecure-db=%{_localstatedir}/lib/%{name}/secdb \
        --with-fbtzdata=%{_localstatedir}/lib/%{name}/tzdata \
        --with-system-editline \
        %{nil}
AlexPeshkoff commented 2 years ago

On 9/20/22 15:43, Tomasz Kłoczko wrote:

So in my case there is no that symnbol

@. firebird-4.0.2]$objdump -T /lib64/libtomcrypt.so.1 | grep ltm_desc @. firebird-4.0.2]$

What linux & configure switches are you using?

My own distro

That explains a failure reason. To build tomcrypt working with firebird you should use some non-default options (though present in most of distros).

and firebird si configured only with set of options passing some paths.

%configure \ --disable-rpath \ --with-fbbin=%{_bindir} \ --with-fbconf=%{_sysconfdir}/%{name} \ --with-fbdoc=%{_defaultdocdir}/%{name} \ --with-fbglock=%{_rundir}/%{name} \ --with-fbhelp=%{_localstatedir}/lib/%{name}/system \ --with-fbinclude=%{_includedir} \ --with-fbintl=%{_libdir}/%{name}/intl \ --with-fblib=%{_libdir} \ --with-fblog=%{_localstatedir}/log/%{name} \ --with-fbmisc=%{_datadir}/%{name}/misc \ --with-fbmsg=%{_localstatedir}/lib/%{name}/system \ --with-fbplugins=%{_libdir}/%{name}/plugins \ --with-fbsample-db=%{_localstatedir}/lib/%{name}/data \ --with-fbsample=%{_defaultdocdir}/%{name}/sample \ --with-fbsbin=%{_sbindir} \ --with-fbsecure-db=%{_localstatedir}/lib/%{name}/secdb \ --with-fbtzdata=%{_localstatedir}/lib/%{name}/tzdata \ --with-system-editline \ %{nil}

— Reply to this email directly, view it on GitHub https://github.com/FirebirdSQL/firebird/issues/7308#issuecomment-1252300093, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA44OUIZMQTNFR3NSAPCY53V7GWOPANCNFSM6AAAAAAQQ6HROQ. You are receiving this because you commented.Message ID: @.***>

kloczek commented 2 years ago

Just found the issue

%build
%{set_build_flags} \
%make_build -f makefile.shared library \
        CFLAGS="$CFLAGS -DLTM_DESC -DUSE_LTM" \
        EXTRALIBS="-ltommath" \
        INCPATH="%{_includedir}" \
        LDFLAGS="$LDFLAGS" \
        LIBPATH="%{_libdir}" \
        PREFIX="%{_prefix}"

%install
%{set_build_flags} \
%make_install -f makefile.shared \
        CFLAGS="$CFLAGS -DLTM_DESC -DUSE_LTM" \              <<<=== this line was missing
        INCPATH="%{_includedir}" \
        INSTALL_OPTS="-m755" \
        LIBPATH="%{_libdir}" \
        PREFIX="%{_prefix}"

Relinking on install caused rebuild DSO without that symbol. After rebuild and reinstall it looks like it should ..

[tkloczko@devel-g2v rpmbuild]$ objdump -T /lib64/libtomcrypt.so.1 | grep ltm_desc
00000000000d5e40 g    DO .data.rel.ro   00000000000001a0  Base        ltm_desc

Strange because in Feodra spec file the same line is missing 🤔

BTW. Why firebird is not using libcrypto from libxcrypt? 🤔

Thank you very much for your help. (kicking me in right direction 😋 )

After fixing this issue I've stumped on another one

make gpre
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen'
rm -f metadata.fdb
/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql -q -i /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dbs/metadata.sql
make[3]: *** [Makefile:441: metadata.fdb] Segmentation fault (core dumped)

coreadm shows me

Tue 2022-09-20 14:04:08 BST 1134642 1000 1000 SIGSEGV present  /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql                                  >
Tue 2022-09-20 14:04:08 BST 1134658 1000 1000 SIGSEGV present  /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql                                  >
Tue 2022-09-20 14:04:08 BST 1134682 1000 1000 SIGSEGV present  /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql                                  >
Tue 2022-09-20 14:04:08 BST 1134660 1000 1000 SIGSEGV present  /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/gbak                                  >
Tue 2022-09-20 14:08:17 BST 1139474 1000 1000 SIGSEGV present  /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql                                  

first core shows:

```console [tkloczko@barrel SRPMS]$ coredumpctl gdb 1134642 PID: 1134642 (isql) UID: 1000 (tkloczko) GID: 1000 (tkloczko) Signal: 11 (SEGV) Timestamp: Tue 2022-09-20 14:04:08 BST (6min ago) Command Line: /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql -q -i /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dbs/metadata.sql Executable: /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql Control Group: /lxc.payload.devel-g2v/user.slice/user-1000.slice/session-285.scope Slice: -.slice Boot ID: a276a112491a4869922a6d3488951dc9 Machine ID: 1e3406b3ce714f53abecf7641173d045 Hostname: devel-g2v Storage: /var/lib/systemd/coredump/core.isql.1000.a276a112491a4869922a6d3488951dc9.1134642.1663679048000000.zst (present) Disk Size: 291.9K Message: Process 1134642 (isql) of user 1000 dumped core. Module /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql with build-id 2059a516a57608a05d5bc545990b16755fa04102 Module /usr/lib64/libicui18n.so.71.1 with build-id 9bcf7731554e7da32a4e2753ddd5fb30adcf8cd9 Module /usr/lib64/libicuuc.so.71.1 with build-id 9d09db37738f791188a7f400e8ebf4fc79a7eb74 Module /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/intl/libfbintl.so with build-id 7a23825997e8716fe7df996e39ea1cea31f530d2 Module /usr/lib64/libtomcrypt.so.1.0.1 with build-id 4414988bff2757128bfd489b14a6f70a1c56326c Module /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/plugins/libEngine13.so with build-id 91b6898877ac65a6d8ec95e4d030e5f7dfbdf274 Module /usr/lib64/libtinfo.so.6.2.0 with build-id 68dfa948f2e810ee458b5b6f1d54a90389c0086a Module /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/lib/libfbclient.so.4.0.2 with build-id ac931c0bf46c8a6bf888c6bdfefdba03ca8780c7 Module linux-vdso.so.1 with build-id b4a17b6c642acd49fb6eea4e8a4b04bde1ea0e1f Module libicudata.so.71 with build-id 32feda4a582af02ee754ca5d2b58c86cb9fe5696 Module libtommath.so.1 with build-id c82c0c930e85e291898a8fe85bb63f5f1cd11a3b Module ld-linux-x86-64.so.2 with build-id 2fa4a8fb1f458ceed74ee846d36b62940e16ba26 Module libc.so.6 with build-id 1a0e6a18e0109e4e6192898acd7d4bccf7c2950a Module libgcc_s.so.1 with build-id 4a5d703f40fefe50bef3fad1d026ef1662e09791 Module libm.so.6 with build-id 95127d9fbb0939e6e65085ec44ab9a91fdec6d84 Module libstdc++.so.6 with build-id 2ec4115bef5eaf41bd2268ab32bf7d6835489ab4 Module libedit.so.0 with build-id b19a8dd111fdf19c056f90dc5b077500bde5ab92 Stack trace of thread 2706198: #0 0x0000000000000000 n/a (n/a + 0x0) ELF object binary architecture: AMD x86-64 GNU gdb (GDB) Fedora 12.1-4.fc37 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql... warning: Can't open file /var/lib/firebird/tzdata/zoneinfo64.res during file-backed mapping note processing warning: Can't open file /usr/lib64/libtomcrypt.so.1.0.1 during file-backed mapping note processing warning: Can't open file /var/lib/firebird/tzdata/timezoneTypes.res during file-backed mapping note processing warning: Can't open file /usr/lib64/libtinfo.so.6.2.0 during file-backed mapping note processing [New LWP 2706198] [New LWP 2706201] [New LWP 2706208] [New LWP 2706203] [New LWP 2706209] warning: .dynamic section for "/lib64/libtinfo.so.6" is not at the expected address (wrong library or version mismatch?) warning: Could not load shared library symbols for 3 libraries, e.g. /lib64/libtomcrypt.so.1. Use the "info sharedlibrary" command to see the complete listing. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql -q -'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000000000000000 in ?? () [Current thread is 1 (Thread 0x7f178b4ee3c0 (LWP 2706198))] Missing separate debuginfos, use: dnf debuginfo-install glibc-2.36.9000-7.fc38.x86_64 libedit-3.1-43.20210910cvs.2.fc35.x86_64 libgcc-12.2.1-2.fc38.x86_64 libicu-71.1-2.fc35.x86_64 libstdc++-12.2.1-2.fc38.x86_64 libtommath-1.2.0-9.fc35.x86_64 ncurses-libs-6.2-9.20210508.fc36.x86_64 (gdb) bt full #0 0x0000000000000000 in ?? () No symbol table info available. #1 0x00007f1789e4f0db in Jrd::NodeCopier::copy (input=0x7f1789aef8b0, tdbb=0x7ffc425845c0, this=0x7ffc42581b40) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/jrd/../jrd/../jrd/../jrd/../dsql/../dsql/Visitors.h:213 copy = copy = #2 Jrd::makeValidation (tdbb=0x7ffc425845c0, csb=0x7f1786f3fa00, stream=0, validations=...) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dsql/StmtNodes.cpp:9858 autoRemapVariable = {> = {value = 0x7f1786f3fc64, oldValue = 0}, } copier = { = { = {pool = @0x7f1786e0abc0}, _vptr.NodeCopier = 0x7f178a490648 , csb = 0x7f1786f3fa00, remap = 0x7f17863b2dc0, message = 0x0}, fldId = 0} validate = validation = 0x7f1789aef8b0 end = 0x7f1789d08240 relation = vector = localMap = {> = { = { = { pool = @0x7f1786e0abc0}, }, }, count = 4098, capacity = 4098, data = 0x7f17863b2dc0} map = 0x7f17863b2dc0 fieldId = 0 ptr1 = 0x7f1789d08220 #3 0x00007f178a05e3d1 in Jrd::StoreNode::pass1Store (node=0x7f17863b1490, csb=0x7f1786f3fa00, tdbb=0x7ffc425845c0) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dsql/StmtNodes.cpp:7363 stream = 0 tail = relation = 0x7f1789d0da80 copier = { = {pool = @0x7f1789decf0d}, _vptr.NodeCopier = 0x20, csb = 0x7ffc425845c0, remap = 0x7f1786e0a870, message = 0x7f1786e0ab08} relSource = 0x0 trigger = priv = map = parent = view = 0x0 parentStream = parent = view = parentStream = relSource = stream = tail = relation = trigger = priv = map = copier = newStream = viewNode = #4 Jrd::StoreNode::pass1 (this=0x7f17863b1490, tdbb=0x7ffc425845c0, csb=0x7f1786f3fa00) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dsql/StmtNodes.cpp:7289 No locals. #5 0x00007f1789dcb627 in Jrd::DmlNode::doPass1 (node=0x7f17863b1460, csb=, tdbb=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dsql/../dsql/../dsql/Nodes.h:333 No locals. --Type for more, q to quit, c to continue without paging-- #6 Jrd::ReceiveNode::pass1 (this=0x7f17863b1440, tdbb=, csb=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dsql/StmtNodes.cpp:6950 No locals. #7 0x00007f1789dc83d4 in Jrd::DmlNode::doPass1 (node=0x7f17863b18e8, csb=0x7f1786f3fa00, tdbb=0x7ffc425845c0) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dsql/../dsql/../dsql/Nodes.h:333 No locals. #8 Jrd::CompoundStmtNode::pass1 (this=0x7f17863b1210, tdbb=0x7ffc425845c0, csb=0x7f1786f3fa00) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dsql/StmtNodes.cpp:939 i = 0x7f17863b18e8 #9 0x00007f178a04875c in Jrd::DmlNode::doPass1 (node=0x7f1786f3fa28, csb=0x7f1786f3fa00, tdbb=0x7ffc425845c0) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/jrd/../jrd/../jrd/../jrd/../dsql/Nodes.h:333 No locals. #10 Jrd::JrdStatement::makeStatement (tdbb=0x7ffc425845c0, csb=0x7f1786f3fa00, internalFlag=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/jrd/JrdStatement.cpp:220 localMap = map = accessor = pool = dbb = old_request = 0x0 statement = 0x0 #11 0x00007f1789fee4ae in Jrd::JrdStatement::makeRequest (internalFlag=true, csb=0x7f1786f3fa00, tdbb=0x7ffc425845c0) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/jrd/JrdStatement.cpp:310 statement = statement = #12 CMP_compile2 (tdbb=0x7ffc425845c0, blr=0x7f178a3a4aa0 <_ZL5jrd_7.lto_priv.0> "\004\002\004", blr_length=61, internal_flag=, dbginfo_length=0, dbginfo=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/jrd/cmp.cpp:176 context = { = {savedPool = 0x7f1789ae8ba0}, savedThreadData = 0x7ffc425845c0, savedPool = 0x7f1789ae8ba0} csb = 0x7f1786f3fa00 request = 0x0 att = 0x7f1789d05480 new_pool = 0x7f1786e0abc0 #13 0x00007f1789fee591 in Jrd::AutoCacheRequest::compile (this=0x7ffc42581e50, tdbb=, blr=, blrLength=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/include/../jrd/exe_proto.h:98 No locals. #14 0x00007f178a03c7cc in Jrd::AutoCacheRequest::compile (blrLength=, blr=, tdbb=, this=, this=, tdbb=, blr=, blrLength=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/temp/Release/jrd/dpm.cpp:2094 No locals. #15 DPM_pages (tdbb=0x7ffc425845c0, rel_id=, type=4, sequence=, page=3) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/temp/Release/jrd/dpm.cpp:2090 jrd_8 = {jrd_9 = 3, jrd_10 = 0, jrd_11 = 4, jrd_12 = 0} attachment = 0x7f1789d05480 request = {id = 0, which = 1, request = 0x0} #16 0x00007f178a04c934 in DPM_create_relation (tdbb=0x7ffc425845c0, relation=0x7f1789d0da80) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/temp/Release/jrd/dpm.cpp:692 dbb = relPages = 0x7f1789d0dc00 #17 0x00007f178a18fa31 in INI_format (owner=, charset=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/temp/Release/jrd/ini.cpp:1849 relfld = 0x7f178a4afb00 <_ZL9relfields.lto_priv.11> jrd_330 = {jrd_331 = 0, jrd_332 = 0, jrd_333 = 0, jrd_334 = "\000\000\003\000\000\000\003\000\000\000\220$XB\374\177\000\000\240wċ\027\177\000\000\320$XB\374\177\000\000\000\060\351\227;Խ4\001\000\000\000\000\000\000\000\360Dŋ\027\177\000\000\a\000\000\000\000\000\000\000\000\060\351\227;Խ4\000\000\000\000\000\000\000\000\020g\250\213\027\177\000\000\240tċ\027\177\000\000\211ۮ\213\027\177\000\000\a\000\000\000\000\000\000\000\070\361\256\213\027\177\000\000\334%XB\374\177\000\000\000\060\351\227;Խ4\020g\250\213\027\177\000\000\000\000\000\000\000\000\000\000Dg\250\213\027\177\000\000\a\000\000\000\000\000\000\000\320j\300\211\027\177\000\000)u\261\213\027\177\000\000\320%XB\374\177\000\000\320%XB\374\177\000\000--Type for more, q to quit, c to continue without paging-- \000'XB\374"..., jrd_335 = "\211\027\177\000\000('\211\207\027\177\000\000\320%XB\374\177\000\000\020\000\000\000\000\000\000\000('\211\207\027\177\000\000 '\211\207\027\177\000\000\300&K\212\027\177\000\000\376\377\000\000fbtrace\000ce\000\000\000\060\351\227;Խ4\360\336\277\211\027\177\000\000\300#K\212\027\177\000\000\334%XB\374\177\000\000\a\000\000\000 \000\000\000\070Aŋ\027\177\000\000\370Dŋ\027\177\000\000\000\000\000\000\000\000\000\000\030g\250\213\027\177\000\000\000\000\000\000\000\000\000\000\360\332J\212\027\177\000\000\000\000\000\000\000\000\000\000\220\211K\212\027\177\000\000\300&K\212\027\177\000\000\001", '\000' ...} jrd_337 = {jrd_338 = 25441, jrd_339 = 101, jrd_340 = 32, jrd_341 = "\000\000\200@XB\374\177\000\000\240c\250\213\027\177\000\000Q\000\000\000R\000\000\000\240wċ\027\177\000\000\376\377\000\000fbtrace\000/lib\000\060\351\227;Խ4\000&\256\213\027\177\000\000\340\236\264\213\027\177\000\000\314\"XB\374\177\000\000\a\000\000\000 \000\000\000\240wċ\027\177\000\000\376\377\000\000\000\000\000\000\260$XB\374\177\000\000X\345\356\211\027\177\000\000\070wċ\027\177\000\000\001\000\000\000\027\177\000\000`h\250\213\027\177\000\000V\000\000\000\244", '\000' , "oċ\027\177\000\000\220#XB\374\177\000\000\000\060\351\227;Խ4\334%XB\374\177\000\000\020g\250\213\027\177\000\000\070g\250\213"..., jrd_342 = "\213\027\177\000\000\200t\261\213\027\177\000\000\214#XB\374\177\000\000\020%XB\374\177\000\000\070wċ\027\177\000\000\001\000\000\000\027\177\000\000@Wċ\027\177\000\000\000\060\351\227;Խ4`Fŋ\027\177\000\000\b$XB\374\177", '\000' , "\350`ċ\027\177\000\000x\356J\212\027\177\000\000\000\067ŋ\027\177\000\000\240wċ\027\177\000\000\001", '\000' , "\\\217Ƌ\027\177\000\000\300\275Љ\027\177\000\000\255\260ۉ\027\177\000\000 '\211\207\027\177\000\000\204\022\355\211\027\177\000\000\240&XB\374\177\000\000\000\060\351\227;Խ4\254\271[B\374\177"...} jrd_344 = {jrd_345 = 0, jrd_346 = 0, jrd_347 = 0, jrd_348 = "\000\000\t\000\000\000\374\177\000\000(\005\250\213\027\177\000\000\236\361g\213\027\177\000\000\240wċ\027\177\000\000\376\377\000\000\000\000\000\000\260p[\213\027\177\000\000\200\"XB\374\177\000\000.mo\000\374\177\000\000@/\217\366\035V\000\000\340[\250\213\027\177\000\000W\000\000\000b\000\000\000\250\377\377\377\377\377\377\377<\371\264if]\313\317\070\"XB\374\177\000\000\000\000\000\000 \000\000\000\200@XB\374\177\000\000(4XB\374\177\000\000<\371\264lf]\313Ϡ!XB\374\177\000\000\001\000\000\000\000\000\000\000>\000\000\024\000\000\000\000\002\000\000\000\000\000\000\000\360\261\220\366\035V\000\000\000\000\000\000\000\000\000\000<\256\"\212\027\177\000\000"..., jrd_349 = "\373\027\177\000\000`#XB\374\177\000\000`#XB\374\177\000\000`#XB\374\177\000\000`#XB\374\177\000\000j#XB\374\177\000\000_$XB\374\177\000\000`#XB\374\177\000\000_$XB\374\177", '\000' , "\200\232ȋ\200\000\000\000\037o[\213\027\177", '\000' , "@\"XB\374\177\000\001\000\000\000\000\000\000\000\000\377\377\377\377\377\377\377\377\000\000\000\000\000\000\000\000\320\343\300\211\027\177\000\000P3XB\374\177\000\000\377\377\377\377\374\177\000\000\000\000\000\000"...} tdbb = 0x7ffc425845c0 attachment = 0x7f1789d05480 dbb = 0x7f1789d02b40 ownerName = {word = 0x7f1789ab5a40, static EMPTY = } rdbCharSetName = {word = 0x7f1789ab5a68, static EMPTY = } fld = transaction = rdbRelationId = 32535 rdbRelationName = {word = 0x7f178bb02d40 , static EMPTY = } rdbFieldId = -1950058592 rdbSystemFlag = 0 rdbRelationType = 16 sql = {text = { = { = { = {pool = @0x0}, }, max_length = 2343069496, inlineBuffer = "\027\177\000\000xg\250\213\027\177\000\000\240 XB\374\177\000\000h\005\250\213\027\177\000\000\000\000\000", stringBuffer = 0x7ffc425823d0 "@Wċ\027\177", stringLength = 1113072128, bufferSize = 32764}, }, inputSlots = {> = { = { = { pool = @0x561df6900000}, }, }, count = 0, capacity = 3, data = 0x7f178ba80568}, outputSlots = {> = { = { = { pool = @0x7f178bc539f0}, }, }, count = 0, capacity = 0, data = 0xcfcb5d666eb4f93c}, outputParams = 1113072056} ps = handle1 = {request = 0x7f178bc47738 } ownerNameLength = NON_REL_OWNER_ACL = "`\220\366\035V" NON_REL_PUBLIC_USAGE_ACL = "P\220", PKG_PUBLIC_EXECUTE_ACL = "\000\000\240" buffer = "\344\060XB\374\177\000\000\360]\235\211\027\177\000\000\060a\220\366\377\377\377\377\340P\251\211\027\177\000\000\341`\220\366\035V\000\000\060a\220\366\035V\000\000\344\060XB\374\177\000\000\344\060XB\374\177\000\000\244/XB\374\177\000\000\344\060XB\374\177\000\000\244/XB\374\177\000\000\253V\235\211\027\177\000\000\300_\22--Type for more, q to quit, c to continue without paging-- 0\366\035V\000\000h/XB\374\177\000\000p/XB\374\177\000\000\377\000\000\000\377\377\377\377pb\220\366\035V\000\000\025+\230\211\027\177\000\000\204\060XB\374\177\000\000\204\060XB\374\177\000\000\240`\220\366\035V\000\000\026f\235\211\027\177\000\000\000\000\000\000\000\000\000\000\364/\230\211\027\177\000\000UDATA\000ti"... acl = aclPublicStart = length = reqAddSC = {request = 0x7f178bc474a0 } DDL_OWNER_ACL = "\035V\000", DDL_PUBLIC_ACL = REL_OWNER_ACL = "\000\300_\220\366\035V\000" REL_PUBLIC_ACL = "\366\035V" buf = {word = 0x34bdd43b0000fffe, static EMPTY = } #18 0x00007f178a1c7ab5 in Jrd::JProvider::createDatabase (this=, user_status=0x7ffc42585230, filename=0x7f178b4db4c0 "/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/metadata.fdb", dpb_length=, dpb=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/jrd/jrd.cpp:3101 initGuard = {ref = {ptr = 0x7f1789c0aad0}, entered = true} tdbb = { = {localStatus = {localStatus = { = { = { pool = @0x7f178a4b26c0}, }, > = { > > > >> = { > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = {...}, cloopVTable = 0x7f178a4b8990 > > > >::IStatusBaseImpl(Firebird::DoNotInherit)::vTable>, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178a4aa3b0 }, }, }, }, }, }, errors = {> = { >> = {> = { = { = {pool = @0x7f178a4b26c0}, }, buffer = {1, 0, 0, 137438953484, 0, 0, 0, 16, 6, 0, 1}}, count = 3, capacity = 11, data = 0x7ffc425844f0}, }, }, warnings = {> = { >> = {> = { = { = {pool = @0x7f178a4b26c0}, }, buffer = {1, 0, 0}}, count = 3, capacity = 3, data = 0x7ffc42584560}, }, }}, }, localStatusVector = {> = { > > > >> = { > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = {...}, cloopVTable = 0x7f178a4b8af0 for more, q to quit, c to continue without paging-- Firebird::Inherit > > > >::IStatusBaseImpl(Firebird::DoNotInherit)::vTable>, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178a4aa2c8 }, }, }, }, }, }, status = 0x7ffc425844d8, dirty = false}, }}, currentStatus = 0x7ffc42585230, context = { = { threadDataPriorContext = 0x7ffc425843b0, threadDataType = Firebird::ThreadData::tddDBB}, static QUANTUM = 100, static SWEEP_QUANTUM = 10, defaultPool = 0x7f1786e0abc0, database = 0x7f1789d02b40, attachment = 0x7f1789d05480, transaction = 0x0, request = 0x0, reqStat = 0x7f1789c077c0, traStat = 0x7f1789c077c0, attStat = 0x7f1789d05640, dbbStat = 0x7f1789d032d0, tdbb_status_vector = 0x7ffc42585230, tdbb_quantum = 100, tdbb_flags = 0, tdbb_temp_traid = 0, tdbb_bdbs = {> = { = { = { pool = @0x7f178a4b26c0}, }, buffer = {0x0, 0x0, 0x0, 0x7ffc425847f8, 0x0, 0x7ffc42584800, 0x7f178bad2333 , 0x0, 0x0, 0x0, 0x7f178b7265a0 <_Unwind_Resume>, 0x4000000000000000, 0x0, 0x0, 0x0, 0x0}}, count = 0, capacity = 16, data = 0x7ffc42584638}, tdbb_thread = 0x7f1789c08010, tdbb_reqTimer = {ptr = 0x0}}}, <(anonymous namespace)::AttachmentHolder> = { static ATT_LOCK_ASYNC = , static ATT_DONT_LOCK = , static ATT_NO_SHUTDOWN_CHECK = , static ATT_NON_BLOCKING = , sAtt = {ptr = 0x7f1787892da0}, async = false, nolock = true, blocking = true}, = {> = { = {savedPool = 0x0}, savedThreadData = 0x7ffc425845c0, savedPool = 0x0}, }, } page_size = pageSpace = jAtt = dbbGuard = {state = Firebird::SYNC_EXCLUSIVE, request = Firebird::SYNC_EXCLUSIVE, syncObject = 0x7f1789d02b60, where = 0x7f178a23b8da "createDatabase"} userId = {usr_user_name = {data = "SYSDBA", '\000' , count = 6}, usr_sql_role_name = {data = '\000' , count = 0}, usr_granted_roles = { >> = {> = { = { = {pool = @0x7f178a4b26c0}, }, }, count = 0, capacity = 0, data = 0x0}, sortMode = 1, sorted = true}, usr_trusted_role = {data = '\000' , count = 0}, usr_init_role = {data = '\000' , count = 0}, usr_project_name = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\177\000\000data.fdb\240tċ\027\177\000\000@LXB\374\177\000\000LKXB", stringBuffer = 0x7ffc42584b3c "", stringLength = 0, bufferSize = 32}, }, usr_org_name = { = { = { = { pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\177\000\000\260OXB\374\177\000\000\071q\274\213\027\177\000\000<\371t\273f]\313\317<\371", , stringBuffer = 0x7ffc42584b7c "", stringLength = 0, bufferSize = 32}, }, usr_auth_method = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "bootBuild\000\000\000\377\000\000\000\000\000\000\000`\276ċ\027\177\000\000\000\000\000", stringBuffer = 0x7ffc42584bbc "bootBuild", stringLength = 9, bufferSize = 32}, }, usr_privileges = {static shift = 3, static bitmask = 7, static L = 4, data = "\000\000\000"}, usr_auth_block = {> = { = { = { pool = @0x7f178a4b26c0}, }, }, count = 0, capacity = 0, data = 0x0}, usr_user_id = 65535, usr_group_id = 65535, usr_flags = 2} org_filename = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 65534, inlineBuffer = "metadata.fdb\000\000\000\000\000\000\000\000\330\377\377\377\377\377\377\377懲\213", stringBuffer = 0x7ffc425840cc "metadata.fdb", stringLength = 12, bufferSize = 32}, } dbb = 0x7f1789d02b40 vdn = tdbb = {localStatus = {localStatus = { = { = { pool = @0x7f178a4b26c0}, }, > = { > > > >> = { for more, q to quit, c to continue without paging-- bird::IStatus> > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = {0x118f}, cloopVTable = 0x7f178a4b8990 > > > >::IStatusBaseImpl(Firebird::DoNotInherit)::vTable>, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178a4aa3b0 }, }, }, }, }, }, errors = {> = { >> = {> = { = { = {pool = @0x7f178a4b26c0}, }, buffer = {1, 0, 0, 140721421566648, 0, 139739102162440, 139739105937840, 139739105940992, 140721421567680, 140721421567960, 72479789323124742}}, count = 3, capacity = 11, data = 0x7ffc425842e0}, }, }, warnings = {> = { >> = {> = { = { = {pool = @0x7f178a4b26c0}, }, buffer = {1, 0, 0}}, count = 3, capacity = 3, data = 0x7ffc42584350}, }, }}, }, localStatusVector = {> = { > > > >> = { > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = {0x7f178bbf3805}, cloopVTable = 0x7f178a4b8af0 > > > >::IStatusBaseImpl(Firebird::DoNotInherit)::vTable>, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178a4aa2c8 }, }, }, }, }, }, status = 0x7ffc425842c8, dirty = false}, }}, currentStatus = 0x7ffc42585230, context = { = { threadDataPriorContext = 0x0, threadDataType = Firebird::ThreadData::tddDBB}, static QUANTUM = 100, static SWEEP_QUANTUM = 10, defaultPool = 0x0, database = 0x7f1789d02b40, attachment = 0x7f1789d05480, transaction = 0x0, request = 0x0, reqStat = 0x7f1789c077c0, traStat = 0x7f1789c077c0, attStat = 0x7f1789d05640, dbbStat = 0x7f1789d032d0, tdbb_status_vector = 0x7ffc42585230, tdbb_quantum = 100, tdbb_flags = 0, tdbb_temp_traid = 0, tdbb_bdbs = {> = { = { = { pool = @0x7f178a4b26c0}, }, buffer = {0x0, 0xffffffffffffffc8, 0x1, 0x0, 0x0, 0x0, 0x0, 0xfffffffffffffff0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}, count = 0, capacity = 16, data = 0x7ffc42584428}, tdbb_thread = 0x7f1789c08010, tdbb_reqTimer = {ptr = 0x0}}} guardDbInit = {m_mutex = 0x7f1789c074e0, m_locked = 1} options = {dpb_wal_action = 0, dpb_sweep_interval = -1, dpb_page_buffers = 0, dpb_set_page_buffers = false, dpb_buffers = 256, dpb_verify = 0, dpb_sweep = 0, dpb_dbkey_scope = 0, dpb_page_size = 1024, dpb_activate_shadow = false, dpb_delete_shadow = false, dpb_no_garbage = false, dpb_shutdown = 0, dpb_shutdown_delay = 0, dpb_online = 0, dpb_force_write = false, dpb_set_force_write = false, dpb_no_reserve = false, dpb_set_no_reserve = false, dpb_interp = 0, dpb_single_user = false, dpb_overwrite = false, dpb_sec_attach = false, dpb_disable_wal = false, dpb_connect_timeout = 0, dpb_dummy_packet_interval = 0, dpb_db_readonly = false, dpb_set_db_readonly = false, dpb_gfix_attach = false, dpb_gstat_attach = false, dpb_sql_dialect = 1, dpb_set_db_sql_dialect = 0, dpb_remote_pid = 0, dpb_no_db_triggers = false, dpb_gbak_attach = false, dpb_utf8_filename = true, dpb_ext_call_depth = 0, dpb_flags = 0, dpb_nolinger = false, dpb_reset_icu = false, dpb_map_attach = false, dpb_remote_flags = 0, dpb_replica_mode = REPLICA_NONE, --Type for more, q to quit, c to continue without paging-- dpb_set_db_replica = false, dpb_clear_map = false, dpb_user_name = { = { = { = { pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\000\000\000\000\060\351\227;Խ4\000\000\000\000\000\000\000\000\240tċ\027\177\000\000\060NXB", stringBuffer = 0x7ffc42584c94 "", stringLength = 0, bufferSize = 32}, }, dpb_auth_block = {> = { = { = { pool = @0x7f178a4b26c0}, }, }, count = 0, capacity = 0, data = 0x0}, dpb_role_name = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\177\000\000\063\217\"\212\027\177\000\000Q߮\213\027\177\000\000\300`\343\211\027\177\000\000\272\260\267\213", stringBuffer = 0x7ffc42584cec "", stringLength = 0, bufferSize = 32}, }, dpb_journal = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\177\000\000h\005\250\213\027\177\000\000\020\000\000\000\000\000\000\000hNXB\374\177\000\000\020\000\000", stringBuffer = 0x7ffc42584d2c "", stringLength = 0, bufferSize = 32}, }, dpb_lc_ctype = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\177\000\000\240tċ\027\177\000\000lG\257\213\027\177\000\000\246\000\000\000\000\000\000\000\020\000\000", stringBuffer = 0x7ffc42584d6c "", stringLength = 0, bufferSize = 32}, }, dpb_working_directory = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 65534, inlineBuffer = "\000\177\000\000.\000\000\000\000\000\000\000\t\000\000\000;Խ4HOXB\374\177\000\000\240tċ", stringBuffer = 0x7ffc42584dac "", stringLength = 0, bufferSize = 32}, }, dpb_set_db_charset = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\177\000\000h\000\000\000\000\000\000\000vN\257\213\027\177\000\000\001\000\000\000\000\000\000\000\211ۮ\213", stringBuffer = 0x7ffc42584dec "", stringLength = 0, bufferSize = 32}, }, dpb_network_protocol = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\000\000\000\240wċ\027\177\000\000\000\060\351\227;Խ48wċ\027\177\000\000\001\000\000", stringBuffer = 0x7ffc42584e2c "", stringLength = 0, bufferSize = 32}, }, dpb_remote_crypt = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 65534, inlineBuffer = "\000\177\000\000\240PXB\374\177\000\000\070\361\256\213\027\177\000\000HOXB\374\177\000\000\000", , stringBuffer = 0x7ffc42584e6c "", stringLength = 0, bufferSize = 32}, }, dpb_remote_address = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\177\000\000 \000\000\000\000\000\000\000\200綋\027\177\000\000\001\000\000\000\000\000\000\000\060QXB", stringBuffer = 0x7ffc42584eac "", stringLength = 0, bufferSize = 32}, }, dpb_remote_host = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\000\000\000\030U\250\213\027\177\000\000\000\000\000\000\000\000\000\000X&K\212\027\177\000\000\001\000\000", stringBuffer = 0x7ffc42584eec "", stringLength = 0, bufferSize = 32}, }, dpb_remote_os_user = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\177\000\000\300\177\300\211\027\177\000\000\303\367ۉ\027\177\000\000\220\222܉\027\177\000\000\000I܉", stringBuffer = 0x7ffc42584f2c "", stringLength = 0, bufferSize = 32}, }, dpb_client_version = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\177\000\000\070T\250\213\027\177\000\000x\325\352\211\027\177\000\000\000\000\000\000\000\000\000\000\310oċ", stringBuffer = 0x7ffc42584f6c "", stringLength = 0, bufferSize = 32}, }, dpb_remote_protocol = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, --Type for more, q to quit, c to continue without paging-- inlineBuffer = "\000\177\000\000\000T\250\213\027\177\000\000\000\060\351\227;Խ40T\250\213\027\177\000\000@W\250\213", stringBuffer = 0x7ffc42584fac "", stringLength = 0, bufferSize = 32}, }, dpb_trusted_login = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\177\000\000\001\000\000\000\000\000\000\000HT\250\213\027\177\000\000\000&\256\213\027\177\000\000\340\236\264\213", stringBuffer = 0x7ffc42584fec "", stringLength = 0, bufferSize = 32}, }, dpb_remote_process = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 65534, inlineBuffer = "\000\177\000\000`Fŋ\027\177\000\000\210PXB\374\177\000\000\000wċ\027\177\000\000\360\005\250\213", stringBuffer = 0x7ffc4258502c "", stringLength = 0, bufferSize = 32}, }, dpb_org_filename = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 65534, inlineBuffer = "metadata.fdb\000Bŋ\027\177\000\000\350`ċ\027\177\000\000\000\207\223\003", stringBuffer = 0x7ffc4258506c "metadata.fdb", stringLength = 12, bufferSize = 32}, }, dpb_config = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = '\000' , "\211ۮ\213\027\177\000\000`Fŋ\027\177\000\000", , stringBuffer = 0x7ffc425850ac "", stringLength = 0, bufferSize = 32}, }, dpb_session_tz = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\000\000\000xBŋ\027\177\000\000\003\000\000\000\v\000\000\000\240PXB\374\177\000\000\240wċ", stringBuffer = 0x7ffc425850ec "", stringLength = 0, bufferSize = 32}, }, dpb_set_bind = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 65534, inlineBuffer = "\000\000\000\000\020QXB\374\177\000\000\240wċ\027\177\000\000\240wċ\027\177\000\000\376\377\000", stringBuffer = 0x7ffc4258512c "", stringLength = 0, bufferSize = 32}, }, dpb_decfloat_round = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\000\000\000\240wċ\027\177\000\000\376\377\000\000Engine13\000\000\000\000\000\000\000", stringBuffer = 0x7ffc4258516c "", stringLength = 0, bufferSize = 32}, }, dpb_decfloat_traps = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\000\000\000\240wċ\027\177\000\000\376\377\000\000\000\177\000\000`Fŋ\027\177\000\000\003\000\000", stringBuffer = 0x7ffc425851ac "", stringLength = 0, bufferSize = 32}, }, static DPB_FLAGS_MASK = 1} expanded_name = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 65534, inlineBuffer = "\000etadata.fdb", '\000' , stringBuffer = 0x7f1789d00dc0 "/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/metadata.fdb", stringLength = 61, bufferSize = 4097}, } is_alias = config = {ptr = 0x7f1789c096b0} mapping = {static MAP_NO_FLAGS = 0, static MAP_THROW_NOT_FOUND = 1, static MAP_ERROR_HANDLER = 2, static MAP_ERROR_NOT_THROWN = 1, static MAP_DOWN = 2, static MAPPING_CACHE = 0, static SYSTEM_PRIVILEGES_CACHE = 1, static ALL_CACHE = 65535, flags = 1, internalFlags = 1, cryptCallback = 0x0, authMethod = 0x0, newAuthBlock = 0x0, systemPrivileges = 0x0, authBlock = 0x7ffc42584cc8, mainAlias = 0x0, mainDb = 0x0, securityAlias = 0x7f178ba866b0 "/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/security4.fdb", errorMessagesContext = 0x0, sqlRole = 0x0, secExpanded = { = { = { = {pool = @0x7f178a4b26c0}, }, static npos = , max_length = 65534, inlineBuffer = "\000\177\000\000\374\372\253\213", '\000' , "\033\v\000\000\000\000\000\000\005\000\000", stringBuffer = 0x7f1789c089b0 "/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/security4.fdb", stringLength = 79, bufferSize = 80}, }, dbCache = {ptr = 0x0}, secCache = {ptr = 0x0}, mainHandle = {> = { ptr = 0x0}, }} attachment = 0x7f1789d05480 #19 0x00007f178a1c875c in Firebird::IProviderBaseImpl for more, q to quit, c to continue without paging-- Firebird::Inherit > > > > > >::cloopcreateDatabaseDispatcher (self=, status=0x7ffc42585d38, fileName=0x7f178b4db4c0 "/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/metadata.fdb", dpbLength=32, dpb=0x7ffc42585508 "\001M") at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/include/firebird/IdlFbInterfaces.h:11660 status2 = {> = { > > > >> = { > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = {0x7ffc42585370}, cloopVTable = 0x7f178a4b8af0 > > > >::IStatusBaseImpl(Firebird::DoNotInherit)::vTable>, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178a4aa2c8 }, }, }, }, }, }, status = 0x7ffc42585d38, dirty = false}, } #20 0x00007f178bba8f45 in Firebird::IProvider::createDatabase (dpb=, dpbLength=, fileName=, status=0x7ffc42585d30, this=0x7f1789c07fc8) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/include/firebird/IdlFbInterfaces.h:2822 ret = 0x7ffc42585d38 ret = #21 Why::Dispatcher::attachOrCreateDatabase (this=0x7f178ba81170, status=0x7ffc42585d30, createFlag=true, filename=, dpbLength=, dpb=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/yvalve/why.cpp:6328 provider = 0x7f1789c07fc8 attachment = providerIterator = {pluginList = { = { = { = { pool = @0x7f178bc477a0}, }, max_length = 65534, inlineBuffer = "Remote, Engine13, Loopback\000\000\000\000\000", stringBuffer = 0x7ffc425855ac "Remote, Engine13, Loopback", stringLength = 26, bufferSize = 32}, }, masterInterface = {> = { = {}, ptr = 0x7f178bc54138 }, }, pluginInterface = {> = { = {}, ptr = 0x7f178bc544f8 }, }, knownConfig = {ptr = 0x7f178ba81580}, pluginSet = { ptr = 0x7f178ba85318}, currentPlugin = 0x7f1789c07fc8, ls = { = { = { pool = @0x7f178bc477a0}, }, > = { > > > >> = { > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = {0x7ffc425857b8}, cloopVTable = 0x7f178bc53700 > > > >::IStatusBaseImpl(Firebird::DoNotInherit)::vTable>, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, --Type for more, q to quit, c to continue without paging-- static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178bc450a8 }, }, }, }, }, }, errors = {> = { >> = {> = { = { = {pool = @0x7f178bc477a0}, }, buffer = {1, 0, 0, 0, 139739100505504, 4611686018427387904, 0, 0, 0, 0, 0}}, count = 3, capacity = 11, data = 0x7ffc42585628}, }, }, warnings = {> = { >> = {> = { = { = {pool = @0x7f178bc477a0}, }, buffer = {1, 0, 0}}, count = 3, capacity = 3, data = 0x7ffc42585698}, }, }}, }, status = {> = { > > > >> = { > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = {0x0}, cloopVTable = 0x7f178bc54660 > > > >::IStatusBaseImpl(Firebird::DoNotInherit)::vTable>, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178bc45740 }, }, }, }, }, }, status = 0x7ffc42585610, dirty = false}, }, interfaceType = 1} newDpb = { = { = { = {pool = @0x7f178bc477a0}, }, _vptr.ClumpletReader = 0x7f178bc31468 , cur_offset = 32, kind = Firebird::ClumpletReader::Tagged, spbState = 0 '\000', static_buffer = 0x7ffc42585ab8 "\001\066\001", static_buffer_end = 0x7ffc42585ac8 "", static dpbList = {{kind = Firebird::ClumpletReader::Tagged, tag = 1 '\001'}, {kind = Firebird::ClumpletReader::WideTagged, tag = 2 '\002'}, {kind = Firebird::ClumpletReader::EndOfList, tag = 0 '\000'}}, static spbList = }, sizeLimit = 1048576, kindList = 0x7f178bbdf8f0 , dynamic_buffer = {> = { = { = { pool = @0x7f178bc477a0}, }, buffer = "\001M\000\066\001\000?\004\001\000\000\000\004\004\000\004\000\000L\fmetadata.fdb\020\000\000\000\000\000\000\000\033\033\001", '\000' , "\033\377\001\000\000\000\000\000p\371\215\366\035V\000\000\260WXB\374\177\000\000\220UXB\374\177\000\000\200VXB\374\177\000\000\260XXB\374\177\000\000\004\001\276\213\027\177\000\000\366fr\213\027\177\000\000\260WXB\374\177\000"}, count = 32, capacity = 128, data = 0x7ffc42585508 "\001M"}, flag_overflow = false} utfData = orgFilename = { = { = { = {pool = @0x7f178bc477a0}, }, max_length = 65534, inlineBuffer = "metadata.fdb", '\000' , stringBuffer = 0x7ffc425853ec "metadata.fdb", stringLength = 12, bufferSize = 32}, } expandedFilename = { = { = { = {pool = @0x7f178bc477a0}, }, max_length = 65534, inlineBuffer = "\000etadata.fdb\000UXB\374\177", '\000' , stringBuffer = 0x7f178b4db4c0 "/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/metadata.fdb", stringLength = 61, bufferSize = 4097}, } config = {ptr = 0x7f178ba81580} temp = { >> = { >> = {> = { > > > >> = { > > > >> = { > > >> = { --Type for more, q to quit, c to continue without paging-- > > >> = { > >> = { >> = { >> = {> = { = { = { = { cloopDummy = {0x6174656d0000fffe}, cloopVTable = 0x7f178bc4e010 > > > >::IStatusBaseImpl(Firebird::DoNotInherit)::vTable>, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178bc38188 }, }, }, }, }, }, errors = {> = { >> = {> = { = { = {pool = @0x7f178bc477a0}, }, buffer = {1, 0, 0, 137438953484, 4611686018427387904, 0, 0, 0, 0, 0, 140721421571916}}, count = 3, capacity = 11, data = 0x7ffc42585720}, }, }, warnings = {> = { >> = {> = { = { = {pool = @0x7f178bc477a0}, }, buffer = {1, 0, 0}}, count = 3, capacity = 3, data = 0x7ffc42585790}, }, }}, }, }, localStatus = {139739105242787, 1, 2810385906583657353, 140721421572064, 140721421572140, 139739105884064, 3761121630114283518, 1, 139739104467849, 139739105883960, 139739104495468, 140721421572076, 16, 139739105884064, 7022348773946818558, 139739105883960, 3800427010438725633, 139739098039088, 3800427012987367424, 0}, localVector = 0x7ffc425857b8} currentStatus = 0x7ffc42585d30 entry = { = {savedMask = {__control_word = 895, __glibc_reserved1 = 65535, __status_word = 0, __glibc_reserved2 = 65535, __tags = 65535, __glibc_reserved3 = 65535, __eip = 0, __cs_selector = 0, __opcode = 0, __glibc_reserved4 = 0, __data_offset = 0, __data_selector = 0, __glibc_reserved5 = 65535, __mxcsr = 8064}}, shutdownMode = false} tempCheckStatusWrapper = {> = { > > > >> = { > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = {0x7ffc42585680}, cloopVTable = 0x7f178bc54660 > > > >::IStatusBaseImpl(Firebird::DoNotInherit)::vTable>, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178bc45740 }, }, }, }, }, }, status = 0x7ffc42585708, dirty = false}, } #22 0x00007f178bbaafb7 in Why::Dispatcher::createDatabase (dpb=0x7ffc42585ab8 "\001\066\001", dpbLength=, filename=, status=0x7ffc42585d30, this=0x7f178ba81170) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/yvalve/why.cpp:6244 No locals. #23 PREPARSE_execute (dialect=1, stmt_eaten=, stmt=..., ptrAtt=, status=0x7ffc42585d30) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/yvalve/preparse.cpp:320 token = { = { = { = {pool = @0x7f178bc477a0}, }, max_length = 4294967294, inlineBuffer = "1024\000SIZE", '\000' , stringBuffer = 0x7ffc425859bc "1024", stringLength = 4, bufferSize = 32}, } page_size = tks = { = { = {pool = @0x7f178bc477a0}, }, --Type for more, q to quit, c to continue without paging-- tokens = {> = { = { = { pool = @0x7f178bc477a0}, }, buffer = {{text = 0x7f178ba80fe0 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024", length = 6, origin = 0}, { text = 0x7f178ba80fe7 "DATABASE 'metadata.fdb' PAGE_SIZE 1024", length = 8, origin = 7}, {text = 0x7f178ba80ff0 "'metadata.fdb' PAGE_SIZE 1024", length = 14, origin = 16}, {text = 0x7f178ba80fff "PAGE_SIZE 1024", length = 9, origin = 31}, {text = 0x7f178ba81009 "1024", length = 4, origin = 41}, { text = 0x0, length = 0, origin = 0} }}, count = 5, capacity = 16, data = 0x7ffc42585b60}, str = { = { = { = {pool = @0x7f178bc477a0}, }, max_length = 4294967294, inlineBuffer = '\000' , stringBuffer = 0x7f178ba80fe0 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024", stringLength = 45, bufferSize = 64}, }, wsps = 0x7f178bbcaa7f " \t\r\n", qs = 0x7f178bbc97d6 "\"'", comms = 0x7f178bc34b20 <(anonymous namespace)::sqlComments>, seps = 0x7f178bbcaac0 "!\"#%&'()*+,-./:;<=>?@[\\]^`{|}~"} pos = 5 file_name = { = { = { = {pool = @0x7f178bc477a0}, }, max_length = 65534, inlineBuffer = "metadata.fdb", '\000' , stringBuffer = 0x7ffc425859fc "metadata.fdb", stringLength = 12, bufferSize = 32}, } dpb = { = { = { = {pool = @0x7f178bc477a0}, }, _vptr.ClumpletReader = 0x7f178bc31468 , cur_offset = 16, kind = Firebird::ClumpletReader::Tagged, spbState = 0 '\000', static_buffer = 0x0, static_buffer_end = 0x0, static dpbList = {{kind = Firebird::ClumpletReader::Tagged, tag = 1 '\001'}, { kind = Firebird::ClumpletReader::WideTagged, tag = 2 '\002'}, {kind = Firebird::ClumpletReader::EndOfList, tag = 0 '\000'}}, static spbList = }, sizeLimit = 1048576, kindList = 0x7f178bbdf8f0 , dynamic_buffer = {> = { = { = { pool = @0x7f178bc477a0}, }, buffer = "\001\066\001\000?\004\001\000\000\000\004\004\000\004", '\000' }, count = 16, capacity = 128, data = 0x7ffc42585ab8 "\001\066\001"}, flag_overflow = false} matched = dispatcher = qStrip = 0 hasUser = false context = context = hasUser = qStrip = tks = pos = token = file_name = dpb = page_size = matched = dispatcher = tokenPos = token = newToken = i = i = ex = #24 Why::UtilInterface::executeCreateDatabase (this=, status=0x7ffc42585d30, stmtLength=, creatDBstatement=, dialect=1, stmtIsCreateDb=0x0) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/yvalve/utl.cpp:593 stmtEaten = att = statement = { = { = { = {pool = @0x7f178bc477a0}, }, max_length = 4294967294, inlineBuffer = '\000' , stringBuffer = 0x7f178ba80f90 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024", stringLength = 45, bufferSize = 62}, } tempStatus = { = { = { pool = @0x0}, }, > = { for more, q to quit, c to continue without paging-- Firebird::IDisposableImpl > > > >> = { > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = { 0x7f178bc477a0 }, cloopVTable = 0x7f178ba80fe0, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178bc477a0 }, }, }, }, }, }, errors = {> = { >> = {> = { = { = {pool = @0x6}, }, buffer = {139739104022503, 30064771080, 139739104022512, 68719476750, 139739104022527, 133143986185, 139739104022537, 176093659140, 0, 0, 0}}, count = 0, capacity = 0, data = 0x0}, }, }, warnings = {> = { >> = {> = { = { = {pool = @0x0}, }, buffer = {0, 0, 0}}, count = 0, capacity = 0, data = 0x0}, }, }}, } crdbTrans = v3Error = tempCheckStatusWrapper = {> = { > > > >> = { > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = {0x7f178bc477a0 }, cloopVTable = 0x100000010, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178bc31468 }, }, }, }, }, }, status = 0x0, dirty = false}, } #25 0x00007f178bbabe2e in Firebird::IUtilBaseImpl > >::cloopexecuteCreateDatabaseDispatcher (self=, status=0x561df63dd2c8 , stmtLength=45, creatDBstatement=0x7f178b4cc330 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024", dialect=1, stmtIsCreateDb=0x0) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/include/firebird/IdlFbInterfaces.h:15407 status2 = {> = { > > > >> = { > > > >> = { > > >> = { > > >> = { > >> = { >> = { >> = {> = { = { = { = {cloopDummy = {0x561df63dd2c8 }, --Type for more, q to quit, c to continue without paging-- cloopVTable = 0x7f178bc54660 > > > >::IStatusBaseImpl(Firebird::DoNotInherit)::vTable>, static VERSION = 1}, static VERSION = 2}, static VERSION = 3, static STATE_WARNINGS = 1, static STATE_ERRORS = 2, static RESULT_ERROR = -1, static RESULT_OK = 0, static RESULT_NO_DATA = 1, static RESULT_SEGMENT = 2}, }, }, _vptr.IVersionedImpl = 0x7f178bc45740 }, }, }, }, }, }, status = 0x561df63dd2c8 , dirty = false}, } #26 0x0000561df6392251 in Firebird::IUtil::executeCreateDatabase (stmtIsCreateDb=0x0, dialect=1, creatDBstatement=0x7f178b4cc330 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024", stmtLength=45, status=0x561df63dd2c0 , this=0x7f178bc4ef98 ) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/include/firebird/IdlFbInterfaces.h:4537 ret = 0x7f178a4b26c0 ret = #27 create_db (statement=, d_name=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/temp/Release/isql/isql.cpp:5846 role = "\000\000\000\000\000\000\000\000\222$]\213\027\177", '\000' usr = "\000\307=\366\035V\000\000\376\377\377\377\061\060\062\064\000SIZE\000fdb'\000\213\027\177\000\000\000\000\000\000\000\000\000\000lG\257\213\027\177\000\000\\`XB\374\177\000\000\004\000\000\000 \000\000\000\000\304=\366\035V\000\000[n6\366\035V\000\000\070wċ\027\177\000\000\001\000\000\000\027\177", '\000' , "\060\351\227;Խ4\000\000\000\000\000\000\000\000\240tċ\027\177\000" psw = '\000' , "\060\351\227;Խ4" modifiedCreateStatement = { = { = { = {pool = @0x561df63dc700}, }, static npos = , max_length = 4294967294, inlineBuffer = '\000' , stringBuffer = 0x7f178b4cc330 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024", stringLength = 45, bufferSize = 62}, } quote = 34 '"' p = 0x0 dialect = 1 createWithoutRole = 0 ret = SKIP quotes = 0x561df63bbb7b "\"'" nlStatement = { = { = { = {pool = @0x561df63dc700}, }, static npos = , max_length = 4294967294, inlineBuffer = '\000' , stringBuffer = 0x7f178b4cbb80 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024\n", stringLength = 46, bufferSize = 62}, } toks = { = { = {pool = @0x561df63dc700}, }, tokens = {> = { = { = { pool = @0x561df63dc700}, }, buffer = {{text = 0x7f178b4cc2e0 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024\n", length = 6, origin = 0}, {text = 0x7f178b4cc2e7 "DATABASE 'metadata.fdb' PAGE_SIZE 1024\n", length = 8, origin = 7}, {text = 0x7f178b4cc2f0 "'metadata.fdb' PAGE_SIZE 1024\n", length = 14, origin = 16}, {text = 0x7f178b4cc2ff "PAGE_SIZE 1024\n", length = 9, origin = 31}, {text = 0x7f178b4cc309 "1024\n", length = 4, origin = 41}, {text = 0x561df63dc400 "\200\235=\366\035V", length = 1113088854, origin = 32764}, { text = 0x5 , length = 4, origin = 0}, { text = 0x7461646174656d27 , length = 1684418145, origin = 10082}, { text = 0x41 , length = 1113088444, origin = 32764}, { text = 0x42 , length = 4130817936, origin = 22045}, {text = 0x0, length = 5, origin = 32535}, { text = 0x80 , length = 2337062448, origin = 32535}, {text = 0x0, length = 0, origin = 0}, { text = 0x561df63dc700 "", length = 65534, origin = 0}, {text = 0x0, length = 0, origin = 0}, {text = 0x0, length = 0, origin = 0}}}, count = 5, capacity = 16, data = 0x7ffc425860e0}, str = { = { = { = {pool = @0x561df63dc700}, }, static npos = , max_length = 4294967294, inlineBuffer = "\000\000\000\000\240tċ\027\177\000\000\211ۮ\213\027\177\000\000\000\000\000\000\000\000\000\000", , stringBuffer = 0x7f178b4cc2e0 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024\n", stringLength = 46, bufferSize = 64}, }, wsps = 0x561df63bbb76 " \t\r\n", qs = 0x561df63bbb7b "\"'", comms = 0x561df63da020 <(anonymous namespace)::sqlComments>, seps = 0x561df63bbbc0 "!\"#%&'()*+,-./:;<=>?@[\\]^`{|}~"} KEY_USER = 0 --Type for more, q to quit, c to continue without paging-- KEY_PASS = 1 KEY_ROLE = 2 KEY_NAMES = 3 KEY_SET = 4 keys = {{text = 0x561df63b995b "USER", has = false}, {text = 0x561df63be243 "PASSWORD", has = false}, {text = 0x561df63b94ac "ROLE", has = false}, { text = 0x561df63bbbb4 "NAMES", has = false}, {text = 0x561df63bbf40 "SET", has = false}} #28 0x0000561df63af3f4 in frontend (statement=0x7f178b4bc8c0 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024") at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/temp/Release/isql/isql.cpp:6706 errbuf = "`\r\250\213\027\177\000\000A\000\000\000B\000\000\000\240wċ\027\177\000\000\376\377\000\000/tmp/", '\000' , ", "\001\000\000\000\000\000\000\000\211ۮ\213\027\177\000\000\240wċ\027\177\000\000lG\257\213\027\177\000\000/lib/fir\020\000\000\000\000\000\000\000stem", '\000' , "\070wċ\027\177\000\000\001\000\000\000\374"... parms = {0x7f178ba80f30 "CREATE", 0x7f178ba80ef0 "DATABASE", 0x7f178ba80eb0 "'METADATA.FDB'", 0x7f178ba80e70 "PAGE_SIZE", 0x7f178ba80f50 "1024", 0x7ffc4258635b "", 0x7ffc4258635c "", 0x7ffc4258635d "", 0x7ffc4258635e "", 0x7ffc4258635f ""} lparms = {0x7f178ba80f10 "CREATE", 0x7f178ba80ed0 "DATABASE", 0x7f178ba80e90 "'metadata.fdb'", 0x7f178ba80e50 "PAGE_SIZE", 0x7f178ba80f70 "1024", 0x7ffc4258635b "", 0x7ffc4258635c "", 0x7ffc4258635d "", 0x7ffc4258635e "", 0x7ffc4258635f ""} parm_defaults = {"", "", "A", "", "", "", "", "", "", ""} cmd = 0x7f178b4bc8c0 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024" bad_dialect_buf = "\002\000\000\000\000\000\000\000h\377\377\377\377\377\377\377`\347\215\366\035V\000\000\200FU\213\027\177\000\000\060\000\000\000\000\000\000\000\360Wp\213\027\177\000\000\060rXB\374\177\000\000W!\260\213\027\177\000\000\200qXB\374\177\000\000\300\r\250\213\027\177\000\000\f\203\274\213\027\177\000\000\\rXB\374\177\000\000\001\000\000\000\000\000\000\000\211ۮ\213\027\177\000\000\260qXB\374\177\000\000lG\257\213\027\177\000\000\260qXB\374\177\000\000\020\000\000\000\000\000\000\000\240wċ\027\177\000\000\376\377\377\377/var8wċ\027\177\000\000\001\000\000\000d/tzdata\000\177\000\000\000\060\351\227;Խ4\274qXB\374\177\000\000\240tċ\027"... bad_dialect = false ret = SKIP frontoptions = { = {m_options = 0x561df63da900 , m_size = 17, m_wrong = 15}, } options = {{kw = 0, text = 0x561df63be13a "SHOW", abbrlen = 0}, {kw = 1, text = 0x561df63be13f "ADD", abbrlen = 0}, {kw = 2, text = 0x561df63be143 "COPY", abbrlen = 0}, {kw = 3, text = 0x561df63bbb64 "BLOBVIEW", abbrlen = 0}, {kw = 3, text = 0x561df63bbb6d "BLOBDUMP", abbrlen = 0}, {kw = 4, text = 0x561df63bbfb5 "OUTPUT", abbrlen = 3}, {kw = 5, text = 0x561df63bd26d "SHELL", abbrlen = 0}, {kw = 6, text = 0x561df63bbf40 "SET", abbrlen = 0}, { kw = 7, text = 0x561df63be00b "CREATE", abbrlen = 0}, {kw = 8, text = 0x561df63be018 "DROP", abbrlen = 0}, {kw = 9, text = 0x561df63be036 "CONNECT", abbrlen = 0}, {kw = 10, text = 0x561df63ba2ed "EDIT", abbrlen = 0}, {kw = 11, text = 0x561df63bbfbc "INPUT", abbrlen = 2}, {kw = 12, text = 0x561df63be148 "QUIT", abbrlen = 0}, {kw = 13, text = 0x561df63be14d "EXIT", abbrlen = 0}, {kw = 14, text = 0x561df63be152 "?", abbrlen = 0}, {kw = 14, text = 0x561df63be154 "HELP", abbrlen = 0}} FrontOptions::show = FrontOptions::show FrontOptions::add = FrontOptions::add FrontOptions::copy = FrontOptions::copy FrontOptions::blobview = FrontOptions::blobview FrontOptions::output = FrontOptions::output FrontOptions::shell = FrontOptions::shell FrontOptions::set = FrontOptions::set FrontOptions::create = FrontOptions::create FrontOptions::drop = FrontOptions::drop FrontOptions::connect = FrontOptions::connect FrontOptions::edit = FrontOptions::edit FrontOptions::input = FrontOptions::input FrontOptions::quit = FrontOptions::quit FrontOptions::exit = FrontOptions::exit FrontOptions::help = FrontOptions::help FrontOptions::wrong = FrontOptions::wrong #29 0x0000561df63b5dc2 in get_statement (statement_prompt=0x561df63bd77a "SQL> ", statement=...) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/temp/Release/isql/isql.cpp:7636 valuable_count = 42 term_length = 0 lastChar = --Type for more, q to quit, c to continue without paging-- altQuoteChar = 0 '\000' ret = CONT comment_pos = 0 done = state = normal altQuoteStringLength = 0 con_prompt = "CON> \000\000\000ЅXB\374\177\000\000-\216\274\213\027\177\000\000-\216\274\213\027\177\000\000\000\000\000\000\000\000\000\000\375\302X\213\027\177\000\000'\216\274\213\027\177\000\000\000\000\000\000\027\177\000\000h\r\000\000\000\000\000\000\000\000\000\000\027\177\000\000\000\000\000\000\000\000\000\000\300\262ȋ\027\177\000\000\000\000\000\000 \177\000\000\000\000\000\000\006\000\000\000'\216\274\213\027\177\000\000\000\000\000\000\001", '\000' , "\377\377\377\377\377\377\377\377\000\000\000\000\000\000\000\000P~XB\374\177\000\000p\177\000B\000\000\000\000-\216\274\213\027\177\000\000\340\177XB\374\177\000\000\000\000\000\000\000\000\020\200\300\262"... non_comment_pos = 0 ret = con_prompt = valuable_count = comment_pos = non_comment_pos = term_length = done = normal = normal in_single_line_comment = in_single_line_comment in_block_comment = in_block_comment in_single_quoted_string = in_single_quoted_string in_double_quoted_string = in_double_quoted_string state = lastChar = altQuoteChar = altQuoteStringLength = c = errbuf = #30 do_isql () at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/temp/Release/isql/isql.cpp:6013 errbuf = "@{XB\374\177\000\000\001\000\000\000\000\000\000\000\340\374o\213\027\177\000\000\211\070X\213\027\177\000\000\062.2250738585072014e-308\000\220\204XB\374\177\000\000@\177XB\374\177\000\000Z:X\213\027\177\000\000$\000\000\000\000\000\000\000\062\000\000\000.\000\000\000\062\000\000\000\062\000\000\000\065\000\000\000\060\000\000\000\067\000\000\000\063\000\000\000\070\000\000\000\065\000\000\000\070\000\000\000\065\000\000\000\060\000\000\000\067\000\000\000\062\000\000\000\060\000\000\000\061\000\000\000\064\000\000\000e\000\000\000-\000\000\000\063\000\000\000\060\000\000\000\070\000\000\000\374\177\000\000\262-X\213\027\177\000\000\000\000\000\000\000\000\020\233"... stmt = { = { = { = {pool = @0x561df63dc700}, }, static npos = , max_length = 4294967294, inlineBuffer = "/* The contents of this file ar", stringBuffer = 0x7f178b4bc8c0 "CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024", stringLength = 46, bufferSize = 1024}, } ret = done = false Ofp = errbuf = stmt = ret = done = Ofp = #31 ISQL_main (argc=, argv=) at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/temp/Release/isql/isql.cpp:1817 tabname = "\000\327\000\000\000\000\000\000\000\020\000\000\000\000\000\000\001\000\000\000\005\000\000\000\000\340\000\000\000\000\000\000\000\340\000\000\000\000\000\000\000\340\000\000\000\000\000\000\071\236\000\000\000\000\000\000\071\236\000\000\000\000\000\000\000\020\000\000\000\000\000\000\001\000\000\000\004\000\000\000\000\200\001\000\000\000\000\000\000\200\001\000\000\000\000\000\000\200\001\000\000\000\000\000\000\320\000\000\000\000\000\000\000\320\000\000\000\000\000\000\a\000\000\000\00--Type for more, q to quit, c to continue without paging-- 0\000\000\000\217\377D^/\234g\216u\275W\213\027\177\000\000\020X\002\000\000\000\000\000\230}XB\374\177\000\000\003\000\000\000\000\000\000\000\340{XB\374\177\000\000\f", '\000' , "\220|XB\374\177\000\000"... ret = #32 0x00007f178b555a50 in __libc_start_call_main () from /lib64/libc.so.6 No symbol table info available. #33 0x00007f178b555b09 in __libc_start_main_impl () from /lib64/libc.so.6 No symbol table info available. #34 0x0000561df635f935 in _start () No symbol table info available. ```
AlexPeshkoff commented 2 years ago

On 9/20/22 16:11, Tomasz Kłoczko wrote:

Just found the issue

%build %{set_build_flags} \ %make_build -f makefile.shared library \ CFLAGS="$CFLAGS -DLTM_DESC -DUSE_LTM" \ EXTRALIBS="-ltommath" \ INCPATH="%{_includedir}" \ LDFLAGS="$LDFLAGS" \ LIBPATH="%{_libdir}" \ PREFIX="%{_prefix}"

%install %{set_build_flags} \ %make_install -f makefile.shared \ CFLAGS="$CFLAGS -DLTM_DESC -DUSE_LTM" \<<<=== this line was missing

Will be very good idea to add -DLTC_PTHREAD - w/o it you will have races in MT firebird code.

     INCPATH="%{_includedir}"  \
     INSTALL_OPTS="-m755"  \
     LIBPATH="%{_libdir}"  \
     PREFIX="%{_prefix}"

Relinking on install caused rebuild DSO without that symbol. After rebuild and reinstall it looks like it should ..

@.*** rpmbuild]$objdump -T /lib64/libtomcrypt.so.1 | grep ltm_desc 00000000000d5e40 g DO .data.rel.ro 00000000000001a0 Base ltm_desc

Strange because in Feodra spec file the same line is missing 🤔

really strange...

BTW. Why firebird is not using libcrypto from libxcrypt? 🤔

Licensing issue - but please do not ask me about detais...

Thank you very much for your help. (kicking me in right direction 😋 )

After fixing this issue I've stumped on another one

make gpre make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen' rm -f metadata.fdb /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql -q -i /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/dbs/metadata.sql make[3]: *** [Makefile:441: metadata.fdb] Segmentation fault (core dumped)

coreadm shows me

Tue 2022-09-20 14:04:08 BST 1134642 1000 1000 SIGSEGV present /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql

Tue 2022-09-20 14:04:08 BST 1134658 1000 1000 SIGSEGV present /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql

Tue 2022-09-20 14:04:08 BST 1134682 1000 1000 SIGSEGV present /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql

Tue 2022-09-20 14:04:08 BST 1134660 1000 1000 SIGSEGV present /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/gbak

Tue 2022-09-20 14:08:17 BST 1139474 1000 1000 SIGSEGV present /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/gen/Release/firebird/bin/isql

first core shows:

0  0x0000000000000000 in ?? ()

No symbol table info available.

1  0x00007f1789e4f0db in Jrd::NodeCopier::copy

(input=0x7f1789aef8b0, tdbb=0x7ffc425845c0, this=0x7ffc42581b40)     at /home/tkloczko/rpmbuild/BUILD/firebird-4.0.2/src/jrd/../jrd/../jrd/../jrd/../dsql/../dsql/Visitors.h:213         copy =         copy =

That's almost for sure (99%) pure virtual function call. Usual bug for dtor/ctor - but I doubt half-constructed node was passed into node copier. I try to lower compiler optimization level first of all in such cases (taking into an account that this stuff builds and works OK for some years).

kloczek commented 2 years ago

That's almost for sure (99%) pure virtual function call. Usual bug for dtor/ctor - but I doubt half-constructed node was passed into node copier. I try to lower compiler optimization level first of all in such cases (taking into an account that this stuff builds and works OK for some years).

I'm using only -O2 + LTO.

I've tested that LTO is not affecting this issue. -O0 it works. -O1 it works -O2 it does not work

So where is the bug? In firebird or compiler? 🤔

kloczek commented 2 years ago

Just found that -O2 and disabled LTO is not crashing.

kloczek commented 2 years ago

FYI I've opened https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107078

AlexPeshkoff commented 2 years ago

On 9/29/22 00:51, Tomasz Kłoczko wrote:

FYI I've opened https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107078

I'm afraid you should better close it. Failure with LTO is known issue in firebird.

kloczek commented 2 years ago

OK. Nevertheless if you have any closer details of that issue plese leave commenr here and I'll forward ir to gcc ticket.

AlexPeshkoff commented 2 years ago

On 9/29/22 12:39, Tomasz Kłoczko wrote:

OK. Nevertheless if you have any closer details of that issue plese leave commenr here and I'll forward ir to gcc ticket.

Firebird (that code left from interbase times) traditionally zeroes memory when allocating a lot of internal data structures using function like calloc(). When moving from C to C++ it was wrapped into operator new of some base class in order to avoid type casts, be able to use ctors and a lot of other c++ features. 20 years ago it was fine. Some years ago an optimization removing any data initalization in new (data returned by it is not initialized according to standard). By itself it did not affect the code - our calloc() is placed into separate file, it's not inline. But together with cross-file optimization... we get what you've seen.

Certainly correct fix is to move memory initialization into ctor - but that was not done yet.

May be there some more issues with LTO, I did not learn it deeper.

kloczek commented 2 years ago

Forwarded. Thank you.