[Digikam-devel] [Bug 210462] digikam crash select new download

Stephen Warren s-t-kdebugs at wwwdotorg.org
Thu Jan 28 06:10:56 GMT 2010


https://bugs.kde.org/show_bug.cgi?id=210462





--- Comment #128 from Stephen Warren <s-t-kdebugs wwwdotorg org>  2010-01-28 07:10:50 ---
Dario, thanks for trying to help me out. Unfortunately, neither of those
changes solve the problem. The place where the crash is happening /is/ right
where those changes were made. However, the problem isn't simply dereferencing
a NULL pointer. In particular, this line crashes:

    return (dynamic_cast<PAlbum*>(item->album()));

and gdb says:

(gdb) p item
$1 = (class Digikam::TreeAlbumItem *) 0xc828820
(gdb) p item->album()
$2 = (class Digikam::Album *) 0x30

So, the pointer isn't NULL, which is why the additional NULL checks didn't
help, but the pointer also doesn't look valid. Since the album() function is
trivial (just returning a member variable), I guess there's some kind of
general memory corruption. This is especially true, since anywhere that m_album
is set in treefolderitem.cpp, the code immediately indirects through it, so the
value must have been valid at some time, then become trashed later.

:-(

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list