Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
13.2, 13.3
-
Can result in hang or crash
Description
INSTALL PLUGIN sysconst_test SONAME 'func_test'; |
SELECT sysconst_test(); |
UNINSTALL PLUGIN sysconst_test;
|
SELECT 'a'; |
Leads to:
|
CS 13.2.0 52391ebe4feb56c8ccbbf33a29ea3acbb7b7cea7 (Debug, Clang 18.1.3-11) Build 13/11/2026 |
Core was generated by `/test/MD131126-mariadb-13.2.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --loo'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 std::type_info::name (this=0x7f56e806db80)at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/typeinfo:104
|
104 { return __name[0] == '*' ? __name + 1 : __name; }
|
[Current thread is 1 (LWP 2193976)]
|
(gdb) bt
|
#0 std::type_info::name (this=0x7f56e806db80)at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/typeinfo:104
|
#1 0x000063d598a2f9b9 in std::type_info::hash_code (this=0x7f56e806db80)at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/typeinfo:122
|
#2 0x000063d598a2f998 in std::type_index::hash_code (this=0x7755b80165f8)at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/typeindex:100
|
#3 0x000063d598a2f969 in std::hash<std::type_index>::operator() (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __ti=@0x7755b80165f8: {_M_target = 0x7f56e806db80})at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/typeindex:121
|
#4 0x000063d598a2fcb5 in std::__detail::_Hash_code_base<std::type_index, std::type_index, std::__detail::_Identity, std::hash<std::type_index>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, false>::_M_hash_code (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __k=@0x7755b80165f8: {_M_target = 0x7f56e806db80})at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/hashtable_policy.h:1310
|
#5 0x000063d598a2fc5d in std::__detail::_Hash_code_base<std::type_index, std::type_index, std::__detail::_Identity, std::hash<std::type_index>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, false>::_M_bucket_index (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __n=@0x7755b80165f8: {<std::__detail::_Hash_node_value_base<std::type_index>> = {_M_storage = {<std::aligned_storage<8ul, 8ul>> = {<No data fields>}, _M_storage = {__data = "\200\333\006\350V\177\000", __align = {<No data fields>}}}}, <std::__detail::_Hash_node_code_cache<false>> = {<No data fields>}, <No data fields>}, __bkt_count=13)at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/hashtable_policy.h:1341
|
#6 0x000063d598a2fbe1 in std::_Hashtable<std::type_index, std::type_index, std::allocator<std::type_index>, std::__detail::_Identity, std::equal_to<std::type_index>, std::hash<std::type_index>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::_M_bucket_index (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __n=@0x7755b80165f8: {<std::__detail::_Hash_node_value_base<std::type_index>> = {_M_storage = {<std::aligned_storage<8ul, 8ul>> = {<No data fields>}, _M_storage = {__data = "\200\333\006\350V\177\000", __align = {<No data fields>}}}}, <std::__detail::_Hash_node_code_cache<false>> = {<No data fields>}, <No data fields>})at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/hashtable.h:793
|
#7 0x000063d598a300bf in std::_Hashtable<std::type_index, std::type_index, std::allocator<std::type_index>, std::__detail::_Identity, std::equal_to<std::type_index>, std::hash<std::type_index>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::_M_insert_bucket_begin (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __bkt=1, __node=0x7755b8018c50)at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/hashtable.h:2029
|
#8 0x000063d598a2f791 in std::_Hashtable<std::type_index, std::type_index, std::allocator<std::type_index>, std::__detail::_Identity, std::equal_to<std::type_index>, std::hash<std::type_index>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::_M_insert_unique_node (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __bkt=1, __code=4017073295431501436, __node=0x7755b8018c50, __n_elt=1)at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/hashtable.h:2186
|
#9 0x000063d598a2f2a3 in std::_Hashtable<std::type_index, std::type_index, std::allocator<std::type_index>, std::__detail::_Identity, std::equal_to<std::type_index>, std::hash<std::type_index>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::_M_insert_unique<std::type_index, std::type_index, std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::type_index, false> > > > (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __k=@0x7f56e80bc5c0: {_M_target = 0x63d59a0f1e18 <typeinfo for Item_string>}, __v=@0x7f56e80bc5c0: {_M_target = 0x63d59a0f1e18 <typeinfo for Item_string>}, __node_gen=@0x7f56e80bc448: {_M_h = @0x63d59a490b10})at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/hashtable.h:2278
|
#10 0x000063d598a2f072 in std::_Hashtable<std::type_index, std::type_index, std::allocator<std::type_index>, std::__detail::_Identity, std::equal_to<std::type_index>, std::hash<std::type_index>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::_M_insert_unique_aux<std::type_index, std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::type_index, false> > > > (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __arg=@0x7f56e80bc5c0: {_M_target = 0x63d59a0f1e18 <typeinfo for Item_string>}, __node_gen=@0x7f56e80bc448: {_M_h = @0x63d59a490b10})at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/hashtable.h:904
|
#11 0x000063d598a2efd6 in std::_Hashtable<std::type_index, std::type_index, std::allocator<std::type_index>, std::__detail::_Identity, std::equal_to<std::type_index>, std::hash<std::type_index>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::_M_insert<std::type_index, std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::type_index, false> > > > (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __arg=@0x7f56e80bc5c0: {_M_target = 0x63d59a0f1e18 <typeinfo for Item_string>}, __node_gen=@0x7f56e80bc448: {_M_h = @0x63d59a490b10})at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/hashtable.h:916
|
#12 0x000063d598a2ef1c in std::__detail::_Insert<std::type_index, std::type_index, std::allocator<std::type_index>, std::__detail::_Identity, std::equal_to<std::type_index>, std::hash<std::type_index>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true>, true>::insert (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __v=@0x7f56e80bc5c0: {_M_target = 0x63d59a0f1e18 <typeinfo for Item_string>})at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/hashtable_policy.h:1075
|
#13 0x000063d598a22a4a in std::unordered_set<std::type_index, std::hash<std::type_index>, std::equal_to<std::type_index>, std::allocator<std::type_index> >::insert (this=0x63d59a490b10 <Item::dbug_check_shallow_copy_type(THD*) const::checked_types>, __x=@0x7f56e80bc5c0: {_M_target = 0x63d59a0f1e18 <typeinfo for Item_string>})at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unordered_set.h:433
|
#14 0x000063d598a1f741 in Item::dbug_check_shallow_copy_type (this=0x7755b801ac40, thd=0x7755b8000d60)at /test/13.2_dbg/sql/item.cc:12892
|
#15 0x000063d5984b077c in Query_arena::free_items (this=0x7755b8000d78)at /test/13.2_dbg/sql/sql_class.cc:4365
|
#16 0x000063d5984b0666 in THD::cleanup_after_query (this=0x7755b8000d60)at /test/13.2_dbg/sql/sql_class.cc:2646
|
#17 0x000063d598552a90 in mysql_parse (thd=0x7755b8000d60, rawbuf=0x7755b801a6b0 "SELECT 'a'", length=10, parser_state=0x7f56e80bca80)at /test/13.2_dbg/sql/sql_parse.cc:8044
|
#18 0x000063d59854fced in dispatch_command (command=COM_QUERY, thd=0x7755b8000d60, packet=0x7755b800b6a1 "", packet_length=10, blocking=true) at /test/13.2_dbg/sql/sql_parse.cc:1903
|
#19 0x000063d5985534d3 in do_command (thd=0x7755b8000d60, blocking=true)at /test/13.2_dbg/sql/sql_parse.cc:1437
|
#20 0x000063d59875f4e9 in do_handle_one_connection (connect=0x63d5bcf4a5d0, put_in_cache=true) at /test/13.2_dbg/sql/sql_connect.cc:1529
|
#21 0x000063d59875f28e in handle_one_connection (arg=0x63d5bcee31f0)at /test/13.2_dbg/sql/sql_connect.cc:1441
|
#22 0x00007f570e69cb64 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#23 0x00007f570e729e8c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
Bug Detection Matrix |
Rel o/d Build Commit UniqueID observed
|
CS 10.11 dbg 031126 8034c5bcaf3da89151cdae2a22e10d07aba5de45 No bug found
|
CS 10.11 opt 031126 8034c5bcaf3da89151cdae2a22e10d07aba5de45 No bug found
|
CS 11.4 dbg 031126 3060a8806d76b7e7379925b2f0e46d65054011ae No bug found
|
CS 11.4 opt 031126 3060a8806d76b7e7379925b2f0e46d65054011ae No bug found
|
CS 11.8 dbg 031126 ebde32c352878e57a73853a926eb9be99be91217 No bug found
|
CS 11.8 opt 031126 ebde32c352878e57a73853a926eb9be99be91217 No bug found
|
CS 12.3 dbg 111126 691265a82e526e336e56c32fc8a98a74eea544f7 No bug found
|
CS 12.3 opt 111126 691265a82e526e336e56c32fc8a98a74eea544f7 No bug found
|
CS 13.0 dbg 121126 620a4b5624222048fece7fe1789978ae0675cae2 No bug found
|
CS 13.0 opt 121126 620a4b5624222048fece7fe1789978ae0675cae2 No bug found
|
CS 13.1 dbg 041126 5290908f05d1b580cf2bc17dee3c7a8527ae2a53 No bug found
|
CS 13.1 opt 041126 5290908f05d1b580cf2bc17dee3c7a8527ae2a53 No bug found
|
CS 13.2 dbg 131126 52391ebe4feb56c8ccbbf33a29ea3acbb7b7cea7 SIGSEGV|std::type_info::name|std::type_info::hash_code|std::type_index::hash_code|std::hash<std::type_index>::operatortypeindex
|
CS 13.2 opt 131126 52391ebe4feb56c8ccbbf33a29ea3acbb7b7cea7 No bug found
|
ES 10.6 dbg 191126 7e89682f634f453777f62c6e00179f22ecbf02ce No bug found
|
ES 10.6 opt 191126 7e89682f634f453777f62c6e00179f22ecbf02ce No bug found
|
ES 11.4 dbg 060526 90f707057d44f1b5c013a0c3672fd12f32ea7085 No bug found
|
ES 11.4 opt 060526 90f707057d44f1b5c013a0c3672fd12f32ea7085 No bug found
|
ES 11.8 dbg 060526 1499789de285a8109d68d79347de0281865b28f4 No bug found
|
ES 11.8 opt 060526 1499789de285a8109d68d79347de0281865b28f4 No bug found
|
ES 12.3 dbg 280926 082387a5f3cbb877157998bb4baa95928f4aa121 No bug found
|
ES 12.3 opt 280926 082387a5f3cbb877157998bb4baa95928f4aa121 No bug found
|
Attachments
Issue Links
- is caused by
-
MDEV-41631 Check the class of the copy made by Item::shallow_copy()
-
- Closed
-