Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash: StoneDB crash when executing the right shift operator #1947

Open
2 of 3 tasks
ZhengLin-Li opened this issue Jul 18, 2023 · 3 comments
Open
2 of 3 tasks

crash: StoneDB crash when executing the right shift operator #1947

ZhengLin-Li opened this issue Jul 18, 2023 · 3 comments
Labels
A-bug Something isn't working

Comments

@ZhengLin-Li
Copy link

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the problem

StoneDB crash when executing the right shift operator, this crash can be reproduce stabily.

Note: we need to executing the following commands quickly. To reproduce, you can copy paste the following code:

CREATE TABLE t0(c0 INT); 
INSERT INTO t0(c0) VALUE (DEFAULT);
DELETE FROM t0 WHERE ((t0.c0)>>(t0.c0));  
-- note: to reproduce the crash, need to run all commands quickly. Copy this line to let all commands run quickly
image

Expected behavior

Do not crash

How To Reproduce

DROP DATABASE IF EXISTS database5;
CREATE DATABASE database5;
USE database5;

CREATE TABLE t0(c0 INT); 
INSERT INTO t0(c0) VALUE (DEFAULT);
DELETE FROM t0 WHERE ((t0.c0)>>(t0.c0));  
-- note: to reproduce the crash, need to run all commands quickly. Copy this line to let all commands run quickly

Environment

Docker image v1.0.4

Are you interested in submitting a PR to solve the problem?

  • Yes, I will!
@ZhengLin-Li ZhengLin-Li added the A-bug Something isn't working label Jul 18, 2023
@haitaoguan
Copy link
Collaborator

You can try turn off insert delayed,but batch insert will be affected。
vi my.cnf
tianmu_insert_delayed=off

@ZhengLin-Li
Copy link
Author

ZhengLin-Li commented Jul 18, 2023

Ok yes, setting tianmu_insert_delayed=0 solved this issue.

By the way, I am developing SQLancer to let it support StoneDB. Do you developers consider this issue as a bug or not?

If it is not a bug, we will do the above operation to avoid this probelm.

@haitaoguan
Copy link
Collaborator

We will fix these issues,and you can turn off the insert delay during testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants