Crash when accessing diagnostics

Hi all,

I encountered a crash when working with the libclang Python bindings, and need some help investigating it. I boiled down the crash to the following scenario: