[MDEV-28935] crash in io_slots::release Created: 2022-06-23  Updated: 2022-07-08  Resolved: 2022-06-23

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.6, 10.7
Fix Version/s: 10.6.9, 10.7.5, 10.8.4

Type: Bug Priority: Major
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-28796 mariabackup --prepare fails terminate... Closed

 Description   

marko reports

@wlad
We got an invalid-looking call in your code:

#0  io_slots::release (this=0x0, aiocb=0x1b0b639935a0)
    at /data/Server/bb-10.6-MDEV-21136-records_in_range-experimental/storage/innobase/os/os0file.cc:106
#1  0x00005628bbefb810 in io_callback (cb=0x1b0b639935a0)
    at /data/Server/bb-10.6-MDEV-21136-records_in_range-experimental/storage/innobase/os/os0file.cc:3534

Another thread is doing

#14 0x00005628bbeff96c in io_slots::wait (this=0x6120000226c0) at /data/Server/bb-10.6-MDEV-21136-records_in_range-experimental/storage/innobase/os/os0file.cc:117
#15 0x00005628bbeffa10 in io_slots::~io_slots (this=0x6120000226c0, __in_chrg=<optimized out>) at /data/Server/bb-10.6-MDEV-21136-records_in_range-experimental/storage/innobase/os/os0file.cc:132
#16 0x00005628bbf02484 in std::default_delete<io_slots>::operator() (this=0x5628bedc6880 <read_slots>, __ptr=0x6120000226c0) at /usr/include/c++/9/bits/unique_ptr.h:81
#17 0x00005628bbf0166c in std::unique_ptr<io_slots, std::default_delete<io_slots> >::reset (this=0x5628bedc6880 <read_slots>, __p=0x6120000226c0) at /usr/include/c++/9/bits/unique_ptr.h:402
#18 0x00005628bbefc14b in os_aio_free () at /data/Server/bb-10.6-MDEV-21136-records_in_range-experimental/storage/innobase/os/os0file.cc:3725
#19 0x00005628bc101200 in innodb_shutdown () at /data/Server/bb-10.6-MDEV-21136-records_in_range-experimental/storage/innobase/srv/srv0start.cc:1984
#20 0x00005628ba6d33ca in xtrabackup_prepare_func (argv=0x615000001c80) at /data/Server/bb-10.6-MDEV-21136-records_in_range-experimental/extra/mariabackup/xtrabackup.cc:6095


Generated at Thu Feb 08 10:04:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.