Bug #56120 | Assertion `time <= (838*10000 + 59*100 + 59)' failed on negative TIME | ||
---|---|---|---|
Submitted: | 19 Aug 2010 14:10 | Modified: | 3 Oct 2010 1:34 |
Reporter: | Nirbhay Choubey | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 5.5.6-m3, 5.6.99-m5 | OS: | Any |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
Tags: | mysql-5.5, mysql-5.5-bugfixing, next-mr, regression |
[19 Aug 2010 14:10]
Nirbhay Choubey
[19 Aug 2010 14:25]
MySQL Verification Team
Thank you for the bug report. 100819 11:22:59 InnoDB 1.2.0 started; log sequence number 1612639 100819 11:22:59 [Note] Event Scheduler: Loaded 0 events 100819 11:22:59 [Note] /home/miguel/dbs/5.5/bin/mysqld: ready for connections. Version: '5.6.99-m4-debug-log' socket: '/tmp/mysql.sock' port: 3306 Source distribution mysqld: /home/miguel/bzr/5.5/sql/item.cc:7514: virtual String* Item_cache_datetime::val_str(String*): Assertion `time < (838*10000 + 59*100 + 59)' failed.
[20 Aug 2010 18:20]
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/116445 3190 Evgeny Potemkin 2010-08-20 Bug#56120: Failed assertion on MIX/MAX on negative time value The Item_cache_datetime::val_str function wasn't taking into account that time could be negative. This led to failed assertion. Now Item_cache_datetime::val_str correctly converts negative time values from integer to string representation. @ mysql-test/r/func_group.result Added a test case for the bug#56120. @ mysql-test/t/func_group.test Added a test case for the bug#56120. @ sql/item.cc Bug#56120: Failed assertion on MIX/MAX on negative time value Now Item_cache_datetime::val_str correctly converts negative time values from integer to string representation.
[23 Aug 2010 11:39]
Nirbhay Choubey
On Windows (Win Server 2007 sp2)the same set of statements produce different sort of output (and no assertion failure) : USE `test`; CREATE TABLE `t1`(`c1` TIME NOT NULL); INSERT INTO t1 VALUES('-0:00:01'); SELECT MAX(c1), MIN(c1) FROM t1; MAX(c1) MIN(c1) 838:59:59 838:59:59 ## Incorrect Warnings: Warning 1292 Truncated incorrect time value: '3133608139:16:15' Warning 1292 Truncated incorrect time value: '3133608139:16:15' DROP TABLE t1; IMO, the patch for the above bug should take care of this bug too.
[23 Aug 2010 16:00]
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/116537 3190 Evgeny Potemkin 2010-08-23 Bug#56120: Failed assertion on MIX/MAX on negative time value The Item_cache_datetime::val_str function wasn't taking into account that time could be negative. This led to failed assertion. Now Item_cache_datetime::val_str correctly converts negative time values from integer to string representation. @ mysql-test/r/func_group.result Added a test case for the bug#56120. @ mysql-test/t/func_group.test Added a test case for the bug#56120. @ sql/item.cc Bug#56120: Failed assertion on MIX/MAX on negative time value Now Item_cache_datetime::val_str correctly converts negative time values from integer to string representation.
[25 Aug 2010 9:24]
Bugs System
Pushed into mysql-5.5 5.5.6-m3 (revid:alik@ibmvm-20100825092002-2yvkb3iwu43ycpnm) (version source revid:alik@ibmvm-20100825092002-2yvkb3iwu43ycpnm) (merge vers: 5.5.6-m3) (pib:20)
[25 Aug 2010 12:23]
Alexander Nozdrin
It is not pushed actually to mysql-5.5. It's still queuing in 5.5-bugfixing.
[26 Aug 2010 2:02]
Paul DuBois
Back to Patch Queued per Alik's comment.
[30 Aug 2010 8:32]
Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@sun.com-20100830082732-n2eyijnv86exc5ci) (version source revid:alik@sun.com-20100830082732-n2eyijnv86exc5ci) (merge vers: 5.6.1-m4) (pib:21)
[30 Aug 2010 8:35]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100830082745-n6sh01wlwh3itasv) (version source revid:alik@sun.com-20100830082745-n6sh01wlwh3itasv) (pib:21)
[30 Aug 2010 8:36]
Bugs System
Pushed into mysql-5.5 5.5.7-m3 (revid:alik@sun.com-20100830082727-5ac4czrxl61w9wle) (version source revid:alik@sun.com-20100830082727-5ac4czrxl61w9wle) (merge vers: 5.5.7-m3) (pib:21)
[8 Sep 2010 19:23]
Paul DuBois
Noted in 5.5.7, 5.6.1 changelogs. A negative TIME argument to MIN() or MAX() could raise an assertion.
[10 Sep 2010 18:51]
Bugs System
Pushed into mysql-5.5 5.5.7-rc (revid:joerg@mysql.com-20100910184813-csdto6tk4nlogrsq) (version source revid:dlenev@mysql.com-20100831090419-rzr5ktekby2gspm1) (merge vers: 5.5.6-m3) (pib:21)
[13 Sep 2010 13:49]
Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:dlenev@mysql.com-20100913103627-p2oqplu42x1gv2bd) (version source revid:dlenev@mysql.com-20100831090419-rzr5ktekby2gspm1) (merge vers: 5.5.6-m3) (pib:21)
[13 Sep 2010 13:52]
Bugs System
Pushed into mysql-next-mr (revid:dlenev@mysql.com-20100913121556-sfxqlpj9kbc28kaf) (version source revid:dlenev@mysql.com-20100831090419-rzr5ktekby2gspm1) (pib:21)