{"action":"created","issue":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/2790","repository_url":"https://api.github.com/repos/arvidn/libtorrent","labels_url":"https://api.github.com/repos/arvidn/libtorrent/issues/2790/labels{/name}","comments_url":"https://api.github.com/repos/arvidn/libtorrent/issues/2790/comments","events_url":"https://api.github.com/repos/arvidn/libtorrent/issues/2790/events","html_url":"https://github.com/arvidn/libtorrent/issues/2790","id":296778759,"number":2790,"title":"UndefinedBehaviorSanitizer in test logs","user":{"login":"aldenml","id":143813,"avatar_url":"https://avatars0.githubusercontent.com/u/143813?v=4","gravatar_id":"","url":"https://api.github.com/users/aldenml","html_url":"https://github.com/aldenml","followers_url":"https://api.github.com/users/aldenml/followers","following_url":"https://api.github.com/users/aldenml/following{/other_user}","gists_url":"https://api.github.com/users/aldenml/gists{/gist_id}","starred_url":"https://api.github.com/users/aldenml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldenml/subscriptions","organizations_url":"https://api.github.com/users/aldenml/orgs","repos_url":"https://api.github.com/users/aldenml/repos","events_url":"https://api.github.com/users/aldenml/events{/privacy}","received_events_url":"https://api.github.com/users/aldenml/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-13T15:30:59Z","updated_at":"2018-02-15T14:56:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"libtorrent: `master`\r\nplatform/architecture: `macOS`\r\ncompiler and compiler version: `Apple LLVM version 9.0.0 (clang-900.0.39.2)`\r\n\r\nI'm getting a lot of errors in the test logs like this one:\r\n```\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1717:19: runtime error: member call on address 0x7ffee39f6690 which does not point to an object of type 'std::__1::__function::__base<libtorrent::storage_interface *(const libtorrent::storage_params &, libtorrent::file_pool &)>'\r\n0x7ffee39f6690: note: object is of type 'std::__1::__function::__func<libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&), std::__1::allocator<libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&)>, libtorrent::storage_interface* (libtorrent::storage_params const&, libtorrent::file_pool&)>'\r\n 01 00 00 00  00 8d 42 0c 01 00 00 00  10 21 1b 0f 01 00 00 00  1e 00 00 00 00 00 00 01  00 c0 35 15\r\n              ^~~~~~~~~~~~~~~~~~~~~~~\r\n              vptr for 'std::__1::__function::__func<libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&), std::__1::allocator<libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&)>, libtorrent::storage_interface* (libtorrent::storage_params const&, libtorrent::file_pool&)>'\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1717:19 in \r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1685:19: runtime error: member call on address 0x7ffee39f63f0 which does not point to an object of type 'std::__1::__function::__base<libtorrent::storage_interface *(const libtorrent::storage_params &, libtorrent::file_pool &)>'\r\n0x7ffee39f63f0: note: object is of type 'std::__1::__function::__func<libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&), std::__1::allocator<libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&)>, libtorrent::storage_interface* (libtorrent::storage_params const&, libtorrent::file_pool&)>'\r\n 00 00 00 00  00 8d 42 0c 01 00 00 00  10 21 1b 0f 01 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00\r\n              ^~~~~~~~~~~~~~~~~~~~~~~\r\n              vptr for 'std::__1::__function::__func<libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&), std::__1::allocator<libtorrent::storage_interface* (*)(libtorrent::storage_params const&, libtorrent::file_pool&)>, libtorrent::storage_interface* (libtorrent::storage_params const&, libtorrent::file_pool&)>'\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1685:19 in \r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1685:19: runtime error: member call on address 0x7ffee39eb4d0 which does not point to an object of type 'std::__1::__function::__base<void ()>'\r\n0x7ffee39eb4d0: note: object is of type 'std::__1::__function::__func<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> >, std::__1::allocator<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> > >, void ()>'\r\n 00 00 00 00  20 02 43 0c 01 00 00 00  70 19 31 0c 01 00 00 00  80 a4 9e e3 fe 7f 00 00  00 00 00 00\r\n              ^~~~~~~~~~~~~~~~~~~~~~~\r\n              vptr for 'std::__1::__function::__func<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> >, std::__1::allocator<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> > >, void ()>'\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1685:19 in \r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1881:15: runtime error: member call on address 0x7ffee39e9dc0 which does not point to an object of type 'std::__1::__function::__base<void ()>'\r\n0x7ffee39e9dc0: note: object is of type 'std::__1::__function::__func<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> >, std::__1::allocator<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> > >, void ()>'\r\n 00 00 00 00  20 02 43 0c 01 00 00 00  70 19 31 0c 01 00 00 00  80 a4 9e e3 fe 7f 00 00  00 00 00 00\r\n              ^~~~~~~~~~~~~~~~~~~~~~~\r\n              vptr for 'std::__1::__function::__func<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> >, std::__1::allocator<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> > >, void ()>'\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1881:15 in \r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1882:15: runtime error: member call on address 0x7ffee39e9dc0 which does not point to an object of type 'std::__1::__function::__base<void ()>'\r\n0x7ffee39e9dc0: note: object is of type 'std::__1::__function::__func<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> >, std::__1::allocator<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> > >, void ()>'\r\n 00 00 00 00  20 02 43 0c 01 00 00 00  70 19 31 0c 01 00 00 00  80 a4 9e e3 fe 7f 00 00  00 00 00 00\r\n              ^~~~~~~~~~~~~~~~~~~~~~~\r\n              vptr for 'std::__1::__function::__func<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> >, std::__1::allocator<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> > >, void ()>'\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1882:15 in \r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1903:12: runtime error: member call on address 0x7ffee39ea520 which does not point to an object of type 'std::__1::__function::__base<void ()>'\r\n0x7ffee39ea520: note: object is of type 'std::__1::__function::__func<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> >, std::__1::allocator<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> > >, void ()>'\r\n 00 00 00 00  20 02 43 0c 01 00 00 00  70 19 31 0c 01 00 00 00  80 a4 9e e3 fe 7f 00 00  00 00 00 00\r\n              ^~~~~~~~~~~~~~~~~~~~~~~\r\n              vptr for 'std::__1::__function::__func<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> >, std::__1::allocator<std::__1::__bind<void (*)(int&), std::__1::reference_wrapper<int> > >, void ()>'\r\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1903:12 in \r\n```\r\nbut I discovered them by chance, tests are not failing due to that, any ideas?"},"comment":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/comments/365951617","html_url":"https://github.com/arvidn/libtorrent/issues/2790#issuecomment-365951617","issue_url":"https://api.github.com/repos/arvidn/libtorrent/issues/2790","id":365951617,"user":{"login":"aldenml","id":143813,"avatar_url":"https://avatars0.githubusercontent.com/u/143813?v=4","gravatar_id":"","url":"https://api.github.com/users/aldenml","html_url":"https://github.com/aldenml","followers_url":"https://api.github.com/users/aldenml/followers","following_url":"https://api.github.com/users/aldenml/following{/other_user}","gists_url":"https://api.github.com/users/aldenml/gists{/gist_id}","starred_url":"https://api.github.com/users/aldenml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldenml/subscriptions","organizations_url":"https://api.github.com/users/aldenml/orgs","repos_url":"https://api.github.com/users/aldenml/repos","events_url":"https://api.github.com/users/aldenml/events{/privacy}","received_events_url":"https://api.github.com/users/aldenml/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T14:56:46Z","updated_at":"2018-02-15T14:56:46Z","author_association":"CONTRIBUTOR","body":"Hi @ssiloti , @arvidn what do you think about this: https://travis-ci.org/arvidn/libtorrent/jobs/341908519#L1816"}}
{"actor":{"display_login":"aldenml"}}