Bug #6413 | Purify ABR on mysql_real_connect | ||
---|---|---|---|
Submitted: | 3 Nov 2004 20:23 | Modified: | 20 Oct 2005 1:02 |
Reporter: | Stephen Dodson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1.7, 4.1.13 | OS: | Solaris (Solaris 9) |
Assigned to: | Jim Winstead | CPU Architecture: | Any |
[3 Nov 2004 20:23]
Stephen Dodson
[16 Sep 2005 14:23]
Valeriy Kravchuk
Thank you for your bug report, I was able to repeat just the same behaviour as you described when running simple client program purified on our sunfire280 server: **** Purify instrumented /export/home/mysqldev/valeriy/6413 (pid 66683) **** ABR: Array bounds read: * This is occurring while in: memcmp [rtlib.o] _memcmp [rtlib.o] bcmp [libc.so.1] my_xml_scan [libmysqlclient.so.14] my_xml_parse [libmysqlclient.so.14] my_parse_charset_xml [libmysqlclient.so.14] * Reading 4 bytes from 0xcde9d in the heap (1 byte at 0xcdea0 illegal). * Address 0xcde9d is 17797 bytes into a malloc'd block at 0xc9918 of 17800 byt es. * This block was allocated from: malloc [rtlib.o] my_malloc [libmysqlclient.so.14] init_available_charsets [libmysqlclient.so.14] get_charset_by_csname [libmysqlclient.so.14] mysql_real_connect [libmysqlclient.so.14] main [cc4Lnayt.o] Moreover, line 84 in xml.c is still the same in the newer BK 4.1.15 code, so, I think, this should be checked once more carefully by developers.
[11 Oct 2005 22:22]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/30939
[13 Oct 2005 15:13]
Jim Winstead
Fixed in 4.1.16 and 5.0.15.
[20 Oct 2005 1:02]
Paul DuBois
Noted in 4.1.16, 5.0.15 changelogs.