Bug #75870 | void String::chop(): Assertion `strlen(m_ptr) == m_length' failed | ||
---|---|---|---|
Submitted: | 12 Feb 2015 8:43 | Modified: | 14 Jul 2015 6:51 |
Reporter: | Roel Van de Paar | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Logging | Severity: | S2 (Serious) |
Version: | 5.7.5-m15 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[12 Feb 2015 8:43]
Roel Van de Paar
[12 Feb 2015 8:47]
Roel Van de Paar
Tarball with all scripts required
Attachment: bug_75870.tar.gz (application/gzip, text), 93.55 KiB.
[12 Feb 2015 9:44]
MySQL Verification Team
to verifier: please check if testcase does similar to mine: Bug 20444737 - STRING::CHOP ASSERTS ON NAUGHTY TABLE NAMES
[12 Feb 2015 9:52]
Roel Van de Paar
I see you try to keep the humor up too!
[12 Feb 2015 9:56]
Roel Van de Paar
SELECT 'ĢŎˆΓƠŘ̋ˇĮŦ̕̕_ȘĦĀŃĚ'
[12 Feb 2015 10:00]
Roel Van de Paar
Lol; put the above in a txt file, and execute it using --binary-mode, it cannot handle it... mysql> source ~/testcase_sb.txt ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '??S' at line 1
[12 Feb 2015 11:55]
MySQL Verification Team
to make a simple testcase for this one i also had "fun". ended up using a php script, basically doing: $s='64726f702074656d706f72617279207.....'; $binstr=pack("H*",$s); mysqli_real_query($link,$binstr)
[14 Jul 2015 6:51]
Erlend Dahl
Fixed in 5.7.8, 5.8.0 under the heading of Bug#20444737 STRING::CHOP ASSERTS ON NAUGHTY TABLE NAMES [29 Jun 2015 14:25] Paul Dubois Noted in 5.7.8, 5.8.0 changelogs. Incorrect calculation of the length of strings written to the binary log could raise an assertion or cause a server exit.