Fix crash under SI95 with multiple receive threads 48/2548/2 3.2.2
authorE. Scott Daniels <daniels@research.att.com>
Thu, 20 Feb 2020 19:43:35 +0000 (14:43 -0500)
committerE. Scott Daniels <daniels@research.att.com>
Thu, 20 Feb 2020 20:05:56 +0000 (15:05 -0500)
commit6d112571b27574ae857da7cb8dc8758ffee4ff60
tree54b73a71397bd8e6a25311eeecc6c5db4f40e861
parentab6d04ce30514b16ba5821fcc788157b4779a4a3
Fix crash under SI95 with multiple receive threads

When the user application was using multiple threads to receive
messages it was alsmost certain to crash with a segfault.
This change corrects a bug in the ring handler which was
allowing a premature release of the ring lock.

A verification cookie has been added to the msg buffer to
facilitate validation of a message buffer when examining
crash output.

Issue-ID: RIC-218

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Iaa6519e415dcf7f8c52312e8e02d8cf4dca5866f
CHANGES
CMakeLists.txt
src/rmr/common/include/rmr.h
src/rmr/common/src/ring_static.c
src/rmr/si/src/mt_call_si_static.c
src/rmr/si/src/rmr_si.c
src/rmr/si/src/sr_si_static.c