In each of the GNOME-DB samples, change this:
gchar *pg_provider = "OAFIID:GNOME_GDA_Provider_Postgres_ConnectionFactory";
to:
gchar *pg_provider = "OAFIID:GNOME_GDA_Provider_Postgres_Connection";
This will prevent the examples from generating a segfault.