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

Server crashes upon shutdown after unsuccessful start with wrong innodb_page_size

    XMLWordPrintable

Details

    Description

      MDEV-13093, still reproducible

      --disable_abort_on_error
      --source include/have_innodb.inc
       --let $restart_parameters= --innodb-page-size=4K --innodb-buffer-pool-size=2G
      --source include/restart_mysqld.inc
      select 1;
      

      10.2 37ffdb44ef96

      2019-01-25 18:17:43 140093980502208 [ERROR] InnoDB: Data file './ibdata1' uses page size 16384, but the innodb_page_size start-up parameter is 4096
      2019-01-25 18:17:43 140093980502208 [ERROR] InnoDB: Corrupted page [page id: space=0, page number=0] of datafile './ibdata1' could not be found in the doublewrite buffer.
      2019-01-25 18:17:43 140093980502208 [ERROR] InnoDB: Plugin initialization aborted at srv0start.cc[1895] with error Generic error
      2019-01-25 18:17:45 140093980502208 [ERROR] Plugin 'InnoDB' init function returned error.
      2019-01-25 18:17:45 140093980502208 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
      

      2019-01-23 20:24:27 0 [ERROR] InnoDB: mmap(154927104 bytes) failed; errno 12
      2019-01-23 20:24:27 0 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
      2019-01-23 20:24:27 0 [ERROR] InnoDB: Plugin initialization aborted at srv0start.cc[1489] with error Generic error
      2019-01-23 20:24:27 0 [Note] InnoDB: Starting shutdown...
      =================================================================
      ==32145==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x628000008170 in thread T0
          #0 0x7fa60fc5fb2a in operator delete(void*) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99b2a)
          #1 0x563b4a3ff15a in LatchCounter::~LatchCounter() /10.4/storage/innobase/include/sync0types.h:580
          #2 0x563b4a403611 in LatchMeta<LatchCounter>::~LatchMeta() /10.4/storage/innobase/include/sync0types.h:759
          #3 0x563b4a3fea59 in sync_latch_meta_destroy /10.4/storage/innobase/sync/sync0debug.cc:1541
          #4 0x563b4a3fee70 in sync_check_close() /10.4/storage/innobase/sync/sync0debug.cc:1744
          #5 0x563b4a3e70ec in innodb_shutdown() /10.4/storage/innobase/srv/srv0start.cc:2528
          #6 0x563b4a063a74 in innodb_init /10.4/storage/innobase/handler/ha_innodb.cc:4256
          #7 0x563b4983f2a2 in ha_initialize_handlerton(st_plugin_int*) /10.4/sql/handler.cc:523
          #8 0x563b4916be6a in plugin_initialize /10.4/sql/sql_plugin.cc:1437
          #9 0x563b4916d6d7 in plugin_init(int*, char**, int) /10.4/sql/sql_plugin.cc:1719
          #10 0x563b48ead3e7 in init_server_components /10.4/sql/mysqld.cc:5333
          #11 0x563b48eaf328 in mysqld_main(int, char**) /10.4/sql/mysqld.cc:5862
          #12 0x563b48e9945f in main /10.4/sql/main.cc:25
          #13 0x7fa60e2ee82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
          #14 0x563b48e99338 in _start (/10.4/sql/mysqld+0xe61338)
       
      0x628000008170 is located 112 bytes inside of 14976-byte region [0x628000008100,0x62800000bb80)
      freed by thread T0 here:
          #0 0x7fa60fc5e2ca in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
          #1 0x563b4a530139 in buf_pool_free(unsigned long) /10.4/storage/innobase/buf/buf0buf.cc:2062
          #2 0x563b4a530046 in buf_pool_init(unsigned long, unsigned long) /10.4/storage/innobase/buf/buf0buf.cc:2031
          #3 0x563b4a3e2025 in srv_start(bool) /10.4/storage/innobase/srv/srv0start.cc:1484
          #4 0x563b4a063a60 in innodb_init /10.4/storage/innobase/handler/ha_innodb.cc:4253
          #5 0x563b4983f2a2 in ha_initialize_handlerton(st_plugin_int*) /10.4/sql/handler.cc:523
          #6 0x563b4916be6a in plugin_initialize /10.4/sql/sql_plugin.cc:1437
          #7 0x563b4916d6d7 in plugin_init(int*, char**, int) /10.4/sql/sql_plugin.cc:1719
          #8 0x563b48ead3e7 in init_server_components /10.4/sql/mysqld.cc:5333
          #9 0x563b48eaf328 in mysqld_main(int, char**) /10.4/sql/mysqld.cc:5862
          #10 0x563b48e9945f in main /10.4/sql/main.cc:25
          #11 0x7fa60e2ee82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
       
      previously allocated by thread T0 here:
          #0 0x7fa60fc5e79a in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9879a)
          #1 0x563b4a52ffa6 in buf_pool_init(unsigned long, unsigned long) /10.4/storage/innobase/buf/buf0buf.cc:2020
          #2 0x563b4a3e2025 in srv_start(bool) /10.4/storage/innobase/srv/srv0start.cc:1484
          #3 0x563b4a063a60 in innodb_init /10.4/storage/innobase/handler/ha_innodb.cc:4253
          #4 0x563b4983f2a2 in ha_initialize_handlerton(st_plugin_int*) /10.4/sql/handler.cc:523
          #5 0x563b4916be6a in plugin_initialize /10.4/sql/sql_plugin.cc:1437
          #6 0x563b4916d6d7 in plugin_init(int*, char**, int) /10.4/sql/sql_plugin.cc:1719
          #7 0x563b48ead3e7 in init_server_components /10.4/sql/mysqld.cc:5333
          #8 0x563b48eaf328 in mysqld_main(int, char**) /10.4/sql/mysqld.cc:5862
          #9 0x563b48e9945f in main /10.4/sql/main.cc:25
          #10 0x7fa60e2ee82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
       
      SUMMARY: AddressSanitizer: bad-free ??:0 operator delete(void*)
      ==32145==ABORTING
      

      Attachments

        Issue Links

          Activity

            People

              alice Alice Sherepa
              alice Alice Sherepa
              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.