{"action":"created","issue":{"url":"https://api.github.com/repos/mroonga/mroonga/issues/64","labels_url":"https://api.github.com/repos/mroonga/mroonga/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/mroonga/mroonga/issues/64/comments","events_url":"https://api.github.com/repos/mroonga/mroonga/issues/64/events","html_url":"https://github.com/mroonga/mroonga/issues/64","id":93664206,"number":64,"title":"Mroonga 5.04 + MariaDB 10.1 warnings by valgrind","user":{"login":"s-yata","id":778712,"avatar_url":"https://avatars.githubusercontent.com/u/778712?v=3","gravatar_id":"","url":"https://api.github.com/users/s-yata","html_url":"https://github.com/s-yata","followers_url":"https://api.github.com/users/s-yata/followers","following_url":"https://api.github.com/users/s-yata/following{/other_user}","gists_url":"https://api.github.com/users/s-yata/gists{/gist_id}","starred_url":"https://api.github.com/users/s-yata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-yata/subscriptions","organizations_url":"https://api.github.com/users/s-yata/orgs","repos_url":"https://api.github.com/users/s-yata/repos","events_url":"https://api.github.com/users/s-yata/events{/privacy}","received_events_url":"https://api.github.com/users/s-yata/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-08T00:54:59Z","updated_at":"2015-07-14T01:06:29Z","closed_at":"2015-07-13T23:19:56Z","body":"#### 概要\r\n\r\nMariaDB へのバンドル作業に際して実行されるテストで以下のような警告が出ています．\r\n\r\n- Buildbot: work-amd64-valgrind Build `#7366`\r\n - http://buildbot.askmonty.org/buildbot/builders/work-amd64-valgrind/builds/7366\r\n- Buildbot: work-amd64-valgrind Build `#7367`\r\n - http://buildbot.askmonty.org/buildbot/builders/work-amd64-valgrind/builds/7367\r\n\r\n```\r\nmroonga/storage.index_multiple_column_unique_datetime_index_read w5 [ fail ]  Found warnings/errors in server log file!\r\n        Test ended at 2015-07-03 12:20:00\r\nline\r\n==8223== Thread 5:\r\n==8223== Conditional jump or move depends on uninitialised value(s)\r\n==8223==    at 0x7F814B: my_datetime_packed_to_binary(long long, unsigned char*, unsigned int) (compat56.cc:341)\r\n==8223==    by 0xB275FED: mrn::MultipleColumnKeyCodec::decode(unsigned char const*, unsigned int, unsigned char*, unsigned int*) (mrn_multiple_column_key_codec.cpp:297)\r\n==8223==    by 0xB256640: ha_mroonga::storage_store_fields_by_index(unsigned char*) (ha_mroonga.cpp:11097)\r\n==8223==    by 0xB260E60: ha_mroonga::storage_get_next_record(unsigned char*) (ha_mroonga.cpp:9485)\r\n==8223==    by 0xB263B3A: ha_mroonga::storage_index_first(unsigned char*) (ha_mroonga.cpp:7382)\r\n==8223==    by 0xB263D26: ha_mroonga::index_first(unsigned char*) (ha_mroonga.cpp:7394)\r\n==8223==    by 0x8220C6: handler::ha_index_first(unsigned char*) (handler.cc:2672)\r\n==8223==    by 0x695A69: join_read_first(st_join_table*) (sql_select.cc:18972)\r\n==8223==    by 0x678332: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:18028)\r\n==8223==    by 0x6A1D8C: do_select(JOIN*, List<Item>*, TABLE*, Procedure*) (sql_select.cc:17688)\r\n...\r\n```\r\n\r\n`#7366`, `#7367` は微修正の前後であり，同様の場所で同様の警告が繰り返されていることから，再現性はあるものと考えられます．\r\n\r\n一応，軽くはソースコードも見てみたものの，原因を特定できませんでした．\r\n\r\n- server/compat56.cc at 10.1 · MariaDB/server\r\n - https://github.com/MariaDB/server/blob/10.1/sql/compat56.cc#L330-L362\r\n- mroonga/mrn_multiple_column_key_codec.cpp at master · mroonga/mroonga\r\n - https://github.com/mroonga/mroonga/blob/master/lib/mrn_multiple_column_key_codec.cpp#L205-L329\r\n\r\nテスト環境は OpenSUSE 64-bit のようです． valgrind を使えばほかの環境でも再現できるかはまだテストできていません．"},"comment":{"url":"https://api.github.com/repos/mroonga/mroonga/issues/comments/121103323","html_url":"https://github.com/mroonga/mroonga/issues/64#issuecomment-121103323","issue_url":"https://api.github.com/repos/mroonga/mroonga/issues/64","id":121103323,"user":{"login":"kou","id":27350,"avatar_url":"https://avatars.githubusercontent.com/u/27350?v=3","gravatar_id":"","url":"https://api.github.com/users/kou","html_url":"https://github.com/kou","followers_url":"https://api.github.com/users/kou/followers","following_url":"https://api.github.com/users/kou/following{/other_user}","gists_url":"https://api.github.com/users/kou/gists{/gist_id}","starred_url":"https://api.github.com/users/kou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kou/subscriptions","organizations_url":"https://api.github.com/users/kou/orgs","repos_url":"https://api.github.com/users/kou/repos","events_url":"https://api.github.com/users/kou/events{/privacy}","received_events_url":"https://api.github.com/users/kou/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T01:06:29Z","updated_at":"2015-07-14T01:06:29Z","body":"Mroongaが悪かったんですね。。。すみません。。。"}}