[MDEV-3626] LP:731815 - Crash/valgrind warning Item::send with 5.1-micro Created: 2011-03-09  Updated: 2015-02-02  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Philip Stoev (Inactive) Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug731815.xml    

 Description   

Not repeatable with mysql-5.1.

The following query

SELECT CONVERT_TZ( TIMEDIFF( '0000-00-00 00:00:00' , f1 ) , 'UTC' , 'Europe/Moscow' ) FROM t1 ;

causes a crash in Item::send, however GDB does not print a stacktrace. Valgrind reports:

==7458== Thread 3:
==7458== Invalid read of size 1
==7458== at 0x81B33B9: Item::send(Protocol*, String*) (item.cc:5695)
==7458== Address 0x33 is not stack'd, malloc'd or (recently) free'd
==7458==

test case:

CREATE TABLE t1 ( f1 timestamp NULL DEFAULT '0000-00-00 00:00:00');
INSERT INTO t1 VALUES ('2007-06-25 21:00:00'),('2008-03-26 07:09:06');

SELECT CONVERT_TZ( TIMEDIFF( '0000-00-00 00:00:00' , f1 ) , 'UTC' , 'Europe/Moscow' ) FROM t1 ;



 Comments   
Comment by Philip Stoev (Inactive) [ 2011-03-09 ]

Crash/valgrind warning Item::send with 5.1-micro
The following query

SELECT CONVERT_TZ( TIMEDIFF( '0000-00-00 00:00:00' , f1 ) , 'UTC' , 'Europe/Moscow' ) FROM t1 ;

causes a crash in Item::send, however GDB does not print a stacktrace. Valgrind reports:

==7458== Thread 3:
==7458== Invalid read of size 1
==7458== at 0x81B33B9: Item::send(Protocol*, String*) (item.cc:5695)
==7458== Address 0x33 is not stack'd, malloc'd or (recently) free'd
==7458==

test case:

CREATE TABLE t1 ( f1 timestamp NULL DEFAULT '0000-00-00 00:00:00');
INSERT INTO t1 VALUES ('2007-06-25 21:00:00'),('2008-03-26 07:09:06');

SELECT CONVERT_TZ( TIMEDIFF( '0000-00-00 00:00:00' , f1 ) , 'UTC' , 'Europe/Moscow' ) FROM t1 ;

Comment by Rasmus Johansson (Inactive) [ 2011-10-28 ]

Launchpad bug id: 731815

Generated at Thu Feb 08 06:50:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.