sccn / liblsl

C++ lsl library for multi-modal time-synched data transmission over the local network
Other
119 stars 70 forks source link

Tests that (almost) always fail #218

Open cboulay opened 6 months ago

cboulay commented 6 months ago

The first 2 don't test LSL code directly so I have excluded the problematic config on the problematic target platform.

cboulay commented 6 months ago

I managed to reproduce a segmentation fault from the pushpull benchmark test locally. It happens here:

https://github.com/sccn/liblsl/blob/7e61a2ef7a25a54b54968fb5c8776054f49b028e/src/sample.cpp#L81

It happens at the very end of the test case, as the outlet is going out of scope, triggering its cleanup:

lsl::stream_outlet::~stream_outlet() > lsl_destroy_outlet(...) > ~stream_outlet_impl() > lsl::factory::~factory()

During ~factory, this line https://github.com/sccn/liblsl/blob/7e61a2ef7a25a54b54968fb5c8776054f49b028e/src/sample.cpp#L470

cur is already nonsense.

image

cboulay commented 5 months ago

220 might be helpful: "bad_weak_ptr"