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

main.lotofstack fails with UBSAN

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6, 10.11, 11.4, 11.8
    • 10.6, 10.11, 11.4, 11.8
    • Tests
    • None

    Description

      10.6 764b893cb7f7492b587541fea1880cd7cc91d743

      main.lotofstack                          [ fail ]
              Test ended at 2025-09-16 20:33:32
       
      CURRENT_TEST: main.lotofstack
      mysqltest: At line 109: query 'call bug10100p(255, @var)' succeeded - should have failed with error ER_STACK_OVERRUN_NEED_MORE (1436)...
       
      The result from queries just before the failure was:
      < snip >
      create procedure bug10100pc(level int, lim int)
      begin
      declare lv int;
      declare c cursor for select a from t3;
      open c;
      if level < lim then
      select level;
      fetch c into lv;
      select lv;
      update t3 set a=level+lv;
      FLUSH TABLES;
      call bug10100pc(level+1, lim);
      else
      select * from t3;
      end if;
      close c;
      end|
      set @@max_sp_recursion_depth=255|
      set @var=1|
      call bug10100p(255, @var)|
       
      More results from queries before failure can be found in /share8t/bld/10.6-bug/mysql-test/var/log/lotofstack.log
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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