pulseview/pv
Soeren Apel 7f894d958e Fix #1132 by passing segment IDs, not segment instances
Passing segment instances fails because this creates a race condition.
When a long conversion is taking place, the SignalBase::samples_added
signal is called often but since it's in a separate thread, the calls
are queued and aren't executed immediately. Now if the conversion is
restarted - for example as a result of a changed conversion threshold -
then the segments holding the converted data are destroyed, rendering
the pointers submitted as parameters to samples_added invalid.

Once the signal queue is processed, those invalid pointers will be
accessed and PV segfaults.

Since the signal queue can neither be emptied nor flushed, this
leaves only two sensible choices:
1) Signal samples_added less often, thereby reducing the chance of
signals being queued
2) Supply the segment ID instead of the segment instance as that's
essentially the only thing we currently care about - in fact, the
only user of samples_added (ViewBase::on_samples_added) uses the
instance to query only this

As #1 is only a band-aid and not a waterproof solution, I chose
to go with #2.
2018-03-05 23:45:46 +01:00
..
binding MinGW: Fix a compile error due to a missing #include. 2018-02-10 22:10:10 +01:00
data Fix #1132 by passing segment IDs, not segment instances 2018-03-05 23:45:46 +01:00
devices
dialogs Provide a settings checkbox for showing zero at the trigger 2018-02-07 19:41:51 +01:00
popups Fix #1089 by updating the signal labels and group labels 2018-02-08 16:32:19 +01:00
prop
toolbars Fix #1038 by catching invalid cursor ranges 2018-02-10 23:18:33 +01:00
views Fix #1132 by passing segment IDs, not segment instances 2018-03-05 23:45:46 +01:00
widgets Drop some trailing whitespace. 2017-06-06 11:57:35 +02:00
application.cpp
application.hpp
devicemanager.cpp main: introduce -D cmdline option, don't auto-scan for devices 2018-01-26 17:35:31 +01:00
devicemanager.hpp main: introduce -D cmdline option, don't auto-scan for devices 2018-01-26 17:35:31 +01:00
globalsettings.cpp Rework the callback mechanism for the global settings 2018-02-07 19:41:56 +01:00
globalsettings.hpp GlobalSettings: Remove unneeded include/using 2018-02-24 00:18:27 +01:00
mainwindow.cpp Rework the callback mechanism for the global settings 2018-02-07 19:41:56 +01:00
mainwindow.hpp Rework the callback mechanism for the global settings 2018-02-07 19:41:56 +01:00
session.cpp Session: Fix trigger handling 2018-03-04 00:25:07 +01:00
session.hpp MinGW: Fix a compile error due to a missing #include. 2018-02-10 22:10:10 +01:00
storesession.cpp Fix #1038 by catching invalid cursor ranges 2018-02-10 23:18:33 +01:00
storesession.hpp
strnatcmp.hpp
util.cpp Minor Doxygen comment cosmetics. 2017-06-27 13:21:19 +02:00
util.hpp util: Introduce string tokenize helper routine 2017-06-25 20:32:58 +02:00