Bug #59874 | Valgrind warning in InnoDB compression code | ||
---|---|---|---|
Submitted: | 1 Feb 2011 17:59 | Modified: | 10 Feb 2011 19:54 |
Reporter: | Vasil Dimov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.1, 5.5, trunk | OS: | Any |
Assigned to: | Vasil Dimov | CPU Architecture: | Any |
[1 Feb 2011 17:59]
Vasil Dimov
[2 Feb 2011 0:54]
MySQL Verification Team
apparently this is a known issue in zlib.. http://www.zlib.net/zlib_faq.html#faq36 so i guess adding a suppression could be done to silence it ?
[2 Feb 2011 8:42]
Marko Mäkelä
Vasil, please add a suppression to mysql-test/valgrind.supp. btr_store_big_rec_extern_fields() checks that the uncompressed BLOB data is fully initialized, and we do not get any Valgrind warnings for this: UNIV_MEM_ASSERT_RW(big_rec_vec->fields[i].data, extern_len);
[4 Feb 2011 10:48]
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/commits/130387 3701 Vasil Dimov 2011-02-04 Fix Bug#59874 Valgrind warning in InnoDB compression code Add suppressions for a bogus valgrind warnings.
[8 Feb 2011 17:36]
Bugs System
Pushed into mysql-5.1 5.1.56 (revid:vasil.dimov@oracle.com-20110208172642-ekjin6otzuy47vn9) (version source revid:vasil.dimov@oracle.com-20110208172642-ekjin6otzuy47vn9) (merge vers: 5.1.56) (pib:24)
[8 Feb 2011 17:37]
Bugs System
Pushed into mysql-trunk 5.6.2 (revid:vasil.dimov@oracle.com-20110208173442-ocy58fdcuew3xvex) (version source revid:vasil.dimov@oracle.com-20110208173331-fu0j2s14jbg915zu) (merge vers: 5.6.2) (pib:24)
[8 Feb 2011 17:38]
Bugs System
Pushed into mysql-5.5 5.5.10 (revid:vasil.dimov@oracle.com-20110208173046-qsmzbrw1gppahx5o) (version source revid:vasil.dimov@oracle.com-20110208172800-tls70r2ot1i0dub7) (merge vers: 5.5.10) (pib:24)
[13 Jun 2011 21:12]
Mark Callaghan
Are the warnings really bogus? Per our local zlib guru: >>> InnoDB invokes the zlib inflateInit() or inflateInit2() before initializing next_in and avail_in. The documentation clearly says that these fields must be initialized. It is deflateInit() and friends who do not care about these two fields. >>>
[13 Jun 2011 22:27]
Davi Arnaut
See http://lists.mysql.com/commits/133000
[14 Jun 2011 4:11]
Ben Krug
If I read http://lists.mysql.com/commits/133000 right, this bug was properly fixed in commit 3717? If so, what version of MySQL would that be pushed in?
[14 Jun 2011 22:47]
Davi Arnaut
The bug has a Fixed Ver field. Also, I think this and the other one are different issues. This one is a valgrind warning in deflate (see http://www.zlib.net/zlib_faq.html#faq36), whilst the other is in inflate.