[Psi-devel] [BUG] Unusable Psi

textshell-I1QKlO at neutronstar.dyndns.org textshell-I1QKlO at neutronstar.dyndns.org
Sun Mar 4 15:05:44 PST 2007


On Sun, Mar 04, 2007 at 11:50:40PM +0100, Michał Jazłowiecki wrote:
> textshell wrote:
> 
> > Can you compile with debugging symbols and use gdb to get a 
> > stack trace of the frozen psi?
> 
> I have recompiled Psi in debug mode (man, it's huge!). Luckily, I 
> already had debug version of Qt-4.2.2 in my system.
> 
> I've started Psi (without connecting to chrome.pl account), run gdb, 
> attached to psi.exe process ("attach pid"), typed "continue" in gdb 
> and... gdb froze. Repeating the procedure has always ended the same - 
> running Psi (indicating that continue worked) and frozen gdb. :(
> 
> Am I doing something wrong?
> 

what exactly do you mean by gdb froze? If you type continue psi will
not take any input, until your programm is halted again, either by
pressing ctrl-c in the gdb window or by some crash/breakpoint.

So if you have psi running in the frozen state, you would start psi
and attach it. psi will stop psi and load the symbols, as soon as it
again shows the gdb prompt you can type "bt" to get a stacktrace of
psi. 

the other way is to start psi from gdb: (approx like this)
$ gdb psi
(gdb) start
[now get psi to the hang]
<ctrl>-C
(gdb) bt
[stack trace follows]


 - Martin
 


More information about the psi-devel mailing list