forked from ValveSoftware/steamos-compositor
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it exit if/when nested command completes #8
Comments
emersion
added a commit
to emersion/gamescope
that referenced
this issue
May 8, 2020
win objects are allocated with `new`, so they need to be de-allocated with `delete` instead of `free`. ==589398==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new vs free) on 0x61200017f140 (EE) failed to read Wayland events: Broken pipe X connection to :1 broken (explicit kill or server shutdown). #0 0x7f5468ae4720 in __interceptor_free /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:122 ValveSoftware#1 0x559820f5c9a0 in finish_destroy_win ../src/steamcompmgr.cpp:1743 ValveSoftware#2 0x559820f5ca6d in destroy_win ../src/steamcompmgr.cpp:1759 ValveSoftware#3 0x559820f6163e in steamcompmgr_main ../src/steamcompmgr.cpp:2288 ValveSoftware#4 0x559820f8e977 in steamCompMgrThreadRun() ../src/main.cpp:121 ValveSoftware#5 0x559820f8e3e9 in void std::__invoke_impl<void, void (*)()>(std::__invoke_other, void (*&&)()) /usr/include/c++/9.3.0/bits/invoke.h:60 ValveSoftware#6 0x559820f8e24f in std::__invoke_result<void (*)()>::type std::__invoke<void (*)()>(void (*&&)()) /usr/include/c++/9.3.0/bits/invoke.h:95 ValveSoftware#7 0x559820f8e0b3 in void std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/include/c++/9.3.0/thread:244 ValveSoftware#8 0x559820f8dfae in std::thread::_Invoker<std::tuple<void (*)()> >::operator()() /usr/include/c++/9.3.0/thread:251 ValveSoftware#9 0x559820f8d7ba in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run() /usr/include/c++/9.3.0/thread:195 ValveSoftware#10 0x7f5468006b23 in execute_native_thread_routine /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:80 ValveSoftware#11 0x7f546745346e in start_thread (/usr/lib/libpthread.so.0+0x946e) ValveSoftware#12 0x7f54673833d2 in clone (/usr/lib/libc.so.6+0xff3d2) 0x61200017f140 is located 0 bytes inside of 296-byte region [0x61200017f140,0x61200017f268) allocated by thread T40 here: #0 0x7f5468ae6968 in operator new(unsigned long) /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cc:104 ValveSoftware#1 0x559820f595fe in add_win ../src/steamcompmgr.cpp:1548 ValveSoftware#2 0x559820f614e8 in steamcompmgr_main ../src/steamcompmgr.cpp:2278 ValveSoftware#3 0x559820f8e977 in steamCompMgrThreadRun() ../src/main.cpp:121 ValveSoftware#4 0x559820f8e3e9 in void std::__invoke_impl<void, void (*)()>(std::__invoke_other, void (*&&)()) /usr/include/c++/9.3.0/bits/invoke.h:60 ValveSoftware#5 0x559820f8e24f in std::__invoke_result<void (*)()>::type std::__invoke<void (*)()>(void (*&&)()) /usr/include/c++/9.3.0/bits/invoke.h:95 ValveSoftware#6 0x559820f8e0b3 in void std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/include/c++/9.3.0/thread:244 ValveSoftware#7 0x559820f8dfae in std::thread::_Invoker<std::tuple<void (*)()> >::operator()() /usr/include/c++/9.3.0/thread:251 ValveSoftware#8 0x559820f8d7ba in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run() /usr/include/c++/9.3.0/thread:195 ValveSoftware#9 0x7f5468006b23 in execute_native_thread_routine /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:80 Thread T40 created by T0 here: #0 0x7f5468a0e377 in __interceptor_pthread_create /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cc:208 ValveSoftware#1 0x7f5468006df9 in __gthread_create /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:663 ValveSoftware#2 0x7f5468006df9 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:135 ValveSoftware#3 0x559820f8ea10 in startSteamCompMgr ../src/main.cpp:126 ValveSoftware#4 0x559820f95cfb in xwayland_ready ../src/wlserver.c:119 ValveSoftware#5 0x5598210de191 in wlr_signal_emit_safe ../subprojects/wlroots/util/signal.c:29 ValveSoftware#6 0x559820ff596b in xserver_handle_ready ../subprojects/wlroots/xwayland/xwayland.c:251 ValveSoftware#7 0x7f5468744434 (/usr/lib/libwayland-server.so.0+0xa434) ValveSoftware#8 0x7ffc9796869f ([stack]+0x1f69f)
emersion
added a commit
that referenced
this issue
May 8, 2020
win objects are allocated with `new`, so they need to be de-allocated with `delete` instead of `free`. ==589398==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new vs free) on 0x61200017f140 (EE) failed to read Wayland events: Broken pipe X connection to :1 broken (explicit kill or server shutdown). #0 0x7f5468ae4720 in __interceptor_free /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:122 #1 0x559820f5c9a0 in finish_destroy_win ../src/steamcompmgr.cpp:1743 #2 0x559820f5ca6d in destroy_win ../src/steamcompmgr.cpp:1759 #3 0x559820f6163e in steamcompmgr_main ../src/steamcompmgr.cpp:2288 #4 0x559820f8e977 in steamCompMgrThreadRun() ../src/main.cpp:121 #5 0x559820f8e3e9 in void std::__invoke_impl<void, void (*)()>(std::__invoke_other, void (*&&)()) /usr/include/c++/9.3.0/bits/invoke.h:60 #6 0x559820f8e24f in std::__invoke_result<void (*)()>::type std::__invoke<void (*)()>(void (*&&)()) /usr/include/c++/9.3.0/bits/invoke.h:95 #7 0x559820f8e0b3 in void std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/include/c++/9.3.0/thread:244 #8 0x559820f8dfae in std::thread::_Invoker<std::tuple<void (*)()> >::operator()() /usr/include/c++/9.3.0/thread:251 #9 0x559820f8d7ba in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run() /usr/include/c++/9.3.0/thread:195 #10 0x7f5468006b23 in execute_native_thread_routine /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:80 #11 0x7f546745346e in start_thread (/usr/lib/libpthread.so.0+0x946e) #12 0x7f54673833d2 in clone (/usr/lib/libc.so.6+0xff3d2) 0x61200017f140 is located 0 bytes inside of 296-byte region [0x61200017f140,0x61200017f268) allocated by thread T40 here: #0 0x7f5468ae6968 in operator new(unsigned long) /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cc:104 #1 0x559820f595fe in add_win ../src/steamcompmgr.cpp:1548 #2 0x559820f614e8 in steamcompmgr_main ../src/steamcompmgr.cpp:2278 #3 0x559820f8e977 in steamCompMgrThreadRun() ../src/main.cpp:121 #4 0x559820f8e3e9 in void std::__invoke_impl<void, void (*)()>(std::__invoke_other, void (*&&)()) /usr/include/c++/9.3.0/bits/invoke.h:60 #5 0x559820f8e24f in std::__invoke_result<void (*)()>::type std::__invoke<void (*)()>(void (*&&)()) /usr/include/c++/9.3.0/bits/invoke.h:95 #6 0x559820f8e0b3 in void std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/include/c++/9.3.0/thread:244 #7 0x559820f8dfae in std::thread::_Invoker<std::tuple<void (*)()> >::operator()() /usr/include/c++/9.3.0/thread:251 #8 0x559820f8d7ba in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run() /usr/include/c++/9.3.0/thread:195 #9 0x7f5468006b23 in execute_native_thread_routine /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:80 Thread T40 created by T0 here: #0 0x7f5468a0e377 in __interceptor_pthread_create /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cc:208 #1 0x7f5468006df9 in __gthread_create /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:663 #2 0x7f5468006df9 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:135 #3 0x559820f8ea10 in startSteamCompMgr ../src/main.cpp:126 #4 0x559820f95cfb in xwayland_ready ../src/wlserver.c:119 #5 0x5598210de191 in wlr_signal_emit_safe ../subprojects/wlroots/util/signal.c:29 #6 0x559820ff596b in xserver_handle_ready ../subprojects/wlroots/xwayland/xwayland.c:251 #7 0x7f5468744434 (/usr/lib/libwayland-server.so.0+0xa434) #8 0x7ffc9796869f ([stack]+0x1f69f)
emersion
added a commit
that referenced
this issue
Jun 18, 2020
ASan trace: ==14537==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new vs free) on 0x6120002290c0 DispatchAsyncEvent backlog, failed to dispatch all this frame. Queue depth: 1685 (1687 input number was) #0 0x7f44ebe590e9 in __interceptor_free /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:123 #1 0x555b4b76b66f in add_win ../src/steamcompmgr.cpp:1550 #2 0x555b4b7735d4 in steamcompmgr_main(int, char**) ../src/steamcompmgr.cpp:2278 #3 0x555b4b79fca5 in steamCompMgrThreadRun() ../src/main.cpp:124 #4 0x555b4b79f5ee in void std::__invoke_impl<void, void (*)()>(std::__invoke_other, void (*&&)()) /usr/include/c++/10.1.0/bits/invoke.h:60 #5 0x555b4b79f467 in std::__invoke_result<void (*)()>::type std::__invoke<void (*)()>(void (*&&)()) /usr/include/c++/10.1.0/bits/invoke.h:95 #6 0x555b4b79f34b in void std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/include/c++/10.1.0/thread:264 #7 0x555b4b79f28e in std::thread::_Invoker<std::tuple<void (*)()> >::operator()() /usr/include/c++/10.1.0/thread:271 #8 0x555b4b79ebb2 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run() /usr/include/c++/10.1.0/thread:215 #9 0x7f44eb664b73 in execute_native_thread_routine /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:80 #10 0x7f44eaaad421 in start_thread (/usr/lib/libpthread.so.0+0x9421) #11 0x7f44ea9dcbf2 in __GI___clone (/usr/lib/libc.so.6+0xffbf2) 0x6120002290c0 is located 0 bytes inside of 304-byte region [0x6120002290c0,0x6120002291f0) allocated by thread T18 here: #0 0x7f44ebe5af41 in operator new(unsigned long) /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:99 #1 0x555b4b76b2ae in add_win ../src/steamcompmgr.cpp:1533 #2 0x555b4b7735d4 in steamcompmgr_main(int, char**) ../src/steamcompmgr.cpp:2278 #3 0x555b4b79fca5 in steamCompMgrThreadRun() ../src/main.cpp:124 #4 0x555b4b79f5ee in void std::__invoke_impl<void, void (*)()>(std::__invoke_other, void (*&&)()) /usr/include/c++/10.1.0/bits/invoke.h:60 #5 0x555b4b79f467 in std::__invoke_result<void (*)()>::type std::__invoke<void (*)()>(void (*&&)()) /usr/include/c++/10.1.0/bits/invoke.h:95 #6 0x555b4b79f34b in void std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/include/c++/10.1.0/thread:264 #7 0x555b4b79f28e in std::thread::_Invoker<std::tuple<void (*)()> >::operator()() /usr/include/c++/10.1.0/thread:271 #8 0x555b4b79ebb2 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run() /usr/include/c++/10.1.0/thread:215 #9 0x7f44eb664b73 in execute_native_thread_routine /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:80 Thread T18 created by T0 here: DispatchAsyncEvent backlog, failed to dispatch all this frame. Queue depth: 669 (1699 input number was) #0 0x7f44ebdff1c7 in __interceptor_pthread_create /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cpp:214 #1 0x7f44eb664e49 in __gthread_create /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:663 #2 0x7f44eb664e49 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:135 #3 0x555b4b79fd3e in startSteamCompMgr() ../src/main.cpp:129 #4 0x555b4b7a725e in xwayland_ready ../src/wlserver.cpp:114 #5 0x555b4b8dea6a in wlr_signal_emit_safe ../subprojects/wlroots/util/signal.c:29 #6 0x555b4b8e2263 in xserver_handle_ready ../subprojects/wlroots/xwayland/server.c:234 #7 0x7f44ebb5f434 (/usr/lib/libwayland-server.so.0+0xa434)
emersion
added a commit
that referenced
this issue
Aug 31, 2020
==2654441==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs operator delete) on 0x6020000c0330 #0 0x7f264e95e009 in operator delete(void*, unsigned long) /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:172 #1 0x5645ddfcef1e in steamcompmgr_main(int, char**) ../src/steamcompmgr.cpp:2602 Running Steam on arch rolling 64-bit #2 0x5645de0020e6 in steamCompMgrThreadRun() ../src/main.cpp:126 #3 0x5645de001a2f in void std::__invoke_impl<void, void (*)()>(std::__invoke_other, void (*&&)()) /usr/include/c++/10.2.0/bits/invoke.h:60 #4 0x5645de001899 in std::__invoke_result<void (*)()>::type std::__invoke<void (*)()>(void (*&&)()) /usr/include/c++/10.2.0/bits/invoke.h:95 #5 0x5645de001757 in void std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul>(std::_Index_tuple<0ul>) /usr/include/c++/10.2.0/thread:264 #6 0x5645de00161a in std::thread::_Invoker<std::tuple<void (*)()> >::operator()() /usr/include/c++/10.2.0/thread:271 #7 0x5645de000d98 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run() /usr/include/c++/10.2.0/thread:215 STEAM_RUNTIME is enabled automatically #8 0x7f264e143c23 in execute_native_thread_routine /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:80 #9 0x7f264d58b3e8 in start_thread (/usr/lib/libpthread.so.0+0x93e8) #10 0x7f264d4b9292 in __GI___clone (/usr/lib/libc.so.6+0x100292) Fixes: 4a5cd5d ("steamcompmgr: disable Steam overlay for sub-command")
emersion
added a commit
to emersion/gamescope
that referenced
this issue
Feb 15, 2022
The size argument must not include the `long msg_type` field. Fixes the following ASan error: ================================================================= ==25745==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55cb6beea08a at pc 0x7f118e89525d bp 0x7f117620a8a0 sp 0x7f117620a048 READ of size 50 at 0x55cb6beea08a thread T10 #0 0x7f118e89525c in __interceptor_msgsnd /usr/src/debug/gcc/libsanitizer/sanitizer_common/sanitizer_c ommon_interceptors.inc:3138 ValveSoftware#1 0x55cb6b6518ed in mangoapp_update(unsigned long, unsigned long, unsigned long) ../src/mangoapp.cpp: 48 ValveSoftware#2 0x55cb6b484dde in imageWaitThreadMain() ../src/steamcompmgr.cpp:521 ValveSoftware#3 0x55cb6b538298 in void std::__invoke_impl<void, void (*)()>(std::__invoke_other, void (*&&)()) /usr /include/c++/11.2.0/bits/invoke.h:61 ValveSoftware#4 0x55cb6b5381b3 in std::__invoke_result<void (*)()>::type std::__invoke<void (*)()>(void (*&&)()) /u sr/include/c++/11.2.0/bits/invoke.h:96 ValveSoftware#5 0x55cb6b538063 in void std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul>(std::_Index_t uple<0ul>) /usr/include/c++/11.2.0/bits/std_thread.h:253 ValveSoftware#6 0x55cb6b537f23 in std::thread::_Invoker<std::tuple<void (*)()> >::operator()() /usr/include/c++/11. 2.0/bits/std_thread.h:260 ValveSoftware#7 0x55cb6b537ae9 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run () /usr/include/c++/11.2.0/bits/std_thread.h:211 ValveSoftware#8 0x7f118e0a34d3 in execute_native_thread_routine /usr/src/debug/gcc/libstdc++-v3/src/c++11/thread.cc :82 ValveSoftware#9 0x7f118d3d75c1 in start_thread (/usr/lib/libc.so.6+0x8d5c1) ValveSoftware#10 0x7f118d45c583 in __clone (/usr/lib/libc.so.6+0x112583) 0x55cb6beea08a is located 0 bytes to the right of global variable 'mangoapp_msg_v1' defined in '../src/mangoapp.cpp:27:27' (0x55cb6beea060) of size 42
misyltoad
pushed a commit
that referenced
this issue
Feb 16, 2022
The size argument must not include the `long msg_type` field. Fixes the following ASan error: ================================================================= ==25745==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55cb6beea08a at pc 0x7f118e89525d bp 0x7f117620a8a0 sp 0x7f117620a048 READ of size 50 at 0x55cb6beea08a thread T10 #0 0x7f118e89525c in __interceptor_msgsnd /usr/src/debug/gcc/libsanitizer/sanitizer_common/sanitizer_c ommon_interceptors.inc:3138 #1 0x55cb6b6518ed in mangoapp_update(unsigned long, unsigned long, unsigned long) ../src/mangoapp.cpp: 48 #2 0x55cb6b484dde in imageWaitThreadMain() ../src/steamcompmgr.cpp:521 #3 0x55cb6b538298 in void std::__invoke_impl<void, void (*)()>(std::__invoke_other, void (*&&)()) /usr /include/c++/11.2.0/bits/invoke.h:61 #4 0x55cb6b5381b3 in std::__invoke_result<void (*)()>::type std::__invoke<void (*)()>(void (*&&)()) /u sr/include/c++/11.2.0/bits/invoke.h:96 #5 0x55cb6b538063 in void std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul>(std::_Index_t uple<0ul>) /usr/include/c++/11.2.0/bits/std_thread.h:253 #6 0x55cb6b537f23 in std::thread::_Invoker<std::tuple<void (*)()> >::operator()() /usr/include/c++/11. 2.0/bits/std_thread.h:260 #7 0x55cb6b537ae9 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run () /usr/include/c++/11.2.0/bits/std_thread.h:211 #8 0x7f118e0a34d3 in execute_native_thread_routine /usr/src/debug/gcc/libstdc++-v3/src/c++11/thread.cc :82 #9 0x7f118d3d75c1 in start_thread (/usr/lib/libc.so.6+0x8d5c1) #10 0x7f118d45c583 in __clone (/usr/lib/libc.so.6+0x112583) 0x55cb6beea08a is located 0 bytes to the right of global variable 'mangoapp_msg_v1' defined in '../src/mangoapp.cpp:27:27' (0x55cb6beea060) of size 42
sharkautarch
pushed a commit
to sharkautarch/gamescope
that referenced
this issue
Mar 12, 2024
Fix refresh rate control on the Legion Go
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably easy to track with spawn()?
The text was updated successfully, but these errors were encountered: