protonscr

unity 2017.4/2018.1 buffer overlow when repeatedly previewing VR scene

steamvropen
ValveSoftware/SteamVR-for-Linux#103 · opened 2018-04-25 by ChristophHaag · updated 2018-04-26 · 0 comments · github
CChristophHaag 2018-04-25 github

Reported here because the buffer overflow happens SteamVR/bin/linux64/vrclient.so.

To reproduce: Open Unity 2017.4 or 2018.1, import the SteamVR plugin, open the SteamVR plugin demo scene and press play/stop a couple of times. With 2017.4 it works 5-6 times, but then when pressing play again, the editor crashes. With 2018.1 I think it happens the second time you press play.

With 2017.3 using the preview multiple times froze the editor, possibly a related problem, but I haven't tested it in a while and don't have it installed anymore.

*** buffer overflow detected ***: /home/chris/oldhome/build/unity2017.4.0f1/Editor/Unity terminated

Thread 1 "Unity" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff7f40a00 (LWP 4786)]
0x00007fffed090efb in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007fffed090efb in raise () at /usr/lib/libc.so.6
#1  0x00007fffed0922c1 in abort () at /usr/lib/libc.so.6
#2  0x00007fffed0d39d7 in __libc_message () at /usr/lib/libc.so.6
#3  0x00007fffed16499e in __fortify_fail_abort () at /usr/lib/libc.so.6
#4  0x00007fffed1649d1 in  () at /usr/lib/libc.so.6
#5  0x00007fffed162870 in __readonly_area () at /usr/lib/libc.so.6
#6  0x00007fffed1648da in  () at /usr/lib/libc.so.6
#7  0x00007fff5d39db82 in CIPCPipe::GetNextMessage(unsigned int*, unsigned int*, unsigned int*, unsigned int) ()
    at /home/chris/.local/share/Steam/SteamApps/common/SteamVR/bin/linux64/vrclient.so
#8  0x00007fff5d460eca in bool CIPCPipe::ReceiveProtobufMessage<CVRMsg_CompositorNewSharedSemaphoreResponse>(unsigned int, unsigned int, CVRMsg_CompositorNewSharedSemaphoreResponse&, unsigned int) () at /home/chris/.local/share/Steam/SteamApps/common/SteamVR/bin/linux64/vrclient.so
#9  0x00007fff5d460673 in CVRCompositorSharedResource::NewSharedVulkanSemaphore(unsigned long*) () at /home/chris/.local/share/Steam/SteamApps/common/SteamVR/bin/linux64/vrclient.so
[#10](/issue/ValveSoftware/SteamVR-for-Linux/10) 0x00007fff5d3d4696 in CSharedSemaphoreLinux::CreateVulkanSemaphore(unsigned long) () at /home/chris/.local/share/Steam/SteamApps/common/SteamVR/bin/linux64/vrclient.so
[#11](/issue/ValveSoftware/SteamVR-for-Linux/11) 0x00007fff5d2b83f2 in CVRCompositorSharedTextures::UpdateTextureSet(CVRCompositorSharedTextures::Params const*, VRCompositorState_TextureSet_t*) ()
    at /home/chris/.local/share/Steam/SteamApps/common/SteamVR/bin/linux64/vrclient.so
[#12](/issue/ValveSoftware/SteamVR-for-Linux/12) 0x00007fff5d2cedd2 in CVROverlayLatest::SetOverlayTexture(unsigned long, vr::Texture_t const*) () at /home/chris/.local/share/Steam/SteamApps/common/SteamVR/bin/linux64/vrclient.so
[#13](/issue/ValveSoftware/SteamVR-for-Linux/13) 0x0000000040328490 in  ()
[#14](/issue/ValveSoftware/SteamVR-for-Linux/14) 0x0000159f8af417e0 in  ()
[#15](/issue/ValveSoftware/SteamVR-for-Linux/15) 0x00007fffffff95c8 in  ()
[#16](/issue/ValveSoftware/SteamVR-for-Linux/16) 0x0000002900000015 in  ()
[#17](/issue/ValveSoftware/SteamVR-for-Linux/17) 0x0000000000000000 in  ()

Nothing extracted yet.