Hmm.  Strange bug.

I'm unable to duplicate this in the way you described, but there is definitely 
something wrong.  Valgrind indicates a problem in kdelibs, but it may just be 
that we're using that class incorrectly.  I'll look into it some more when I 
have more time.  I need to look at the Undo/Redo stuff, as well.

Nicholas, could you open a bug report and attach your backtrace?

I wonder if we need to check whether m_passivePopup is non-NULL before we 
delete it?

It would help if you could run basket under gdb and set a break point at line 
2313 of bnpview.cpp.

Then let me know what the following variables are set to (they are pointers, 
but if you give me the addresses in hex I can get a pretty good guess at 
whether they are NULL, point to something deleted, etc):

m_passivePopup
Global::systemTray

Thanks!

Robert

On Thursday 25 February 2010 10:22:53 pm Nicholas Sushkin wrote:
> I insert a screen grab using Insert menu and basket crashes. After
> restarting, I find the screen grab has been inserted correctly.
> 
> I managed to attach gdb to running basket and get output and stack trace of
> the crash.
> 
> (gdb) cont
> Continuing.
> basket(14069) ImageContent::finishLazyLoad: FAILED TO LOAD ImageContent:
> "/home/nsushkin/.kde/share/apps/basket/baskets/basket1/note1.png"
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb5958700 (LWP 14069)]
> 0xb648e4e0 in QWidget::effectiveWinId () from /usr/lib/qt/lib/libQtGui.so.4
> (gdb) bt
> #0  0xb648e4e0 in QWidget::effectiveWinId () from
> /usr/lib/qt/lib/libQtGui.so.4 #1  0xb7451a78 in
> KPassivePopup::KPassivePopup () from /usr/lib/libkdeui.so.5 #2  0xb7c830a9
> in BNPView::showPassiveDroppedDelayed (this=0x8148308) at
> /home/nsushkin/download/basket/atomopawn-
> basket-3802d49/src/bnpview.cpp:2314
> #3  0xb7c5382d in BNPView::qt_metacall (this=0x8148308,
> _c=QMetaObject::InvokeMetaMethod, _id=62, _a=0xbf91cd68)
>     at /home/nsushkin/download/basket/atomopawn-
> basket-3802d49/build/src/moc_bnpview.cpp:363
> #4  0xb6eb37a8 in QMetaObject::activate () from
> /usr/lib/qt/lib/libQtCore.so.4 #5  0xb6eb4432 in QMetaObject::activate ()
> from /usr/lib/qt/lib/libQtCore.so.4 #6  0xb6eb8ba7 in ?? () from
> /usr/lib/qt/lib/libQtCore.so.4
> #7  0xb6eb8ccc in ?? () from /usr/lib/qt/lib/libQtCore.so.4
> #8  0xb6eadc5f in QObject::event () from /usr/lib/qt/lib/libQtCore.so.4
> #9  0xb64403dc in QApplicationPrivate::notify_helper () from
> /usr/lib/qt/lib/libQtGui.so.4
> #10 0xb64486fe in QApplication::notify () from
> /usr/lib/qt/lib/libQtGui.so.4 #11 0xb73d7bad in KApplication::notify ()
> from /usr/lib/libkdeui.so.5 #12 0xb6e9d67b in
> QCoreApplication::notifyInternal () from
> /usr/lib/qt/lib/libQtCore.so.4
> #13 0xb6ecc971 in ?? () from /usr/lib/qt/lib/libQtCore.so.4
> #14 0xb6ec8fb0 in ?? () from /usr/lib/qt/lib/libQtCore.so.4
> #15 0xb5b5eac8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
> #16 0xb5b62163 in ?? () from /usr/lib/libglib-2.0.so.0
> #17 0x0808e490 in ?? ()
> #18 0x00000000 in ?? ()

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Basket-devel mailing list
Basket-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basket-devel

Reply via email to