[lldb-dev] [PATCH] Fix crash on Linux if sem_wait() is interrupted

Greg Clayton gclayton at apple.com
Fri Jan 24 10:10:06 PST 2014


Can we get rid of the "goto" statement and make it a "while(1)" or "for(;;)" like the first part of the fix? 

On Jan 24, 2014, at 6:10 AM, Andrew MacPherson <andrew.macp at gmail.com> wrote:

> Fix a crash where if sem_wait is interrupted then ProcessMonitor::ServeOperation() will crash accessing an invalid monitor->m_operation pointer. The fix is taken from how this same case is already handled in the ProcessMonitor constructor.
> 
> Thanks,
> Andrew
> <sem_wait.EINTR.Linux.patch>_______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev




More information about the lldb-dev mailing list