eclipse-iceoryx / iceoryx

Eclipse iceoryx™ - true zero-copy inter-process-communication
https://iceoryx.io
Apache License 2.0
1.62k stars 383 forks source link

Listener crash on Windows 10 #855

Closed rex-schilasky closed 3 years ago

rex-schilasky commented 3 years ago

Required information

Operating system: Microsoft Windows 10 Enterprise Version 10.0.19042 Build 19042

Compiler version: Microsoft Visual Studio Professional 2019 Version 16.10.2

Observed result or behaviour: Instantiation of iox::popo::Listener leads to unexpected error.

Expected result or behaviour: Listener should run on Windows 10 platform.

Conditions where it occurred / Performed steps: Compile (VS2019 - Debug) an run following sample.

#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iceoryx_posh/popo/listener.hpp"

int main()
{
  iox::runtime::PoshRuntime::initRuntime("LISTENER-TEST");
  iox::popo::Listener listener;
  return 0;
}

listener-crash

elfenpiff commented 3 years ago

@rex-schilasky This should be fixed now with the merge of PR #834 to master - could you please confirm this.

The problem was that the mutex and semaphore was not inter process capable which is a requirement for the WaitSet and Listener. But now everything should work as expected.

rex-schilasky commented 3 years ago

It's working as expected now. Thank you for that fast fix.