[MDEV-607] LP:821241 - Server reports memory exhausted on statement prepare Created: 2011-08-05 Updated: 2021-07-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 10.0.2, 5.5.31, 5.1.67, 5.2.14, 5.3.12, 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Arjen Lentz (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | Launchpad, upstream, verified | ||
| Attachments: |
|
| Description |
|
Applying this trick: http://openquery.com/blog/cache-preloading-mysqld-startup It's MariaDB 5.2.7
so far so good, resulting SQL query is only 800K long.
It appears (thanks HarrisonF) that the parser runs out of memory? We reckon that'd be a bug. I'm happy to pass along the entire @sql string, but a) it contains customer details (db/table/col names) so it'd have to be in private and b) the SQL wouldn't run on any other server anyway since the parser would find nonexistent dbs/tables/cols and thus never get to the bug. |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2011-08-05 ] | |||||||||||||||||||||||||||||||||
|
Launchpad bug id: 821241 | |||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2013-06-02 ] | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
| Comment by Dennis [ 2021-07-27 ] | |||||||||||||||||||||||||||||||||
|
Ran into this issue today attempting to execute a generated query consisting of:
The query was a little over 3 megs long and the parser died around line 10.000 (~1.3 megs parsed). The only difference with the reported issue is that this wasn't a prepared statement, just "mysql database < filename.sql". The result however was the same "ERROR 1064 (42000) at line 1202: memory exhausted near '...' at line 10662". Problem is reproducible on MariaDB 10.3.29. It is not reproducible on MariaDB 5.5.65 or MySQL 5.6.59. I compared every single configuration parameter related to limits but didn't find any notable differences. All values were either the same, larger or several gigabytes. |