[Kmymoney-devel] Trouble analyzing crash
Fernando Vilas
fvilas at iname.com
Wed Dec 30 17:01:08 CET 2009
On Wednesday 30 December 2009 09:00:01 tonyb wrote:
> I'm implementing a new dialog which is not dependent on having an attached
> storage. However, it's crashing in the checkStorage() function in
> mymoneyfile.h. What I'm having a problem with is determining where it gets
> called from. I attach the crash report file; can anyone help me make sense
> of it? Have I forgotten to set some debug variable or something? Or am I
> just missing the obvious somewhere (wouldn't be the first time!)?
>
I fought this for a little while on a differnt bug recently. What finally got it
for me was to put a breakpoint in the MyMoneyException ctor. Then I ran the
program until it was close to the step that crashes, had gdb attach to a
running process and let it hit the breakpoint. (I saw this trick on PlanetKDE
while I was working on it, so I can't take credit. Thanks go to that blog
author for a neat trick.)
MyMoneyException is used a lot in determining what goes in some menus, so you
will see a few false-positives, but the actual stack that crashes will be in
there, too. Good luck.
--
Thanks,
Fernando Vilas
fvilas at iname.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20091230/70129930/attachment.sig
More information about the KMyMoney-devel
mailing list