On 7/5/26 04:30, Pavel Zotov wrote:
>
> Following script causes crash of 6.0.0.2060-637102f:
>
The root of this problem is GTT metadata cache changes, not packaged tables:
---
SQL> set term !;
SQL> set autoddl off!
SQL>
SQL>
SQL> create global temporary table pg_priv_table(id int, f01 boolean) on
commit preserve rows!
SQL> create index t_boo_priv_idx on pg_priv_table (id)!
SQL>
SQL> create procedure sp_fill as
CON> begin
CON> insert into pg_priv_table(id, f01) values(1, false);
CON> end!
SQL> execute procedure sp_fill!
SQL>
SQL> SELECT CURRENT_TRANSACTION AS TX_BEFORE_COMMIT FROM RDB$DATABASE!
TX_BEFORE_COMMIT
=====================
3
SQL>
SQL> commit!
SQL>
SQL> SELECT CURRENT_TRANSACTION AS TX_AFTER_COMMIT FROM RDB$DATABASE!
TX_AFTER_COMMIT
=====================
5
SQL> drop table pg_priv_table!
[Thread 0x7fffef3bd6c0 (LWP 380528) exited]
Thread 1 "isql" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=6,
no_tid=0) at ./nptl/pthread_kill.c:44
⚠️ warning: 44 ./nptl/pthread_kill.c: No such file or directory
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=6,
no_tid=0) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (threadid=<optimized out>, signo=6) at
./nptl/pthread_kill.c:89
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
at ./nptl/pthread_kill.c:100
#3 0x00007ffff7645b7e in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#4 0x00007ffff76288ec in __GI_abort () at ./stdlib/abort.c:77
#5 0x00007ffff4b5e654 in ERR_punt () at
/home/asfernandes/fb/dev/firebird-master.git/src/jrd/err.cpp:345
#6 0x00007ffff4b5dfae in ERR_post (v=...) at
/home/asfernandes/fb/dev/firebird-master.git/src/jrd/err.cpp:320
#7 0x00007ffff4b5dea0 in internal_error (status=335544333, number=147,
file=0x7ffff521003a
"/home/asfernandes/fb/dev/firebird-master.git/src/jrd/cch.cpp", line=2048)
at /home/asfernandes/fb/dev/firebird-master.git/src/jrd/err.cpp:454
#8 0x00007ffff4b5dcfa in ERR_bugcheck (number=147, file=0x7ffff521003a
"/home/asfernandes/fb/dev/firebird-master.git/src/jrd/cch.cpp", line=2048)
at /home/asfernandes/fb/dev/firebird-master.git/src/jrd/err.cpp:78
#9 0x00007ffff4b1d562 in CCH_release (tdbb=0x7fffffffa820,
window=0x7fffffff6f98, release_tail=false) at
/home/asfernandes/fb/dev/firebird-master.git/src/jrd/cch.cpp:2048
#10 0x00007ffff49154af in CCH_RELEASE (tdbb=0x7fffffffa820,
window=0x7fffffff6f98) at
/home/asfernandes/fb/dev/firebird-master.git/src/jrd/../jrd/cch_proto.h:99
#11 0x00007ffff4b12442 in BTR_mark_index_for_delete(Jrd::thread_db*,
Jrd::RelationPermanent*, unsigned short, Jrd::win*,
Ods::index_root_page*, unsigned long long)::$_0::operator()() const
(this=0x7fffffff6f18) at
/home/asfernandes/fb/dev/firebird-master.git/src/jrd/btr.cpp:1189
#12 0x00007ffff4b05685 in
Firebird::Cleanup<BTR_mark_index_for_delete(Jrd::thread_db*,
Jrd::RelationPermanent*, unsigned short, Jrd::win*,
Ods::index_root_page*, unsigned long long)::$_0>::~Cleanup
(this=0x7fffffff6f18) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/../common/classes/auto.h:346
#13 0x00007ffff4b05233 in BTR_mark_index_for_delete
(tdbb=0x7fffffffa820, rel=0x7fffeeb781b8, id=0, window=0x7fffffff6f98,
root=0x7ffff38b6000, tran=5)
at /home/asfernandes/fb/dev/firebird-master.git/src/jrd/btr.cpp:1261
#14 0x00007ffff4b838df in IDX_mark_index (tdbb=0x7fffffffa820,
relation=0x7fffeeb781a0, id=0) at
/home/asfernandes/fb/dev/firebird-master.git/src/jrd/idx.cpp:1003
#15 0x00007ffff4d12a5b in Jrd::DropIndexNode::step2
(this=0x7fffee3116d0, tdbb=0x7fffffffa820, transaction=0x7fffee292ad0)
at
/home/asfernandes/fb/dev/firebird-master.git/temp/debug/temp/Debug/dsql/DdlNodes.cpp:37911
#16 0x00007ffff4d0bad6 in Jrd::ModifyIndexNode::modify
(this=0x7fffee3116d0, tdbb=0x7fffffffa820, transaction=0x7fffee292ad0)
at
/home/asfernandes/fb/dev/firebird-master.git/temp/debug/temp/Debug/dsql/DdlNodes.cpp:35297
#17 0x00007ffff4ce05c6 in Jrd::ModifyIndexList::exec
(this=0x7fffffff7700, tdbb=0x7fffffffa820, transaction=0x7fffee292ad0)
at
/home/asfernandes/fb/dev/firebird-master.git/temp/debug/temp/Debug/dsql/DdlNodes.cpp:35376
#18 0x00007ffff4d037b3 in Jrd::DropRelationNode::execute
(this=0x7fffee313870, tdbb=0x7fffffffa820, dsqlScratch=0x7fffeea56b50,
transaction=0x7fffee292ad0)
at
/home/asfernandes/fb/dev/firebird-master.git/temp/debug/temp/Debug/dsql/DdlNodes.cpp:33646
#19 0x00007ffff4d635a6 in Jrd::DdlNode::executeDdl (this=0x7fffee313870,
tdbb=0x7fffffffa820, dsqlScratch=0x7fffeea56b50,
transaction=0x7fffee292ad0, trusted=false)
at
/home/asfernandes/fb/dev/firebird-master.git/src/include/../dsql/../dsql/../dsql/Nodes.h:221
#20 0x00007ffff4d62270 in Jrd::DsqlDdlRequest::execute
(this=0x7fffee311590, tdbb=0x7fffffffa820, traHandle=0x7fffffffa730,
inMetadata=0x0, inMsg=0x0, outMetadata=0x0,
outMsg=0x0, singleton=false) at
/home/asfernandes/fb/dev/firebird-master.git/src/dsql/DsqlRequests.cpp:980
#21 0x00007ffff4e41ecb in DSQL_execute (tdbb=0x7fffffffa820,
tra_handle=0x7fffffffa730, dsqlRequest=0x7fffee311590, in_meta=0x0,
in_msg=0x0, out_meta=0x0, out_msg=0x0)
at /home/asfernandes/fb/dev/firebird-master.git/src/dsql/dsql.cpp:194
---
Alex, can you take a look?
Adriano