Sounds like the project pointer used is invalid...
Although I can't reproduce it, can you try the following?
In src/plugins/compilergcc/compilergcc.cpp:1234, there is this code:
if (m_Project)
m_Project->SetActiveBuildTarget(GetTargetString(m_TargetIndex));
Replace it with this:
if (Manager::Get()->GetProjectManager()->GetActiveProject())
Manager::Get()->GetProjectManager()->GetActiveProject()->SetActiveBuildTarget(GetTargetString(m_TargetIndex));
Test it out for a while (a day or two) and if the crash is gone tell me to commit it.