{"action":"opened","issue":{"url":"https://api.github.com/repos/gabime/spdlog/issues/680","repository_url":"https://api.github.com/repos/gabime/spdlog","labels_url":"https://api.github.com/repos/gabime/spdlog/issues/680/labels{/name}","comments_url":"https://api.github.com/repos/gabime/spdlog/issues/680/comments","events_url":"https://api.github.com/repos/gabime/spdlog/issues/680/events","html_url":"https://github.com/gabime/spdlog/issues/680","id":312193299,"number":680,"title":"MemorySanitizer: use-of-uninitialized-value in example?","user":{"login":"jbreitbart","id":881727,"avatar_url":"https://avatars0.githubusercontent.com/u/881727?v=4","gravatar_id":"","url":"https://api.github.com/users/jbreitbart","html_url":"https://github.com/jbreitbart","followers_url":"https://api.github.com/users/jbreitbart/followers","following_url":"https://api.github.com/users/jbreitbart/following{/other_user}","gists_url":"https://api.github.com/users/jbreitbart/gists{/gist_id}","starred_url":"https://api.github.com/users/jbreitbart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbreitbart/subscriptions","organizations_url":"https://api.github.com/users/jbreitbart/orgs","repos_url":"https://api.github.com/users/jbreitbart/repos","events_url":"https://api.github.com/users/jbreitbart/events{/privacy}","received_events_url":"https://api.github.com/users/jbreitbart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-07T09:56:51Z","updated_at":"2018-04-07T09:56:51Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I copied the example code from the readme and built it with clang's memory sanitizer (add `-fsanitize=memory -fno-omit-frame-pointer` to compiler/linker) and I get the following warning:\r\n\r\n```\r\n==23355==WARNING: MemorySanitizer: use-of-uninitialized-value\r\n    #0 0x4ee6da in fmt::BasicFormatter<char, fmt::ArgFormatter<char> >::format(fmt::BasicCStringRef<char>) /include/spdlog/fmt/bundled/format.h:4742:5\r\n    #1 0x4ec466 in fmt::BasicWriter<char>::write(fmt::BasicCStringRef<char>, fmt::ArgList) /include/spdlog/fmt/bundled/format.h:3334:43\r\n    #2 0x4a618a in void fmt::BasicWriter<char>::write<unsigned long>(fmt::BasicCStringRef<char>, unsigned long const&) /include/spdlog/fmt/bundled/format.h:3336:5\r\n    #3 0x4a5771 in spdlog::pattern_formatter::format(spdlog::details::log_msg&) /include/spdlog/details/pattern_formatter_impl.h:707:19\r\n    #4 0x4a97d7 in spdlog::logger::_sink_it(spdlog::details::log_msg&) /include/spdlog/details/logger_impl.h:308:17\r\n    #5 0x565ce7 in void spdlog::logger::log<>(spdlog::level::level_enum, char const*) /include/spdlog/details/logger_impl.h:94:9\r\n    #6 0x4a0df4 in main /src/main.cpp:60:12\r\n    #7 0x7f26ea8fe82f in __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:291\r\n    #8 0x4226c8 in _start (/bin/debug/example+0x4226c8)\r\n```\r\n\r\nIs this a known/real bug? I tried to look through the issue list, but could not find a similar report."}}
{"actor":{"display_login":"jbreitbart"}}