c8031f2a69
The issue arises in the CatchSignal function, which attempts to write to the standard error stream upon receiving a signal. However, the standard error stream may already be locked at this point, as the parent process also attempts to write to the standard error stream after mapping the GPU memory. This leads to a deadlock, with the program waiting for the release of the lock on the standard error stream. Signed-off-by: Emily Deng <Emily.Deng@amd.com> Change-Id: Ie69354f4342b96ffe1f2a87f655687da1cbee4b9