This is a problem reported by a customer who was debugging a gigantic application. I think it was on pa-hpux, but it might have been on x86-linux, and the target is actually not relevant. We reproduced the problem with the following command: (gdb) p null /= null It first hangs for a while, and then we get: utils.c:1020: internal-error: virtual memory exhausted: can't allocate 4072 bytes. A problem internal to GDB has been detected, further debugging may prove unreliable. Jerome Guitton did the investigation and said: The problem comes from the fact that GDB casts "null /= null" into the language boolean type (i.e. "standard.boolean"). And it lookups the boolean type into the debug info of the application. As type boolean is defined in every compilation unit, every psymtabs matchs; as a consequence, all the corresponding symtabs are built. This roughly means that the debugger loads every symbols when evaluating a conditional expression. As the application is really huge, we run out of memory before completing the operation. This problem is avoided by making sure that we use our boolean builtin type rather than trying to look it up... 2009-03-12 Jerome Guitton * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL. Tested on amd64-linux. Checked in. -- Joel