[MDEV-31820] UPDATE statement with specific string causes disconnect from remote server Created: 2023-08-01 Updated: 2023-10-30 Resolved: 2023-10-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Update |
| Affects Version/s: | 10.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Simon Andrews | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | crash | ||
| Environment: |
AlmaLinux release 8.8 (Sapphire Caracal) |
||
| Description |
|
I was getting database errors from one of our web applications when constructing an update statement with one particular string. No other strings triggered the bug. After doing a lot of trial an error I narrowed it down to the following test case which seems to reproduce it. Client server is system1 Both are running Server version: 5.5.5-10.3.35-MariaDB MariaDB Server on AlmaLinux 8. From server1 run:
Then execute:
The statement fails with:
Doing the same thing but this time running:
Where there is one fewer x at the end, works as expected. The bug requires the "grant" "on" and "()" plus the total length of the query must be above a very specific threshold. It fails when updating a different record, and when updating a different table and field. In each case the affected field is a text field.
Running the longer query directly in the console on server2 works as expected. The failure only occurs when executing the statement remotely. When the crash happens the server error log shows;
Turning on query logging on the server shows:
..but doesn't log the SQL command. |
| Comments |
| Comment by Sergei Golubchik [ 2023-09-30 ] | |
|
s_andrews_babraham, we weren't able to repeat this bug. May be there is some detail that is important for reproducing it, that we don't know, something special to your environment. Could you please try to create a complete test case? Something that can be run with
|