Bug #20791 | valgrind errors in InnoDB | ||
---|---|---|---|
Submitted: | 30 Jun 2006 13:00 | Modified: | 19 Jun 2010 17:58 |
Reporter: | Marc Alff | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.1-12 (BK) | OS: | Linux (Gentoo Linux AMD64) |
Assigned to: | Heikki Tuuri | CPU Architecture: | Any |
[30 Jun 2006 13:00]
Marc Alff
[30 Jun 2006 13:02]
Marc Alff
Valgrind error log
Attachment: master.err (application/octet-stream, text), 29.98 KiB.
[30 Jun 2006 13:19]
MySQL Verification Team
Thank you for the bug report. There are warnings also on Suse 10 32Bit: miguel@hegel:~/dbs/mysql-5.1/mysql-test> cat /home/miguel/dbs/mysql-5.1/mysql-test/var/log/warnings ==5986== at 0x8581608: trx_sys_create_doublewrite_buf (trx0sys.c:197) ==5986== at 0x1B93716B: do_pwrite64 (in /lib/tls/libpthread-2.3.5.so) ==5986== at 0x1B8FF8A6: malloc (in /usr/lib/valgrind/vgpreload_memcheck.so) ==5986== at 0x1B93716B: do_pwrite64 (in /lib/tls/libpthread-2.3.5.so) ==5986== at 0x1B8FF8A6: malloc (in /usr/lib/valgrind/vgpreload_memcheck.so) ==5986== at 0x1B93716B: do_pwrite64 (in /lib/tls/libpthread-2.3.5.so) ==5986== at 0x1B8FF8A6: malloc (in /usr/lib/valgrind/vgpreload_memcheck.so) ==5986== at 0x8581608: trx_sys_create_doublewrite_buf (trx0sys.c:197) ==5986== at 0x1B93716B: do_pwrite64 (in /lib/tls/libpthread-2.3.5.so) ==5986== at 0x1B8FF8A6: malloc (in /usr/lib/valgrind/vgpreload_memcheck.so) ==5986== at 0x1B93716B: do_pwrite64 (in /lib/tls/libpthread-2.3.5.so) ==5986== at 0x1B8FF8A6: malloc (in /usr/lib/valgrind/vgpreload_memcheck.so) ==5986== at 0x1B93716B: do_pwrite64 (in /lib/tls/libpthread-2.3.5.so) ==5986== at 0x1B8FF8A6: malloc (in /usr/lib/valgrind/vgpreload_memcheck.so) miguel@hegel:~/dbs/mysql-5.1/mysql-test>
[27 Jul 2006 16:33]
Heikki Tuuri
Hi! Valgrind errors in the doublewrite buffer creation and os_file_pwrite() are generally not dangerous. InnoDB does not init all buffers that it writes to disk. We could suppress the warnings by zeroing the associated memory, but then we would also make Valgrind less sensitive to detect genuine bugs! Regards, Heikki
[25 Aug 2006 20:54]
Heikki Tuuri
Lowering the priority to P4 because there probably is no bug here.
[31 Aug 2006 20:49]
Heikki Tuuri
I have made a patch to suppress the warning about in the doublewrite function. It was a genuine bug: with very bad luck uninitialized memory could have contained the magic number. The warnings about pwrite() are harmless. They can be ignored.
[13 Sep 2006 8:26]
Timothy Smith
Pushed to 5.1.12
[14 Sep 2006 3:28]
Paul DuBois
Noted in 5.1.12 changelog.
[3 Oct 2006 20:16]
Chad MILLER
Available in 5.1.12-beta.
[5 May 2010 15:22]
Bugs System
Pushed into 5.1.47 (revid:joro@sun.com-20100505145753-ivlt4hclbrjy8eye) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[6 May 2010 2:16]
Paul DuBois
Push resulted from incorporation of InnoDB tree. No changes pertinent to this bug. Re-closing.
[28 May 2010 6:04]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100524190136-egaq7e8zgkwb9aqi) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (pib:16)
[28 May 2010 6:32]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100524190941-nuudpx60if25wsvx) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[28 May 2010 7:00]
Bugs System
Pushed into 5.5.5-m3 (revid:alik@sun.com-20100524185725-c8k5q7v60i5nix3t) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[29 May 2010 22:43]
Paul DuBois
Push resulted from incorporation of InnoDB tree. No changes pertinent to this bug. Re-closing.
[17 Jun 2010 12:08]
Bugs System
Pushed into 5.1.47-ndb-7.0.16 (revid:martin.skold@mysql.com-20100617114014-bva0dy24yyd67697) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[17 Jun 2010 12:54]
Bugs System
Pushed into 5.1.47-ndb-6.2.19 (revid:martin.skold@mysql.com-20100617115448-idrbic6gbki37h1c) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[17 Jun 2010 13:35]
Bugs System
Pushed into 5.1.47-ndb-6.3.35 (revid:martin.skold@mysql.com-20100617114611-61aqbb52j752y116) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)