[Lldb-commits] crash in Proces::RunPrivateStateThread
Jim Ingham
jingham at apple.com
Tue Oct 1 09:41:15 PDT 2013
Yes, this should be checked. If the return value is true, then there should be an event in event_sp, but if it returns false, then you shouldn't rely on the contents of the event.
Jim
On Sep 30, 2013, at 9:18 AM, Carlo Kok <ck at remobjects.com> wrote:
> thread_result_t
> Process::RunPrivateStateThread ()
> {
> ...
>
> WaitForEventsPrivate (NULL, event_sp, control_only);
> if (event_sp->BroadcasterIs(&m_private_state_control_broadcaster))
>
> I'm getting a crash because the pointer in event_sp is null. Now this is probably because some code isn't 100% windows ready, yet. However shouldn't something be checking the return value of WaitForEventsPrivate anyway?
>
> --
> Carlo Kok
> RemObjects Software
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
More information about the lldb-commits
mailing list