Could you show us a print from a gdb session that segfaults the project? And are you sure this is not actually gdb that segfaults and not the project?