[MDEV-3816] init-file stops getting executed if a long enough line is encountered; on a debug version, assertion `! is_set() || can_overwrite_status' fails Created: 2012-10-24 Updated: 2012-12-16 Resolved: 2012-12-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.0 |
| Fix Version/s: | 10.0.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Description |
|
The part with the wrong result is also reproducible on MySQL and filed as http://bugs.mysql.com/bug.php?id=67345. If a server is started with the init-file parameter and the file contains long enough lines (for me, the problem starts with 20,000 characters), it looks like the file stops being executed after such a line is encountered. On a debug build, it causes the assertion failure:
The attached file contains 3 lines. For a debug build, the test can be anything, e.g. you can run it as
The assertion fails while the init file is executed. For a non-debug build, the test is one line:
On 5.5, it returns 192, as expected. On 10.0, it returns 0.
|
| Comments |
| Comment by Sergei Golubchik [ 2012-12-16 ] |
|
20000 byte limit is intentional and hard-coded in sql_bootstrap.h |