Bug #66913 | intermittent corruption of large queries pasted into the command-line client | ||
---|---|---|---|
Submitted: | 21 Sep 2012 17:12 | Modified: | 16 Apr 2015 15:07 |
Reporter: | Alex Frase | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | 5.1.61 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | client, corrupt, paste, race condition |
[21 Sep 2012 17:12]
Alex Frase
[22 Sep 2012 2:15]
MySQL Verification Team
I can't repeat on CentOS 6.3 using Konsole and my own long query, please provide a file with your offended query. Thanks.
[23 Oct 2012 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[29 Sep 2014 18:35]
Rolf Ruediger
This bug still exists for me. mysql Ver 14.14 Distrib 5.5.38, for debian-linux-gnu (x86_64) using readline 6.3 Linux Mint 17 Kernel 3.13.0-24-generic MATE 1.8.1 Code to reproduce: First create this table: CREATE TABLE test ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(50) DEFAULT '', value INT DEFAULT 0, PRIMARY KEY (id), INDEX index_id (id) ); Now copy this query a 100 times or more in a text editor: INSERT INTO test SET name='bla', value=5; Select all and copy&paste it into MySQL command line. MySQL will corrupt the text at random places and generate errors.
[9 Oct 2014 15:13]
MySQL Verification Team
mysql> INSERT INTO test SET -> name='bla', -> value=5; Query OK, 1 row affected (0.04 sec) mysql> INSERT INTO test SET -> name='bla', -> value=5; Query OK, 1 row affected (0.05 sec) mysql> select count(*) from test; +----------+ | count(*) | +----------+ | 101 | +----------+ 1 row in set (0.00 sec) mysql>
[15 Apr 2015 17:32]
Miguel PĂ©rez
This still happens to me on Debian GNU/Linux 7 with the Debian packaged mysql client version 5.5.41 on xfce4-terminal, when pasting from anything.
[16 Apr 2015 15:07]
Alex Frase
Miguel Solorzano, from your comment I can't tell exactly how you went about trying to reproduce this. Please note that the problem does *not* arise if you paste a short query into the client, even if you do so many times in a row, because then you are only executing small "paste" operations. The problem arises when you execute a single very large "paste" operation. So in order to reproduce this, open a GUI text editor and write whatever short query statement you want, and then copy and paste it several hundred times within that external GUI text editor. Make sure you end up with at least 10000 characters and several hundred lines. Then, select *everything* from that GUI text editor and paste it all at once into the mysql client.
[5 May 2017 9:28]
MySQL Verification Team
I've now filed https://bugs.mysql.com/bug.php?id=86193