I can't work out why. It's fine with make_cold_observable and with buffer.
clang++-3.6 -std=c++14 -O0 -g -stdlib=libc++ -fno-omit-frame-pointer -fPIC -fsanitize=address -lc++abi -fsanitize=address -pie test_rx_leak.cpp -Irxcpp/Rx/v2/src
=================================================================
==22438==ERROR: LeakSanitizer: detected memory leaks
Indirect leak of 1152 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608848e09 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608848e09 in std::__1::allocator<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long> >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608848e09 in std::__1::allocator_traits<std::__1::allocator<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long> > >::allocate(std::__1::allocator<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long> >&, unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1439
#4 0x7f9608848e09 in std::__1::__split_buffer<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long>, std::__1::allocator<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long> >&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long> >&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/__split_buffer:325
#5 0x7f9608848c43 in void std::__1::vector<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long>, std::__1::allocator<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long> > >::__push_back_slow_path<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long> >(std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long>&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/vector:1579:49
#6 0x7f96088482e8 in std::__1::vector<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long>, std::__1::allocator<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long> > >::push_back(std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long>&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/vector:1620:9
#7 0x7f96088482e8 in std::__1::priority_queue<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long>, std::__1::vector<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long>, std::__1::allocator<std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long> > >, rxcpp::schedulers::detail::schedulable_queue<long>::compare_elem>::push(std::__1::pair<rxcpp::schedulers::detail::time_schedulable<long>, long>&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/queue:659
#8 0x7f96088482e8 in rxcpp::schedulers::detail::schedulable_queue<long>::push(rxcpp::schedulers::detail::time_schedulable<long>&&) /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:870
#9 0x7f9608847cc9 in rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:219:9
#10 0x7f9608822aa1 in _ZNK5rxcpp10schedulers4test11test_worker17schedule_absoluteIZNKS2_5startIiZ4mainE3$_0EENS_10subscriberIT_NS_4test17testable_observerIS7_EEEET0_lllEUlRKNS0_11schedulableEE1_JEEENSt3__19enable_ifIXaaoosr6detail18is_action_functionIS7_EE5valuesr15is_subscriptionIS7_EE5valuentsr14is_schedulableIS7_EE5valueEvE4typeElOS7_DpOT0_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:426:13
#11 0x7f96088223c6 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:464:13
#12 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#13 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#14 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 184 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f96088401e4 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f96088401e4 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::schedulers::detail::hot_observable<int>, std::__1::allocator<rxcpp::schedulers::detail::hot_observable<int> > > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f96088401e4 in std::__1::shared_ptr<rxcpp::schedulers::detail::hot_observable<int> > std::__1::shared_ptr<rxcpp::schedulers::detail::hot_observable<int> >::make_shared<std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > > >(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&, rxcpp::schedulers::worker&&, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f960883fadb in _ZNSt3__111make_sharedIN5rxcpp10schedulers6detail14hot_observableIiEEJRNS_10shared_ptrINS3_9test_type15test_type_stateEEENS2_6workerENS_6vectorINS1_13notifications8recordedINS6_INSD_6detail17notification_baseIiEEEEEENS_9allocatorISJ_EEEEEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS6_ISO_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f960883fadb in rxcpp::test::testable_observable<int> rxcpp::schedulers::detail::test_type::make_hot_observable<int>(std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:336
#6 0x7f9608825b2e in _ZNK5rxcpp10schedulers4test19make_hot_observableINS_13notifications8recordedINSt3__110shared_ptrINS3_6detail17notification_baseIiEEEEEEEEDTclptptdtdefpT6tester19make_hot_observablecvNS5_6vectorIT_NS5_9allocatorISD_EEEE_EEESt16initializer_listISD_E /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:551:21
#7 0x7f9608821d8c in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:14:14
#8 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 136 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608830431 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608830431 in std::__1::allocator<std::__1::__shared_ptr_emplace<void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::state_type, std::__1::allocator<void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::state_type> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608830431 in std::__1::shared_ptr<void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::state_type> std::__1::shared_ptr<void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::state_type>::make_shared<rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::values const&, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&>(rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::values const&, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f960882c0c9 in _ZNSt3__111make_sharedIZNK5rxcpp9operators6detail4takeIiNS1_10observableIiNS1_4test6detail11test_sourceIiEEEEiE12on_subscribeINS1_10subscriberIiNS6_17testable_observerIiEEEEEEvRKT_E10state_typeJRKNSB_6valuesERKSG_EEENS_9enable_ifIXntsr8is_arrayISH_EE5valueENS_10shared_ptrISH_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f960882c0c9 in void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const /home/ben/development/yy/pictet/rxcpp/operators/rx-take.hpp:66
#6 0x7f960882bead in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:329:17
#7 0x7f96088311be in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#8 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#9 0x7f9608832584 in rxcpp::schedulers::current_thread::current_worker::schedule(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-currentthread.hpp:200:17
#10 0x7f960882bcf8 in _ZNK5rxcpp10schedulers6worker8scheduleIZNKS_10observableIiNS_9operators6detail4takeIiNS3_IiNS_4test6detail11test_sourceIiEEEEiEEE16detail_subscribeINS_10subscriberIiNS7_17testable_observerIiEEEEEENS_22composite_subscriptionET_EUlRKNS0_11schedulableEE_JEEENSt3__19enable_ifIXaaoosr6detail18is_action_functionISK_EE5valuesr15is_subscriptionISK_EE5valuentsr14is_schedulableISK_EE5valueEvE4typeEOSK_DpOT0_ /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:743:5
#11 0x7f960882b6bd in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:354:5
#12 0x7f960882b4a4 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:472:16
#13 0x7f960882426c in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:462:17
#14 0x7f960882411b in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#15 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#16 0x7f960884a0d2 in rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:216:21
#17 0x7f9608849f6e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#18 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#19 0x7f96088266c9 in rxcpp::schedulers::detail::virtual_time_base<long, long>::start() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:83:21
#20 0x7f96088223ee in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:468:13
#21 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#22 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#23 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 128 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f960882eb35 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f960882eb35 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::dynamic_observer<int>::specific_observer<rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> >, std::__1::allocator<{lambda()#1}> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f960882eb35 in void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1} std::__1::shared_ptr<rxcpp::dynamic_observer<int>::specific_observer<rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > >::make_shared<void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}>(void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f960882e978 in _ZNSt3__111make_sharedIN5rxcpp16dynamic_observerIiE17specific_observerINS1_15static_observerIiZNKS1_9operators6detail4takeIiNS1_10observableIiNS1_4test6detail11test_sourceIiEEEEiE12on_subscribeINS1_10subscriberIiNSA_17testable_observerIiEEEEEEvRKT_EUliE_ZNKSG_ISK_EEvSN_EUlSt13exception_ptrE_ZNKSG_ISK_EEvSN_EUlvE_EEEEJSS_EEENS_9enable_ifIXntsr8is_arrayISL_EE5valueENS_10shared_ptrISL_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f960882e978 in std::__1::shared_ptr<rxcpp::dynamic_observer<int>::virtual_observer> rxcpp::dynamic_observer<int>::make_destination<rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> >(rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}>) /home/ben/development/yy/pictet/rxcpp/rx-observer.hpp:176
#6 0x7f960882e853 in rxcpp::dynamic_observer<int>::dynamic_observer<rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> >(rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}>) /home/ben/development/yy/pictet/rxcpp/rx-observer.hpp:194:23
#7 0x7f960882e67e in rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> >::as_dynamic() const /home/ben/development/yy/pictet/rxcpp/rx-observer.hpp:263:9
#8 0x7f960882e4cd in rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > >::as_dynamic() const /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:157:44
#9 0x7f960882dc68 in _ZNK5rxcpp4test6detail11test_sourceIiE12on_subscribeINS_10subscriberIiNS_8observerIiNS_15static_observerIiZNKS_9operators6detail4takeIiNS_10observableIiS3_EEiE12on_subscribeINS5_IiNS0_17testable_observerIiEEEEEEvRKT_EUliE_ZNKSE_ISH_EEvSK_EUlSt13exception_ptrE_ZNKSE_ISH_EEvSK_EUlvE_EEEEEEEENSt3__19enable_ifIXntsr3std7is_sameISI_NS5_IiNS6_IiNS_16dynamic_observerIiEEEEEEEE5valueEvE4typeESI_ /home/ben/development/yy/pictet/rxcpp/rx-test.hpp:45:26
#10 0x7f960882da21 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::test::detail::test_source<int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > > >(rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > >) const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:329:17
#11 0x7f960882ce29 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::test::detail::test_source<int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > > >(rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > >) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:349:13
#12 0x7f960882cb9d in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::test::detail::test_source<int> >::subscribe<rxcpp::composite_subscription&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}>(rxcpp::composite_subscription&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}&&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}&&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}&&) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:472:16
#13 0x7f960882c2e4 in void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const /home/ben/development/yy/pictet/rxcpp/operators/rx-take.hpp:72:9
#14 0x7f960882bead in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:329:17
#15 0x7f96088311be in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#16 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#17 0x7f9608832584 in rxcpp::schedulers::current_thread::current_worker::schedule(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-currentthread.hpp:200:17
#18 0x7f960882bcf8 in _ZNK5rxcpp10schedulers6worker8scheduleIZNKS_10observableIiNS_9operators6detail4takeIiNS3_IiNS_4test6detail11test_sourceIiEEEEiEEE16detail_subscribeINS_10subscriberIiNS7_17testable_observerIiEEEEEENS_22composite_subscriptionET_EUlRKNS0_11schedulableEE_JEEENSt3__19enable_ifIXaaoosr6detail18is_action_functionISK_EE5valuesr15is_subscriptionISK_EE5valuentsr14is_schedulableISK_EE5valueEvE4typeEOSK_DpOT0_ /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:743:5
#19 0x7f960882b6bd in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:354:5
#20 0x7f960882b4a4 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:472:16
#21 0x7f960882426c in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:462:17
#22 0x7f960882411b in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#23 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#24 0x7f960884a0d2 in rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:216:21
#25 0x7f9608849f6e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#26 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#27 0x7f96088266c9 in rxcpp::schedulers::detail::virtual_time_base<long, long>::start() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:83:21
#28 0x7f96088223ee in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:468:13
#29 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#30 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#31 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 112 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608845ba7 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608845ba7 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::detail::composite_subscription_inner::composite_subscription_state, std::__1::allocator<rxcpp::detail::composite_subscription_inner::composite_subscription_state> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608845ba7 in std::__1::shared_ptr<rxcpp::detail::composite_subscription_inner::composite_subscription_state> std::__1::shared_ptr<rxcpp::detail::composite_subscription_inner::composite_subscription_state>::make_shared<>() /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f9608844d78 in _ZNSt3__111make_sharedIN5rxcpp6detail28composite_subscription_inner28composite_subscription_stateEJEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS6_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f9608844d78 in rxcpp::detail::composite_subscription_inner::composite_subscription_inner() /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:295
#6 0x7f9608825964 in rxcpp::composite_subscription::composite_subscription() /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:376:5
#7 0x7f960882c0d1 in void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const /home/ben/development/yy/pictet/rxcpp/operators/rx-take.hpp:68:32
#8 0x7f960882bead in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:329:17
#9 0x7f96088311be in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#10 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#11 0x7f9608832584 in rxcpp::schedulers::current_thread::current_worker::schedule(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-currentthread.hpp:200:17
#12 0x7f960882bcf8 in _ZNK5rxcpp10schedulers6worker8scheduleIZNKS_10observableIiNS_9operators6detail4takeIiNS3_IiNS_4test6detail11test_sourceIiEEEEiEEE16detail_subscribeINS_10subscriberIiNS7_17testable_observerIiEEEEEENS_22composite_subscriptionET_EUlRKNS0_11schedulableEE_JEEENSt3__19enable_ifIXaaoosr6detail18is_action_functionISK_EE5valuesr15is_subscriptionISK_EE5valuentsr14is_schedulableISK_EE5valueEvE4typeEOSK_DpOT0_ /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:743:5
#13 0x7f960882b6bd in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:354:5
#14 0x7f960882b4a4 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:472:16
#15 0x7f960882426c in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:462:17
#16 0x7f960882411b in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#17 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#18 0x7f960884a0d2 in rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:216:21
#19 0x7f9608849f6e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#20 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#21 0x7f96088266c9 in rxcpp::schedulers::detail::virtual_time_base<long, long>::start() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:83:21
#22 0x7f96088223ee in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:468:13
#23 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#24 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#25 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 112 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608845ba7 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608845ba7 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::detail::composite_subscription_inner::composite_subscription_state, std::__1::allocator<rxcpp::detail::composite_subscription_inner::composite_subscription_state> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608845ba7 in std::__1::shared_ptr<rxcpp::detail::composite_subscription_inner::composite_subscription_state> std::__1::shared_ptr<rxcpp::detail::composite_subscription_inner::composite_subscription_state>::make_shared<>() /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f9608844d78 in _ZNSt3__111make_sharedIN5rxcpp6detail28composite_subscription_inner28composite_subscription_stateEJEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS6_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f9608844d78 in rxcpp::detail::composite_subscription_inner::composite_subscription_inner() /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:295
#6 0x7f9608825964 in rxcpp::composite_subscription::composite_subscription() /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:376:5
#7 0x7f960883fab4 in rxcpp::test::testable_observable<int> rxcpp::schedulers::detail::test_type::make_hot_observable<int>(std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:336:52
#8 0x7f9608825b2e in _ZNK5rxcpp10schedulers4test19make_hot_observableINS_13notifications8recordedINSt3__110shared_ptrINS3_6detail17notification_baseIiEEEEEEEEDTclptptdtdefpT6tester19make_hot_observablecvNS5_6vectorIT_NS5_9allocatorISD_EEEE_EEESt16initializer_listISD_E /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:551:21
#9 0x7f9608821d8c in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:14:14
#10 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 112 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608845ba7 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608845ba7 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::detail::composite_subscription_inner::composite_subscription_state, std::__1::allocator<rxcpp::detail::composite_subscription_inner::composite_subscription_state> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608845ba7 in std::__1::shared_ptr<rxcpp::detail::composite_subscription_inner::composite_subscription_state> std::__1::shared_ptr<rxcpp::detail::composite_subscription_inner::composite_subscription_state>::make_shared<>() /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f9608844d78 in _ZNSt3__111make_sharedIN5rxcpp6detail28composite_subscription_inner28composite_subscription_stateEJEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS6_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f9608844d78 in rxcpp::detail::composite_subscription_inner::composite_subscription_inner() /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:295
#6 0x7f9608825964 in rxcpp::composite_subscription::composite_subscription() /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:376:5
#7 0x7f9608836a4b in _ZN5rxcpp15make_subscriberIiNS_4test17testable_observerIiEEEENSt3__19enable_ifIXsr11is_observerIT0_EE5valueENS_10subscriberIT_S6_EEE4typeERKS6_ /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:241:5
#8 0x7f96088367f8 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:191:12
#9 0x7f9608826227 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::make_subscriber<int>() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:522:20
#10 0x7f96088221f3 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:456:55
#11 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#12 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#13 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 104 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608847697 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608847697 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::schedulers::detail::test_type::test_type_state, std::__1::allocator<rxcpp::schedulers::detail::test_type::test_type_state> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608847697 in std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state> std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>::make_shared<>() /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f96088475e5 in _ZNSt3__111make_sharedIN5rxcpp10schedulers6detail9test_type15test_type_stateEJEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS7_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f96088475e5 in rxcpp::schedulers::detail::test_type::test_type() /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:127
#6 0x7f9608846fad in std::__1::__libcpp_compressed_pair_imp<std::__1::allocator<rxcpp::schedulers::detail::test_type>, rxcpp::schedulers::detail::test_type, 1u>::__libcpp_compressed_pair_imp(std::__1::allocator<rxcpp::schedulers::detail::test_type>) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:2047:40
#7 0x7f9608846fad in std::__1::__compressed_pair<std::__1::allocator<rxcpp::schedulers::detail::test_type>, rxcpp::schedulers::detail::test_type>::__compressed_pair(std::__1::allocator<rxcpp::schedulers::detail::test_type>) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:2317
#8 0x7f9608846fad in std::__1::__shared_ptr_emplace<rxcpp::schedulers::detail::test_type, std::__1::allocator<rxcpp::schedulers::detail::test_type> >::__shared_ptr_emplace(std::__1::allocator<rxcpp::schedulers::detail::test_type>) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:3699
#9 0x7f9608846fad in std::__1::shared_ptr<rxcpp::schedulers::detail::test_type> std::__1::shared_ptr<rxcpp::schedulers::detail::test_type>::make_shared<>() /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4280
#10 0x7f9608825720 in _ZNSt3__111make_sharedIN5rxcpp10schedulers6detail9test_typeEJEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS6_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#11 0x7f9608825720 in rxcpp::schedulers::make_test() /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:574
#12 0x7f9608821d0f in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:10:14
#13 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 96 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f960883755f in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f960883755f in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::dynamic_observer<int>::specific_observer<rxcpp::observer<int, rxcpp::static_observer<int, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(int)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(std::exception_ptr)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}> > >, std::__1::allocator<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f960883755f in rxcpp::static_observer<int, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(int)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(std::exception_ptr)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}> std::__1::shared_ptr<rxcpp::dynamic_observer<int>::specific_observer<rxcpp::observer<int, rxcpp::static_observer<int, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(int)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(std::exception_ptr)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}> > > >::make_shared<{lambda()#1}>({lambda()#1}&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f9608837358 in _ZNSt3__111make_sharedIN5rxcpp16dynamic_observerIiE17specific_observerINS1_8observerIiNS1_15static_observerIiZNKS1_10schedulers6detail9test_type16test_type_worker15make_subscriberIiEENS1_10subscriberIT_NS1_4test17testable_observerISD_EEEEvEUliE_ZNKSB_IiEESH_vEUlSt13exception_ptrE_ZNKSB_IiEESH_vEUlvE_EEEEEEJSN_EEENS_9enable_ifIXntsr8is_arrayISD_EE5valueENS_10shared_ptrISD_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f9608837358 in std::__1::shared_ptr<rxcpp::dynamic_observer<int>::virtual_observer> rxcpp::dynamic_observer<int>::make_destination<rxcpp::observer<int, rxcpp::static_observer<int, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(int)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(std::exception_ptr)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}> > >(rxcpp::observer<int, rxcpp::static_observer<int, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(int)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(std::exception_ptr)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}> >) /home/ben/development/yy/pictet/rxcpp/rx-observer.hpp:176
#6 0x7f9608837225 in rxcpp::dynamic_observer<int>::dynamic_observer<rxcpp::observer<int, rxcpp::static_observer<int, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(int)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(std::exception_ptr)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}> > >(rxcpp::observer<int, rxcpp::static_observer<int, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(int)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(std::exception_ptr)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}> >) /home/ben/development/yy/pictet/rxcpp/rx-observer.hpp:194:23
#7 0x7f9608836c0c in _ZN5rxcpp21make_observer_dynamicIiZNKS_10schedulers6detail9test_type16test_type_worker15make_subscriberIiEENS_10subscriberIT_NS_4test17testable_observerIS7_EEEEvEUliE_ZNKS5_IiEESB_vEUlSt13exception_ptrE_ZNKS5_IiEESB_vEUlvE_EENSt3__19enable_ifIXaaaasr6detail13is_on_next_ofIS7_T0_EE5valuesr6detail11is_on_errorIT1_EE5valuesr6detail15is_on_completedIT2_EE5valueENS_8observerIS7_NS_16dynamic_observerIS7_EEEEE4typeEOSI_OSJ_OSK_ /home/ben/development/yy/pictet/rxcpp/rx-observer.hpp:380:5
#8 0x7f96088367d6 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:191:68
#9 0x7f9608826227 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::make_subscriber<int>() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:522:20
#10 0x7f96088221f3 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:456:55
#11 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#12 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#13 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 88 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f960883eed5 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f960883eed5 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::schedulers::detail::mock_observer<int>, std::__1::allocator<rxcpp::schedulers::detail::mock_observer<int> > > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f960883eed5 in std::__1::shared_ptr<rxcpp::schedulers::detail::mock_observer<int> > std::__1::shared_ptr<rxcpp::schedulers::detail::mock_observer<int> >::make_shared<std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&>(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f96088365c4 in _ZNSt3__111make_sharedIN5rxcpp10schedulers6detail13mock_observerIiEEJRNS_10shared_ptrINS3_9test_type15test_type_stateEEEEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS6_ISC_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f96088365c4 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:189
#6 0x7f9608826227 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::make_subscriber<int>() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:522:20
#7 0x7f96088221f3 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:456:55
#8 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#9 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#10 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608845098 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608845098 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner>, std::__1::allocator<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner> > > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608845098 in std::__1::shared_ptr<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner> > std::__1::shared_ptr<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner> >::make_shared<rxcpp::detail::composite_subscription_inner>(rxcpp::detail::composite_subscription_inner&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f9608844ebd in _ZNSt3__111make_sharedIN5rxcpp12subscription18subscription_stateINS1_6detail28composite_subscription_innerEEEJS5_EEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS8_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f9608844ebd in _ZN5rxcpp12subscriptionC2INS_6detail28composite_subscription_innerEEET_NSt3__19enable_ifIXntsr15is_subscriptionIS4_EE5valueEPPvE4typeE /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:130
#6 0x7f9608825988 in rxcpp::composite_subscription::composite_subscription() /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:376:5
#7 0x7f960883fab4 in rxcpp::test::testable_observable<int> rxcpp::schedulers::detail::test_type::make_hot_observable<int>(std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:336:52
#8 0x7f9608825b2e in _ZNK5rxcpp10schedulers4test19make_hot_observableINS_13notifications8recordedINSt3__110shared_ptrINS3_6detail17notification_baseIiEEEEEEEEDTclptptdtdefpT6tester19make_hot_observablecvNS5_6vectorIT_NS5_9allocatorISD_EEEE_EEESt16initializer_listISD_E /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:551:21
#9 0x7f9608821d8c in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:14:14
#10 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608845098 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608845098 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner>, std::__1::allocator<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner> > > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608845098 in std::__1::shared_ptr<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner> > std::__1::shared_ptr<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner> >::make_shared<rxcpp::detail::composite_subscription_inner>(rxcpp::detail::composite_subscription_inner&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f9608844ebd in _ZNSt3__111make_sharedIN5rxcpp12subscription18subscription_stateINS1_6detail28composite_subscription_innerEEEJS5_EEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS8_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f9608844ebd in _ZN5rxcpp12subscriptionC2INS_6detail28composite_subscription_innerEEET_NSt3__19enable_ifIXntsr15is_subscriptionIS4_EE5valueEPPvE4typeE /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:130
#6 0x7f9608825988 in rxcpp::composite_subscription::composite_subscription() /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:376:5
#7 0x7f9608836a4b in _ZN5rxcpp15make_subscriberIiNS_4test17testable_observerIiEEEENSt3__19enable_ifIXsr11is_observerIT0_EE5valueENS_10subscriberIT_S6_EEE4typeERKS6_ /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:241:5
#8 0x7f96088367f8 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:191:12
#9 0x7f9608826227 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::make_subscriber<int>() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:522:20
#10 0x7f96088221f3 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:456:55
#11 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#12 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#13 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608845098 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608845098 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner>, std::__1::allocator<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner> > > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608845098 in std::__1::shared_ptr<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner> > std::__1::shared_ptr<rxcpp::subscription::subscription_state<rxcpp::detail::composite_subscription_inner> >::make_shared<rxcpp::detail::composite_subscription_inner>(rxcpp::detail::composite_subscription_inner&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f9608844ebd in _ZNSt3__111make_sharedIN5rxcpp12subscription18subscription_stateINS1_6detail28composite_subscription_innerEEEJS5_EEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS8_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f9608844ebd in _ZN5rxcpp12subscriptionC2INS_6detail28composite_subscription_innerEEET_NSt3__19enable_ifIXntsr15is_subscriptionIS4_EE5valueEPPvE4typeE /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:130
#6 0x7f9608825988 in rxcpp::composite_subscription::composite_subscription() /home/ben/development/yy/pictet/rxcpp/rx-subscription.hpp:376:5
#7 0x7f960882c0d1 in void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const /home/ben/development/yy/pictet/rxcpp/operators/rx-take.hpp:68:32
#8 0x7f960882bead in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:329:17
#9 0x7f96088311be in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#10 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#11 0x7f9608832584 in rxcpp::schedulers::current_thread::current_worker::schedule(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-currentthread.hpp:200:17
#12 0x7f960882bcf8 in _ZNK5rxcpp10schedulers6worker8scheduleIZNKS_10observableIiNS_9operators6detail4takeIiNS3_IiNS_4test6detail11test_sourceIiEEEEiEEE16detail_subscribeINS_10subscriberIiNS7_17testable_observerIiEEEEEENS_22composite_subscriptionET_EUlRKNS0_11schedulableEE_JEEENSt3__19enable_ifIXaaoosr6detail18is_action_functionISK_EE5valuesr15is_subscriptionISK_EE5valuentsr14is_schedulableISK_EE5valueEvE4typeEOSK_DpOT0_ /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:743:5
#13 0x7f960882b6bd in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:354:5
#14 0x7f960882b4a4 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:472:16
#15 0x7f960882426c in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:462:17
#16 0x7f960882411b in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#17 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#18 0x7f960884a0d2 in rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:216:21
#19 0x7f9608849f6e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#20 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#21 0x7f96088266c9 in rxcpp::schedulers::detail::virtual_time_base<long, long>::start() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:83:21
#22 0x7f96088223ee in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:468:13
#23 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#24 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#25 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 64 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608846575 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608846575 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::schedulers::detail::test_type::test_type_worker, std::__1::allocator<rxcpp::schedulers::detail::test_type::test_type_worker> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608846575 in std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_worker> std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_worker>::make_shared<std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&>(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f9608847454 in _ZNSt3__111make_sharedIN5rxcpp10schedulers6detail9test_type16test_type_workerEJRNS_10shared_ptrINS4_15test_type_stateEEEEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS6_ISB_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f9608847454 in rxcpp::schedulers::detail::test_type::create_worker(rxcpp::composite_subscription) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:136
#6 0x7f960883fac0 in rxcpp::test::testable_observable<int> rxcpp::schedulers::detail::test_type::make_hot_observable<int>(std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:336:52
#7 0x7f9608825b2e in _ZNK5rxcpp10schedulers4test19make_hot_observableINS_13notifications8recordedINSt3__110shared_ptrINS3_6detail17notification_baseIiEEEEEEEEDTclptptdtdefpT6tester19make_hot_observablecvNS5_6vectorIT_NS5_9allocatorISD_EEEE_EEESt16initializer_listISD_E /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:551:21
#8 0x7f9608821d8c in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:14:14
#9 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 56 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608842ef2 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608842ef2 in std::__1::allocator<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608842ef2 in std::__1::allocator_traits<std::__1::allocator<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > > > >::allocate(std::__1::allocator<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > > >&, unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1439
#4 0x7f9608842ef2 in std::__1::__split_buffer<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >, std::__1::allocator<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > > >&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > > >&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/__split_buffer:325
#5 0x7f9608842d92 in void std::__1::vector<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >, std::__1::allocator<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > > > >::__push_back_slow_path<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > > const&>(rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > > const&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/vector:1579:49
#6 0x7f9608840a4b in std::__1::vector<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >, std::__1::allocator<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > > > >::push_back(rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > > const&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/vector:1600:9
#7 0x7f9608840a4b in rxcpp::schedulers::detail::hot_observable<int>::on_subscribe(rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:313
#8 0x7f960882dc71 in _ZNK5rxcpp4test6detail11test_sourceIiE12on_subscribeINS_10subscriberIiNS_8observerIiNS_15static_observerIiZNKS_9operators6detail4takeIiNS_10observableIiS3_EEiE12on_subscribeINS5_IiNS0_17testable_observerIiEEEEEEvRKT_EUliE_ZNKSE_ISH_EEvSK_EUlSt13exception_ptrE_ZNKSE_ISH_EEvSK_EUlvE_EEEEEEEENSt3__19enable_ifIXntsr3std7is_sameISI_NS5_IiNS6_IiNS_16dynamic_observerIiEEEEEEEE5valueEvE4typeESI_ /home/ben/development/yy/pictet/rxcpp/rx-test.hpp:45:9
#9 0x7f960882da21 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::test::detail::test_source<int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > > >(rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > >) const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:329:17
#10 0x7f960882ce29 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::test::detail::test_source<int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > > >(rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > >) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:349:13
#11 0x7f960882cb9d in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::test::detail::test_source<int> >::subscribe<rxcpp::composite_subscription&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}>(rxcpp::composite_subscription&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}&&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}&&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}&&) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:472:16
#12 0x7f960882c2e4 in void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const /home/ben/development/yy/pictet/rxcpp/operators/rx-take.hpp:72:9
#13 0x7f960882bead in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:329:17
#14 0x7f96088311be in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#15 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#16 0x7f9608832584 in rxcpp::schedulers::current_thread::current_worker::schedule(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-currentthread.hpp:200:17
#17 0x7f960882bcf8 in _ZNK5rxcpp10schedulers6worker8scheduleIZNKS_10observableIiNS_9operators6detail4takeIiNS3_IiNS_4test6detail11test_sourceIiEEEEiEEE16detail_subscribeINS_10subscriberIiNS7_17testable_observerIiEEEEEENS_22composite_subscriptionET_EUlRKNS0_11schedulableEE_JEEENSt3__19enable_ifIXaaoosr6detail18is_action_functionISK_EE5valuesr15is_subscriptionISK_EE5valuentsr14is_schedulableISK_EE5valueEvE4typeEOSK_DpOT0_ /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:743:5
#18 0x7f960882b6bd in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:354:5
#19 0x7f960882b4a4 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:472:16
#20 0x7f960882426c in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:462:17
#21 0x7f960882411b in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#22 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#23 0x7f960884a0d2 in rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:216:21
#24 0x7f9608849f6e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#25 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#26 0x7f96088266c9 in rxcpp::schedulers::detail::virtual_time_base<long, long>::start() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:83:21
#27 0x7f96088223ee in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:468:13
#28 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#29 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#30 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 56 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f960883d31a in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f960883d31a in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::notifications::notification<int>::on_next_notification, std::__1::allocator<rxcpp::notifications::notification<int>::on_next_notification> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f960883d31a in std::__1::shared_ptr<rxcpp::notifications::notification<int>::on_next_notification> std::__1::shared_ptr<rxcpp::notifications::notification<int>::on_next_notification>::make_shared<int>(int&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f960883d153 in _ZNSt3__111make_sharedIN5rxcpp13notifications12notificationIiE20on_next_notificationEJiEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS7_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f960883d153 in std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > rxcpp::notifications::notification<int>::on_next<int>(int) /home/ben/development/yy/pictet/rxcpp/rx-notification.hpp:211
#6 0x7f960883cf19 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(int)#1}::operator()(int) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:196:62
#7 0x7f96088379bc in rxcpp::dynamic_observer<int>::specific_observer<rxcpp::observer<int, rxcpp::static_observer<int, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(int)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda(std::exception_ptr)#1}, rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}> > >::on_next(int) const /home/ben/development/yy/pictet/rxcpp/rx-observer.hpp:161:13
#8 0x7f960882f750 in void rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >::nextdetacher::operator()<int>(int) /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:47:13
#9 0x7f960882f5d8 in void rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >::on_next<int&>(int&) const /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:168:9
#10 0x7f960882f427 in void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}::operator()(int) const /home/ben/development/yy/pictet/rxcpp/operators/rx-take.hpp:82:25
#11 0x7f960883dc90 in void rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >::nextdetacher::operator()<int>(int) /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:47:13
#12 0x7f960883db18 in void rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >::on_next<int const&>(int const&) const /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:168:9
#13 0x7f9608844944 in rxcpp::schedulers::detail::hot_observable<int>::hot_observable(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >)::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:305:29
#14 0x7f960884474e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::detail::hot_observable<int>::hot_observable(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >)::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::detail::hot_observable<int>::hot_observable(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >)::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#15 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#16 0x7f960884a0d2 in rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:216:21
#17 0x7f9608849f6e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#18 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#19 0x7f96088266c9 in rxcpp::schedulers::detail::virtual_time_base<long, long>::start() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:83:21
#20 0x7f96088223ee in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:468:13
#21 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#22 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#23 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 56 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f960883d31a in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f960883d31a in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::notifications::notification<int>::on_next_notification, std::__1::allocator<rxcpp::notifications::notification<int>::on_next_notification> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f960883d31a in std::__1::shared_ptr<rxcpp::notifications::notification<int>::on_next_notification> std::__1::shared_ptr<rxcpp::notifications::notification<int>::on_next_notification>::make_shared<int>(int&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f960883d153 in _ZNSt3__111make_sharedIN5rxcpp13notifications12notificationIiE20on_next_notificationEJiEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS7_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f960883d153 in std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > rxcpp::notifications::notification<int>::on_next<int>(int) /home/ben/development/yy/pictet/rxcpp/rx-notification.hpp:211
#6 0x7f9608825c41 in rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > rxcpp::schedulers::test::messages<int>::next<int>(long, int) /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:381:41
#7 0x7f9608821d54 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:15:7
#8 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 48 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f96088380f7 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f96088380f7 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::notifications::notification<int>::on_completed_notification, std::__1::allocator<rxcpp::notifications::notification<int>::on_completed_notification> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f96088380f7 in std::__1::shared_ptr<rxcpp::notifications::notification<int>::on_completed_notification> std::__1::shared_ptr<rxcpp::notifications::notification<int>::on_completed_notification>::make_shared<>() /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f9608837e84 in _ZNSt3__111make_sharedIN5rxcpp13notifications12notificationIiE25on_completed_notificationEJEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS7_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f9608837e84 in rxcpp::notifications::notification<int>::on_completed() /home/ben/development/yy/pictet/rxcpp/rx-notification.hpp:215
#6 0x7f9608837c40 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:208:62
#7 0x7f960882f147 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >::on_completed() const /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:182:9
#8 0x7f960882f44a in void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}::operator()(int) const /home/ben/development/yy/pictet/rxcpp/operators/rx-take.hpp:85:25
#9 0x7f960883dc90 in void rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >::nextdetacher::operator()<int>(int) /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:47:13
#10 0x7f960883db18 in void rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >::on_next<int const&>(int const&) const /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:168:9
#11 0x7f9608844944 in rxcpp::schedulers::detail::hot_observable<int>::hot_observable(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >)::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:305:29
#12 0x7f960884474e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::detail::hot_observable<int>::hot_observable(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >)::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::detail::hot_observable<int>::hot_observable(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >)::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#13 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#14 0x7f960884a0d2 in rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:216:21
#15 0x7f9608849f6e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#16 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#17 0x7f96088266c9 in rxcpp::schedulers::detail::virtual_time_base<long, long>::start() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:83:21
#18 0x7f96088223ee in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:468:13
#19 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#20 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#21 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 48 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f96088380f7 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f96088380f7 in std::__1::allocator<std::__1::__shared_ptr_emplace<rxcpp::notifications::notification<int>::on_completed_notification, std::__1::allocator<rxcpp::notifications::notification<int>::on_completed_notification> > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f96088380f7 in std::__1::shared_ptr<rxcpp::notifications::notification<int>::on_completed_notification> std::__1::shared_ptr<rxcpp::notifications::notification<int>::on_completed_notification>::make_shared<>() /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4279
#4 0x7f9608837e84 in _ZNSt3__111make_sharedIN5rxcpp13notifications12notificationIiE25on_completed_notificationEJEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS_10shared_ptrIS7_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#5 0x7f9608837e84 in rxcpp::notifications::notification<int>::on_completed() /home/ben/development/yy/pictet/rxcpp/rx-notification.hpp:215
#6 0x7f9608825d29 in rxcpp::schedulers::test::messages<int>::completed(long) /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:385:41
#7 0x7f9608821d65 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:16:7
#8 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 48 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f960883f56f in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f960883f56f in std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f960883f56f in std::__1::allocator_traits<std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >::allocate(std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > >&, unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1439
#4 0x7f960883f56f in std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >::allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/vector:936
#5 0x7f960883f4da in std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >::vector(std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > > const&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/vector:1214:9
#6 0x7f96088436ce in rxcpp::schedulers::detail::hot_observable<int>::hot_observable(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >) /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:294:11
#7 0x7f9608840385 in std::__1::__libcpp_compressed_pair_imp<std::__1::allocator<rxcpp::schedulers::detail::hot_observable<int> >, rxcpp::schedulers::detail::hot_observable<int>, 1u>::__libcpp_compressed_pair_imp<std::__1::allocator<rxcpp::schedulers::detail::hot_observable<int> >&, std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&, rxcpp::schedulers::worker&&, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >&&, 0ul, 0ul, 1ul, 2ul>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<rxcpp::schedulers::detail::hot_observable<int> >&>, std::__1::tuple<std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&, rxcpp::schedulers::worker&&, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >&&>, std::__1::__tuple_indices<0ul>, std::__1::__tuple_indices<0ul, 1ul, 2ul>) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:2100:15
#8 0x7f9608840385 in std::__1::__compressed_pair<std::__1::allocator<rxcpp::schedulers::detail::hot_observable<int> >, rxcpp::schedulers::detail::hot_observable<int> >::__compressed_pair<std::__1::allocator<rxcpp::schedulers::detail::hot_observable<int> >&, std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&, rxcpp::schedulers::worker&&, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >&&>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<rxcpp::schedulers::detail::hot_observable<int> >&>, std::__1::tuple<std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&, rxcpp::schedulers::worker&&, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >&&>) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:2366
#9 0x7f9608840385 in std::__1::__shared_ptr_emplace<rxcpp::schedulers::detail::hot_observable<int>, std::__1::allocator<rxcpp::schedulers::detail::hot_observable<int> > >::__shared_ptr_emplace<std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > > >(std::__1::allocator<rxcpp::schedulers::detail::hot_observable<int> >, std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&, rxcpp::schedulers::worker&&, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:3704
#10 0x7f9608840385 in std::__1::shared_ptr<rxcpp::schedulers::detail::hot_observable<int> > std::__1::shared_ptr<rxcpp::schedulers::detail::hot_observable<int> >::make_shared<std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > > >(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>&, rxcpp::schedulers::worker&&, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4280
#11 0x7f960883fadb in _ZNSt3__111make_sharedIN5rxcpp10schedulers6detail14hot_observableIiEEJRNS_10shared_ptrINS3_9test_type15test_type_stateEEENS2_6workerENS_6vectorINS1_13notifications8recordedINS6_INSD_6detail17notification_baseIiEEEEEENS_9allocatorISJ_EEEEEEENS_9enable_ifIXntsr8is_arrayIT_EE5valueENS6_ISO_EEE4typeEDpOT0_ /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:4644:12
#12 0x7f960883fadb in rxcpp::test::testable_observable<int> rxcpp::schedulers::detail::test_type::make_hot_observable<int>(std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:336
#13 0x7f9608825b2e in _ZNK5rxcpp10schedulers4test19make_hot_observableINS_13notifications8recordedINSt3__110shared_ptrINS3_6detail17notification_baseIiEEEEEEEEDTclptptdtdefpT6tester19make_hot_observablecvNS5_6vectorIT_NS5_9allocatorISD_EEEE_EEESt16initializer_listISD_E /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:551:21
#14 0x7f9608821d8c in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:14:14
#15 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 48 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f960883a51a in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f960883a51a in std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > >::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f960883a51a in std::__1::allocator_traits<std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >::allocate(std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > >&, unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1439
#4 0x7f960883a51a in std::__1::__split_buffer<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > >&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > >&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/__split_buffer:325
#5 0x7f960883a3b2 in void std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >::__push_back_slow_path<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > >(rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/vector:1579:49
#6 0x7f9608837cfd in std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >::push_back(rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/vector:1620:9
#7 0x7f9608837cfd in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::detail::test_type::test_type_worker::make_subscriber<int>() const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:207
#8 0x7f960882f147 in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >::on_completed() const /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:182:9
#9 0x7f960882f44a in void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}::operator()(int) const /home/ben/development/yy/pictet/rxcpp/operators/rx-take.hpp:85:25
#10 0x7f960883dc90 in void rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >::nextdetacher::operator()<int>(int) /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:47:13
#11 0x7f960883db18 in void rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >::on_next<int const&>(int const&) const /home/ben/development/yy/pictet/rxcpp/rx-subscriber.hpp:168:9
#12 0x7f9608844944 in rxcpp::schedulers::detail::hot_observable<int>::hot_observable(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >)::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:305:29
#13 0x7f960884474e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::detail::hot_observable<int>::hot_observable(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >)::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::detail::hot_observable<int>::hot_observable(std::__1::shared_ptr<rxcpp::schedulers::detail::test_type::test_type_state>, rxcpp::schedulers::worker, std::__1::vector<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > >, std::__1::allocator<rxcpp::notifications::recorded<std::__1::shared_ptr<rxcpp::notifications::detail::notification_base<int> > > > >)::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#14 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#15 0x7f960884a0d2 in rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:216:21
#16 0x7f9608849f6e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#17 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#18 0x7f96088266c9 in rxcpp::schedulers::detail::virtual_time_base<long, long>::start() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:83:21
#19 0x7f96088223ee in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:468:13
#20 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#21 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#22 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x7f9608820e32 in operator new(unsigned long) /home/ben/development/llvm/3.6.0/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62:35
#1 0x7f9608842675 in std::__1::__allocate(unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/new:156:10
#2 0x7f9608842675 in std::__1::allocator<rxcpp::notifications::subscription>::allocate(unsigned long, void const*) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1634
#3 0x7f9608842675 in std::__1::allocator_traits<std::__1::allocator<rxcpp::notifications::subscription> >::allocate(std::__1::allocator<rxcpp::notifications::subscription>&, unsigned long) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/memory:1439
#4 0x7f9608842675 in std::__1::__split_buffer<rxcpp::notifications::subscription, std::__1::allocator<rxcpp::notifications::subscription>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<rxcpp::notifications::subscription>&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/__split_buffer:325
#5 0x7f9608842500 in void std::__1::vector<rxcpp::notifications::subscription, std::__1::allocator<rxcpp::notifications::subscription> >::__push_back_slow_path<rxcpp::notifications::subscription>(rxcpp::notifications::subscription&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/vector:1579:49
#6 0x7f9608840b39 in std::__1::vector<rxcpp::notifications::subscription, std::__1::allocator<rxcpp::notifications::subscription> >::push_back(rxcpp::notifications::subscription&&) /home/ben/development/llvm/3.6.0/install/release/bin/../include/c++/v1/vector:1620:9
#7 0x7f9608840b39 in rxcpp::schedulers::detail::hot_observable<int>::on_subscribe(rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::dynamic_observer<int> > >) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:314
#8 0x7f960882dc71 in _ZNK5rxcpp4test6detail11test_sourceIiE12on_subscribeINS_10subscriberIiNS_8observerIiNS_15static_observerIiZNKS_9operators6detail4takeIiNS_10observableIiS3_EEiE12on_subscribeINS5_IiNS0_17testable_observerIiEEEEEEvRKT_EUliE_ZNKSE_ISH_EEvSK_EUlSt13exception_ptrE_ZNKSE_ISH_EEvSK_EUlvE_EEEEEEEENSt3__19enable_ifIXntsr3std7is_sameISI_NS5_IiNS6_IiNS_16dynamic_observerIiEEEEEEEE5valueEvE4typeESI_ /home/ben/development/yy/pictet/rxcpp/rx-test.hpp:45:9
#9 0x7f960882da21 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::test::detail::test_source<int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > > >(rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > >) const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:329:17
#10 0x7f960882ce29 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::test::detail::test_source<int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > > >(rxcpp::subscriber<int, rxcpp::observer<int, rxcpp::static_observer<int, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}> > >) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:349:13
#11 0x7f960882cb9d in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::test::detail::test_source<int> >::subscribe<rxcpp::composite_subscription&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}>(rxcpp::composite_subscription&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(int)#1}&&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda(std::exception_ptr)#1}&&, void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const::{lambda()#1}&&) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:472:16
#12 0x7f960882c2e4 in void rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int>::on_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > const&) const /home/ben/development/yy/pictet/rxcpp/operators/rx-take.hpp:72:9
#13 0x7f960882bead in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda()#1}::operator()() const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:329:17
#14 0x7f96088311be in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#15 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#16 0x7f9608832584 in rxcpp::schedulers::current_thread::current_worker::schedule(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-currentthread.hpp:200:17
#17 0x7f960882bcf8 in _ZNK5rxcpp10schedulers6worker8scheduleIZNKS_10observableIiNS_9operators6detail4takeIiNS3_IiNS_4test6detail11test_sourceIiEEEEiEEE16detail_subscribeINS_10subscriberIiNS7_17testable_observerIiEEEEEENS_22composite_subscriptionET_EUlRKNS0_11schedulableEE_JEEENSt3__19enable_ifIXaaoosr6detail18is_action_functionISK_EE5valuesr15is_subscriptionISK_EE5valuentsr14is_schedulableISK_EE5valueEvE4typeEOSK_DpOT0_ /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:743:5
#18 0x7f960882b6bd in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::detail_subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > >(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:354:5
#19 0x7f960882b4a4 in rxcpp::composite_subscription rxcpp::observable<int, rxcpp::operators::detail::take<int, rxcpp::observable<int, rxcpp::test::detail::test_source<int> >, int> >::subscribe<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> >&) const /home/ben/development/yy/pictet/rxcpp/rx-observable.hpp:472:16
#20 0x7f960882426c in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:462:17
#21 0x7f960882411b in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}>(rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const::{lambda(rxcpp::schedulers::schedulable const&)#2}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#22 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#23 0x7f960884a0d2 in rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}::operator()(rxcpp::schedulers::schedulable const&) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:216:21
#24 0x7f9608849f6e in rxcpp::schedulers::action rxcpp::schedulers::make_action<rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}>(rxcpp::schedulers::virtual_time<long, long>::schedule_absolute(long, rxcpp::schedulers::schedulable const&) const::{lambda(rxcpp::schedulers::schedulable const&)#1}&&)::{lambda(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const&)#1}::operator()(rxcpp::schedulers::schedulable const&, rxcpp::schedulers::recurse const) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:663:17
#25 0x7f96088269a9 in rxcpp::schedulers::schedulable::operator()(rxcpp::schedulers::recurse const&) const /home/ben/development/yy/pictet/rxcpp/rx-scheduler.hpp:603:9
#26 0x7f96088266c9 in rxcpp::schedulers::detail::virtual_time_base<long, long>::start() const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-virtualtime.hpp:83:21
#27 0x7f96088223ee in rxcpp::subscriber<int, rxcpp::test::testable_observer<int> > rxcpp::schedulers::test::test_worker::start<int, main::$_0>(main::$_0, long, long, long) const /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:468:13
#28 0x7f9608822098 in _ZNK5rxcpp10schedulers4test11test_worker5startIZ4mainE3$_0EENSt3__19enable_ifIXsr6detail25is_create_source_functionIT_EE5valueENS2_12start_traitsIS7_EEE4type15subscriber_typeES7_ /home/ben/development/yy/pictet/rxcpp/schedulers/rx-test.hpp:513:20
#29 0x7f9608821de4 in main /home/ben/development/yy/pictet/Test/TestRx/test_rx_leak.cpp:19:15
#30 0x7f96070fdec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
SUMMARY: AddressSanitizer: 2880 byte(s) leaked in 22 allocation(s).