edgelesssys / edgelessdb

EdgelessDB is a MySQL-compatible database for confidential computing. It runs entirely inside a secure enclave and comes with advanced features for collaboration, recovery, and access control.
https://edgeless.systems/products/edgelessdb
GNU General Public License v2.0
170 stars 17 forks source link

Using ALTER TABLE to add an index after INSERT dumps the core #93

Closed klassiker closed 2 years ago

klassiker commented 2 years ago

I followed https://docs.edgeless.systems/edgelessdb/#/getting-started/quickstart-sgx to set up a simple container. After successfully connecting, the following SQL statements will cause a coredump:

CREATE DATABASE test;

USE test;

CREATE TABLE `test` (
    `test` int
);

INSERT INTO `test` (`test`) VALUES (1);

ALTER TABLE `test` ADD INDEX `idx_test` (`test`);

Without the INSERT, everything works fine.

thomasten commented 2 years ago

Thanks for reporting! We can reproduce the bug and will investigate.

thomasten commented 2 years ago

This has been fixed in main branch and will be part of the next release.

klassiker commented 2 years ago

Thank you!

thomasten commented 2 years ago

fixed in v0.3.0

klassiker commented 2 years ago

Works for me.