LevelDB Storage Engine MS2 (MDEV-4201)

[MDEV-4324] LevelDB: Valgrind "Use of uninitialised value" warnings on inserting value into varchar field Created: 2013-03-24  Updated: 2013-03-26  Resolved: 2013-03-26

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

Type: Technical task Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: leveldb

Issue Links:
Relates

 Description   

==22818== Thread 22:
==22818== Use of uninitialised value of size 8
==22818==    at 0x506F0B2: leveldb::crc32c::Extend(unsigned int, char const*, unsigned long) (in leveldb-1.7.0/libleveldb.so.1.7)
==22818==    by 0x50570C3: leveldb::log::Writer::EmitPhysicalRecord(leveldb::log::RecordType, char const*, unsigned long) (in leveldb-1.7.0/libleveldb.so.1.7)
==22818==    by 0x50572B3: leveldb::log::Writer::AddRecord(leveldb::Slice const&) (in leveldb-1.7.0/libleveldb.so.1.7)
==22818==    by 0x5051879: leveldb::DBImpl::Write(leveldb::WriteOptions const&, leveldb::WriteBatch*) (in leveldb-1.7.0/libleveldb.so.1.7)
==22818==    by 0xD4DE92: Ldb_transaction::flush_batch_intern() (ha_leveldb.cc:265)
==22818==    by 0xD4DF20: Ldb_transaction::flush_batch() (ha_leveldb.cc:274)
==22818==    by 0xD4DDFF: Ldb_transaction::commit() (ha_leveldb.cc:251)
==22818==    by 0xD4CB9F: ha_leveldb::external_lock(THD*, int) (ha_leveldb.cc:2179)
==22818==    by 0x623716: handler::ha_external_lock(THD*, int) (handler.cc:7067)
==22818==    by 0x8FDB5F: unlock_external(THD*, TABLE**, unsigned int) (lock.cc:646)
==22818==    by 0x8FD1C0: mysql_unlock_tables(THD*, st_mysql_lock*) (lock.cc:389)
==22818==    by 0x738B90: close_thread_tables(THD*) (sql_base.cc:1456)
==22818== 
==22818== Use of uninitialised value of size 8
==22818==    at 0x506F1EF: leveldb::crc32c::Extend(unsigned int, char const*, unsigned long) (in leveldb-1.7.0/libleveldb.so.1.7)
==22818==    by 0x50570C3: leveldb::log::Writer::EmitPhysicalRecord(leveldb::log::RecordType, char const*, unsigned long) (in leveldb-1.7.0/libleveldb.so.1.7)
==22818==    by 0x50572B3: leveldb::log::Writer::AddRecord(leveldb::Slice const&) (in leveldb-1.7.0/libleveldb.so.1.7)
==22818==    by 0x5051879: leveldb::DBImpl::Write(leveldb::WriteOptions const&, leveldb::WriteBatch*) (in leveldb-1.7.0/libleveldb.so.1.7)
==22818==    by 0xD4DE92: Ldb_transaction::flush_batch_intern() (ha_leveldb.cc:265)
==22818==    by 0xD4DF20: Ldb_transaction::flush_batch() (ha_leveldb.cc:274)
==22818==    by 0xD4DDFF: Ldb_transaction::commit() (ha_leveldb.cc:251)
==22818==    by 0xD4CB9F: ha_leveldb::external_lock(THD*, int) (ha_leveldb.cc:2179)
==22818==    by 0x623716: handler::ha_external_lock(THD*, int) (handler.cc:7067)
==22818==    by 0x8FDB5F: unlock_external(THD*, TABLE**, unsigned int) (lock.cc:646)
==22818==    by 0x8FD1C0: mysql_unlock_tables(THD*, st_mysql_lock*) (lock.cc:389)
==22818==    by 0x738B90: close_thread_tables(THD*) (sql_base.cc:1456)
==22818== 

revision-id: psergey@askmonty.org-20130322111245-43wqvaouclxso5zo
revno: 4807
branch-nick: mysql-5.6-leveldb

Test case:

CREATE TABLE t1 (pk INT PRIMARY KEY, c VARCHAR(4)) ENGINE=LevelDB;
INSERT INTO t1 VALUES (1,'foo'), (2,'bar'); 



 Comments   
Comment by Sergei Petrunia [ 2013-03-26 ]

Not repeatable after latest valgrind fixes. Added a testcase.

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