Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-38961

int store_server_fields(TABLE *, FOREIGN_SERVER *): Assertion `thd->is_error()' failed

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      CREATE SERVER test FOREIGN DATA WRAPPER mysql OPTIONS (HOST'',PORT 4294967295);
      

      Leads to:

      CS 10.6.26 6b7e18552ceeadee7fc34a4448d8914114f85793 (Debug, Clang 18.1.3-11) Build 04/03/2026

      mariadbd: /test/10.6_dbg/sql/sql_servers.cc:605: int store_server_fields(TABLE *, FOREIGN_SERVER *): Assertion `thd->is_error()' failed.
      

      CS 10.6.26 6b7e18552ceeadee7fc34a4448d8914114f85793 (Debug, Clang 18.1.3-11) Build 04/03/2026

      Core was generated by `/test/MD040326-mariadb-10.6.26-linux-x86_64-dbg/bin/mariadbd --no-defaults --ma'.
      Program terminated with signal SIGABRT, Aborted.
      Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_kill.c.
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
       
      [Current thread is 1 (LWP 195631)]
      (gdb) bt
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
      #3  0x000075eb4704527e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
      #4  0x000075eb470288ff in __GI_abort () at ./stdlib/abort.c:79
      #5  0x000075eb4702881b in __assert_fail_base (fmt=0x75eb471d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5e4a8b8a2174 "thd->is_error()", file=file@entry=0x5e4a8b8cb273 "/test/10.6_dbg/sql/sql_servers.cc", line=line@entry=605, function=function@entry=0x5e4a8b8cb2fa "int store_server_fields(TABLE *, FOREIGN_SERVER *)") at ./assert/assert.c:96
      #6  0x000075eb4703b517 in __assert_fail (assertion=0x5e4a8b8a2174 "thd->is_error()", file=0x5e4a8b8cb273 "/test/10.6_dbg/sql/sql_servers.cc", line=605, function=0x5e4a8b8cb2fa "int store_server_fields(TABLE *, FOREIGN_SERVER *)") at ./assert/assert.c:105
      #7  0x00005e4a8aacf675 in store_server_fields (table=0x5e4a90b701b8, server=0x75ea3c012f60) at /test/10.6_dbg/sql/sql_servers.cc:605
      #8  0x00005e4a8aacf1d2 in insert_server_record (table=0x5e4a90b701b8, server=0x75ea3c012f60) at /test/10.6_dbg/sql/sql_servers.cc:662
      #9  0x00005e4a8aace0a8 in insert_server (thd=0x75ea3c000d58, server=0x75ea3c012f60) at /test/10.6_dbg/sql/sql_servers.cc:484
      #10 0x00005e4a8aacdaf6 in create_server (thd=0x75ea3c000d58, server_options=0x75ea3c006608) at /test/10.6_dbg/sql/sql_servers.cc:1140
      #11 0x00005e4a8a927dfd in mysql_execute_command (thd=0x75ea3c000d58, is_called_from_prepared_stmt=false) at /test/10.6_dbg/sql/sql_parse.cc:6097
      #12 0x00005e4a8a916134 in mysql_parse (thd=0x75ea3c000d58, rawbuf=0x75ea3c0134d0 "CREATE SERVER test FOREIGN DATA WRAPPER mysql OPTIONS (HOST'',PORT 4294967295)", length=78, parser_state=0x75eb44259a48)at /test/10.6_dbg/sql/sql_parse.cc:8201
      #13 0x00005e4a8a9135d9 in dispatch_command (command=COM_QUERY, thd=0x75ea3c000d58, packet=0x75ea3c00ade9 "CREATE SERVER test FOREIGN DATA WRAPPER mysql OPTIONS (HOST'',PORT 4294967295)", packet_length=78, blocking=true)at /test/10.6_dbg/sql/sql_parse.cc:1911
      #14 0x00005e4a8a916ce3 in do_command (thd=0x75ea3c000d58, blocking=true)at /test/10.6_dbg/sql/sql_parse.cc:1421
      #15 0x00005e4a8aad3e89 in do_handle_one_connection (connect=0x5e4a90d0c348, put_in_cache=true) at /test/10.6_dbg/sql/sql_connect.cc:1386
      #16 0x00005e4a8aad3c22 in handle_one_connection (arg=0x5e4a90cc6098)at /test/10.6_dbg/sql/sql_connect.cc:1298
      #17 0x000075eb4709caa4 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
      #18 0x000075eb47129c6c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Bug Detection Matrix

          Rel    o/d  Build   Commit                                    UniqueID observed             
      CS  10.6   dbg  040326  6b7e18552ceeadee7fc34a4448d8914114f85793  thd->is_error()|SIGABRT|store_server_fields|insert_server_record|insert_server|create_server
      CS  10.6   opt  040326  6b7e18552ceeadee7fc34a4448d8914114f85793  No bug found                  
      CS  10.11  dbg  040326  1855454d7749e3a38e11c4d58bec270ea768018a  No bug found                  
      CS  10.11  opt  040326  1855454d7749e3a38e11c4d58bec270ea768018a  No bug found                  
      CS  11.4   dbg  040326  a6e98760d9ded7803a752b9fb0a4b31ba6fb4c11  No bug found                  
      CS  11.4   opt  040326  a6e98760d9ded7803a752b9fb0a4b31ba6fb4c11  No bug found                  
      CS  11.8   dbg  040326  d477356e5b3365a18340ba17ea138eda14014687  No bug found                  
      CS  11.8   opt  040326  d477356e5b3365a18340ba17ea138eda14014687  No bug found                  
      CS  12.2   dbg  040326  d26a6f44c1f2119377e79a9540886c6d8c01472f  No bug found                  
      CS  12.2   opt  040326  d26a6f44c1f2119377e79a9540886c6d8c01472f  No bug found                  
      CS  12.3   dbg  040326  242f223b987367a96ed785291208b792f5d7ed59  No bug found                  
      CS  12.3   opt  040326  242f223b987367a96ed785291208b792f5d7ed59  No bug found                  
      CS  13.0   dbg  040326  6d35506647f93607c455ae3c49e0f81066c95ac7  No bug found                  
      CS  13.0   opt  040326  6d35506647f93607c455ae3c49e0f81066c95ac7  No bug found                  
      ES  10.6   dbg  040326  2a8c75174dee1bec46fec0791a0eeb7bbfceff49  No bug found                  
      ES  10.6   opt  040326  2a8c75174dee1bec46fec0791a0eeb7bbfceff49  No bug found                  
      ES  11.4   dbg  040326  cc9c445e7b4c2bff0277a6979769a62aa6077684  No bug found                  
      ES  11.4   opt  040326  cc9c445e7b4c2bff0277a6979769a62aa6077684  No bug found                  
      ES  11.8   dbg  040326  ec1b01cb0053124003f12051845b98d8293453ef  No bug found                  
      ES  11.8   opt  040326  ec1b01cb0053124003f12051845b98d8293453ef  No bug found                  
      

      Attachments

        Issue Links

          Activity

            People

              ycp Yuchen Pei
              saahil Saahil Alam
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.