Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4201 LevelDB Storage Engine MS2
  3. MDEV-4374

LevelDB: Valgrind warnings 'Use of uninitialised value' on inserting into a varchar column

    Details

    • Type: Technical task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu 12.04 64-bit, 2 different machines, BUILD/compile-pentium-debug-max-no-ndb or cmake . -DCMAKE_BUILD_TYPE=Debug && make

      Description

      CREATE TABLE t1 (pk INT PRIMARY KEY, a VARCHAR(32)) ENGINE=LevelDB;
      INSERT INTO t1 VALUES (1,'foo'),(2,'bar');
      
      ==22213== Thread 18:
      ==22213== Use of uninitialised value of size 8
      ==22213==    at 0x506F0AE: leveldb::crc32c::Extend(unsigned int, char const*, unsigned long) (in /home/elenst/leveldb-1.7.0/libleveldb.so.1.7)
      ==22213==    by 0x50570C3: leveldb::log::Writer::EmitPhysicalRecord(leveldb::log::RecordType, char const*, unsigned long) (in /home/elenst/leveldb-1.7.0/libleveldb.so.1.7)
      ==22213==    by 0x50572B3: leveldb::log::Writer::AddRecord(leveldb::Slice const&) (in /home/elenst/leveldb-1.7.0/libleveldb.so.1.7)
      ==22213==    by 0x5051879: leveldb::DBImpl::Write(leveldb::WriteOptions const&, leveldb::WriteBatch*) (in /home/elenst/leveldb-1.7.0/libleveldb.so.1.7)
      ==22213==    by 0xD4E8BC: Ldb_transaction::flush_batch_intern() (ha_leveldb.cc:279)
      ==22213==    by 0xD4E929: Ldb_transaction::flush_batch() (ha_leveldb.cc:287)
      ==22213==    by 0xD4E6ED: Ldb_transaction::commit() (ha_leveldb.cc:250)
      ==22213==    by 0xD4D22E: ha_leveldb::external_lock(THD*, int) (ha_leveldb.cc:2209)
      ==22213==    by 0x6240A6: handler::ha_external_lock(THD*, int) (handler.cc:7067)
      ==22213==    by 0x8FE507: unlock_external(THD*, TABLE**, unsigned int) (lock.cc:646)
      ==22213==    by 0x8FDB68: mysql_unlock_tables(THD*, st_mysql_lock*) (lock.cc:389)
      ==22213==    by 0x739520: close_thread_tables(THD*) (sql_base.cc:1456)
      ==22213==    by 0x7A8123: mysql_execute_command(THD*) (sql_parse.cc:4940)
      ==22213==    by 0x7AAAFA: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:6149)
      ==22213==    by 0x79E821: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1334)
      ==22213==    by 0x79D971: do_command(THD*) (sql_parse.cc:1036)
      

      (repeated multiple times)

      revision-id: psergey@askmonty.org-20130406172740-fid7u9tkz5ahlc4c
      revno: 4823
      branch-nick: mysql-5.6-leveldb
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            elenst Elena Stepanova added a comment -

            Reproduced on Ubuntu 12.04 64-bit, 2 different machines, with BUILD/compile-pentium-debug-max-no-ndb or cmake . -DCMAKE_BUILD_TYPE=Debug && make.

            Could NOT reproduce with BUILD/compile-pentium-valgrind-max-no-ndb

            Show
            elenst Elena Stepanova added a comment - Reproduced on Ubuntu 12.04 64-bit, 2 different machines, with BUILD/compile-pentium-debug-max-no-ndb or cmake . -DCMAKE_BUILD_TYPE=Debug && make. Could NOT reproduce with BUILD/compile-pentium-valgrind-max-no-ndb

              People

              • Assignee:
                psergey Sergei Petrunia
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m