zaqwes8811 / micro-apps

Apache License 2.0
0 stars 0 forks source link

Thread leak #48

Closed zaqwes8811 closed 9 years ago

zaqwes8811 commented 9 years ago
delete ui: 139830541149952
end main: 139830724118144
out ui thread: 139830541149952
==================
WARNING: ThreadSanitizer: thread leak (pid=12169)
  Thread T3 'dconf worker' (tid=12175, running) created by thread T2 at:
    #0 pthread_create ??:0 (libtsan.so.0+0x00000001eccb)
    #1 g_private_replace ??:0 (libglib-2.0.so.0+0x00000008ae61)
    #2 operator() /home/zaqwes/work/coordinator-tasks/projects/cc-desk/extern/actors_and_workers/actor_ui.cc:49 (exe+0x00000003e6f5)
    #3 std::function<void ()>::operator()() const /usr/include/c++/4.8/functional:2464 (exe+0x000000040106)
    #4 operator() /home/zaqwes/work/coordinator-tasks/projects/cc-desk/extern/actors_and_workers/actor_ui.cc:56 (exe+0x000000040bcf)
    #5 std::this_thread::__sleep_for(std::chrono::duration<long, std::ratio<1l, 1l> >, std::chrono::duration<long, std::ratio<1l, 1000000000l> >) ??:0 (libstdc++.so.6+0x0000000b1bef)

SUMMARY: ThreadSanitizer: thread leak ??:0 pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=12169)
  Thread T4 'gdbus' (tid=12176, running) created by thread T3 at:
    #0 pthread_create ??:0 (libtsan.so.0+0x00000001eccb)
    #1 g_private_replace ??:0 (libglib-2.0.so.0+0x00000008ae61)

SUMMARY: ThreadSanitizer: thread leak ??:0 pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=12169)
  Thread T5 'gmain' (tid=12177, running) created by thread T2 at:
    #0 pthread_create ??:0 (libtsan.so.0+0x00000001eccb)
    #1 g_private_replace ??:0 (libglib-2.0.so.0+0x00000008ae61)

    // ! UI connector task    
    #2 operator() /home/zaqwes/work/coordinator-tasks/projects/cc-desk/extern/actors_and_workers/actor_ui.cc:49 (exe+0x00000003e6f5)

    #3 std::function<void ()>::operator()() const /usr/include/c++/4.8/functional:2464 (exe+0x000000040106)

    // Thread creation - in constructor
    #4 operator() /home/zaqwes/work/coordinator-tasks/projects/cc-desk/extern/actors_and_workers/actor_ui.cc:56 (exe+0x000000040bcf)

    #5 std::this_thread::__sleep_for(std::chrono::duration<long, std::ratio<1l, 1l> >, std::chrono::duration<long, std::ratio<1l, 1000000000l> >) ??:0 (libstdc++.so.6+0x0000000b1bef)

SUMMARY: ThreadSanitizer: thread leak ??:0 pthread_create
==================
ThreadSanitizer: reported 3 warnings
zaqwes8811 commented 9 years ago

Only if UI was connected But promise is fulfilled

May be my bug with work with future-promise

zaqwes8811 commented 9 years ago

Looks like false positive raise