On Fri, Jan 23, 2026 at 10:53:43AM +0100, Michael Catanzaro wrote:
> I had a similar problem once many years ago. In that case, I wound up
> hacking one of the gobject-introspection tools -- I think it was
> g-ir-scanner? -- to not delete the temporary source file and temporary
> executable so that I could debug them. I found that the temporary program
> calls the _get_type() function of every type. For WebKit's types, they
> initialize WebKit, JavaScriptCore, bmalloc, etc. It's very likely that
> something is crashing somewhere in the initialization routines.
> 
> My recommended next step is investigate the source code of gobject
> introspection and figure out how to stop it from deleting the temporary
> files. I was hoping there would be an existing debug option for this, and I
> see some references to a "save-temps" (save temporary files) option in the
> code, but I don't know how to use it.

We're past this point now, but just for the record: Setting the
environment variable GI_SCANNER_DEBUG to that value keeps the
temporary directory around, i.e.

GI_SCANNER_DEBUG=save-temps g-ir-scanner ...

 Thomas

Reply via email to