daemon/shm: The first frame (seen by clients) have uninitialized memory [crash]
Issue generated from Tuleap's migration script. Originally submitted by: Emmanuel Lepage Vallee (elv13)
The "size" of the first frame sent from the daemon to LRC to the client contains uninitialized memory when compiled in release mode. This cause the size to (often) be a very large int64 value. Using this value in turn will cause invalid memory access when reading the frame, crashing OpenGL.
This doesn't happen in debug mode. Skipping a small bunch of frames always "solve" the issue (tested with 1000 start/stop of the preview).
I made sure the data is initialized in LRC as a test (a good practice anyway), but it will get trashed by the SHM code anyway.