Hi again: First of all, thanks to Ben for the info about how debug gnome apps, it's a very usefull info for me ;). Now, other things related to my gnome-terminal problem. After read the gdb mail from Ben, first I tried to run the gnome-terminal launching it from text console exporting before the env. var DISPLAY with my local_ip:screen of the Xserver. The first time the gnome terminal started well, i exited from it with the exit command inside the gnome-terminal window and launched again from the same console text, and 'crashed' with this warning "GLib-GObject-WARNING **: invalid cast from `GdkScreenX11' to GtkWindow'. After this, starting again from text console goes ok, but if I repeat the operation few times, in some cases crashes with the same warning and another times goes well. I hope that info will be util Regards Ben FrantzDale <bfrantzdale hmc edu>@gnome.org con fecha 15/11/2002 08:46:43 a.m. Enviado por: gnome-list-admin gnome org Destinatarios: dballester kernpharma com CC: gnome-list gnome org Asunto: Re: Debug execution of application in Gnome 2 On Thu, 2002-11-14 at 02:29, dballester kernpharma com wrote: > Hi: > I need to know how can i debug the execution of a Gnome 2 application. > My problem is that after the gnome2 install, and after all upgrades from > snapshots, when I execute gnome-terminal, in 99% of times it starts up but > when the cursor appears, the application is closed without any type of > message ( I'm thinking in some type of issue with fonts, locales, etc... ) > and If exists ( sure ) I want to start some type of debug to see if any > message can help me. How can I do it? > > Thanks and regards It sounds like what you want to use is GDB. In the case of gnome-terminal, run: gdb `which gnome-terminal` You'll get a lot of messages and you may have to hit enter a few times, then you'll get a gdb prompt. Hit enter `r' there, then when gdb crashes you should get some messages. The first thing to try is running `bt' (back trace) which shows where the program crashed. Take that and either report back here or file a bug report on bugzilla.gnome.org. --Ben (See attached file: signature.asc)
Attachment:
signature.asc
Description: Binary data