Bug 58946 - Reproducible crash when touching picture
Summary: Reproducible crash when touching picture
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 4.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 40706 58964 59248 59405 59933 61622 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-25 22:11 UTC by Tommi Tervo
Modified: 2003-09-18 10:13 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommi Tervo 2003-05-25 22:11:36 UTC
Version:           4.0 (using KDE 3.1.2)
Installed from:    compiled sources
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
OS:          Linux (i686) release 2.4.20-9.Linox.nontpl.3

Go <URL: http://www.hut.fi/~jvirkkul/>
Click kuvagalleria -> kulttuurikeskus -> tapiolasali 2
Everything fine at this stage but if I try to click or scroll the picture konqi will crash. Here trace:

[New Thread 1024 (LWP 15011)]
0x420b48b9 in wait4 () from /lib/i686/libc.so.6
#0  0x420b48b9 in wait4 () from /lib/i686/libc.so.6
#1  0x4213030c in __DTOR_END__ () from /lib/i686/libc.so.6
#2  0x40eddc33 in waitpid () from /lib/i686/libpthread.so.0
#3  0x4058f324 in KCrash::defaultCrashHandler (sig=11) at kcrash.cpp:235
#4  0x40edbf05 in pthread_sighandler () from /lib/i686/libpthread.so.0
#5  <signal handler called>
#6  0x40416a5c in KXMLGUIFactory::addClient (this=0x0, client=0x82d632c)
    at kxmlguifactory.cpp:67
#7  0x4141156a in KHTMLPart::slotActiveFrameChanged (this=0x85d6b38, 
    part=0x82d62a8) at khtml_part.cpp:4975
#8  0x414122a4 in KHTMLPart::qt_invoke (this=0x85d6b38, _id=37, _o=0xbfffe3b0)
    at /opt/qt3dbg/include/private/qucom_p.h:312
#9  0x409788fb in QObject::activate_signal (this=0x86c9b40, clist=0x80c8528, 
    o=0xbfffe3b0) at kernel/qobject.cpp:2226
#10 0x40033cff in KParts::PartManager::activePartChanged (this=0x86c9b40, 
    t0=0x82d62a8) at partmanager.moc:156
#11 0x400334f6 in KParts::PartManager::setActivePart (this=0x86c9b40, 
    part=0x82d62a8, widget=0x8275fa8) at partmanager.cpp:444
#12 0x40032211 in KParts::PartManager::eventFilter (this=0x86c9b40, 
    obj=0x822c9b0, ev=0xbfffe6a0) at partmanager.cpp:253
#13 0x409139f0 in QApplication::internalNotify (this=0xbfffede0, 
    receiver=0x822c9b0, e=0xbfffe6a0) at kernel/qapplication.cpp:2328
#14 0x4091381d in QApplication::notify (this=0xbfffede0, receiver=0x822c9b0, 
    e=0xbfffe6a0) at kernel/qapplication.cpp:2286
#15 0x4051f232 in KApplication::notify (this=0xbfffede0, receiver=0x822c9b0, 
    event=0xbfffe6a0) at kapplication.cpp:455
#16 0x408bbade in QApplication::sendEvent (receiver=0x822c9b0, 
    event=0xbfffe6a0) at kernel/qapplication.h:478
#17 0x409a9657 in QWidget::setFocus (this=0x822c9b0) at kernel/qwidget.cpp:3063
#18 0x408b3e1a in QETWidget::translateMouseEvent (this=0x83f9ca8, 
    event=0xbfffeac0) at kernel/qapplication_x11.cpp:4080
#19 0x408b2152 in QApplication::x11ProcessEvent (this=0xbfffede0, 
    event=0xbfffeac0) at kernel/qapplication_x11.cpp:3445
#20 0x408ca361 in QEventLoop::processEvents (this=0x809cd58, flags=4)
    at kernel/qeventloop_x11.cpp:186
#21 0x40929611 in QEventLoop::enterLoop (this=0x809cd58)
    at kernel/qeventloop.cpp:198
#22 0x40929534 in QEventLoop::exec (this=0x809cd58)
    at kernel/qeventloop.cpp:145
#23 0x40913deb in QApplication::exec (this=0xbfffede0)
    at kernel/qapplication.cpp:2487
#24 0x4108d325 in main (argc=2, argv=0x8057140) at konq_main.cc:131
#25 0x0804cc30 in launch (argc=2, _name=0x805bafc "konqueror", 
    args=0x805bb0f "\001", cwd=0x0, envc=1, envs=0x805bb20 "", 
    reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x805bb24 "v10-dhcp-76-190.ntc.nokia.com;1053884940;742720;19382") at kinit.cpp:547
#26 0x0804d977 in handle_launcher_request (sock=7) at kinit.cpp:1030
#27 0x0804de1e in handle_requests (waitForPid=0) at kinit.cpp:1196
#28 0x0804ed27 in main (argc=3, argv=0xbffff4a4, envp=0xbffff4b4)
    at kinit.cpp:1547
#29 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
Comment 1 Thiago Macieira 2003-05-25 23:09:06 UTC
Confirm in HEAD. The backtrace follows. The backtrace from the reporter shows a 
this = 0L (frame 6). It's probably inlined or optimised in my version. 
 
[New Thread 16384 (LWP 7512)] 
0x40e771c0 in waitpid () from /lib/libpthread.so.0 
#0  0x40e771c0 in waitpid () from /lib/libpthread.so.0 
#1  0x40649661 in KCrash::defaultCrashHandler(int) (sig=11) 
    at /home/thiago/programs/src/kde/kdelibs/kdecore/kcrash.cpp:240 
#2  0x40e75a99 in __pthread_sighandler () from /lib/libpthread.so.0 
#3  0x40fd70d8 in __libc_sigaction () from /lib/libc.so.6 
#4  0x41941057 in KHTMLPart::slotActiveFrameChanged(KParts::Part*) ( 
    this=0x85a67c8, part=0x838f968) 
    at /home/thiago/programs/src/kde/kdelibs/khtml/khtml_part.cpp:5337 
#5  0x41941e1c in KHTMLPart::qt_invoke(int, QUObject*) (this=0x85a67c8,  
    _id=42, _o=0xbfffe8fc) at qucom_p.h:312 
#6  0x409a684a in QObject::activate_signal(QConnectionList*, QUObject*) () 
   from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#7  0x4003ce02 in KParts::PartManager::activePartChanged(KParts::Part*) ( 
    this=0x844c998, t0=0x838f968) at partmanager.moc:156 
#8  0x4003c3ef in KParts::PartManager::setActivePart(KParts::Part*, QWidget*) ( 
    this=0x844c998, part=0x838f968, widget=0x85ca150) 
    at /home/thiago/programs/src/kde/kdelibs/kparts/partmanager.cpp:443 
#9  0x4003b4b2 in KParts::PartManager::eventFilter(QObject*, QEvent*) ( 
    this=0x844c998, obj=0x0, ev=0xbfffebac) 
    at /home/thiago/programs/src/kde/kdelibs/kparts/partmanager.cpp:252 
#10 0x409545d3 in QApplication::internalNotify(QObject*, QEvent*) () 
   from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#11 0x40953db8 in QApplication::notify(QObject*, QEvent*) () 
   from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#12 0x405cab0d in KApplication::notify(QObject*, QEvent*) (this=0xbffff354,  
    receiver=0x82fb5b8, event=0xbfffebac) 
    at /home/thiago/programs/src/kde/kdelibs/kdecore/kapplication.cpp:463 
#13 0x409d1e63 in QWidget::setFocus() () 
   from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#14 0x40905099 in QETWidget::translateWheelEvent(int, int, int, int, Qt::Orientation) 
() from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#15 0x40904c22 in QETWidget::translateMouseEvent(_XEvent const*) () 
   from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#16 0x40902421 in QApplication::x11ProcessEvent(_XEvent*) () 
   from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#17 0x40915280 in QEventLoop::processEvents(unsigned) () 
   from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#18 0x40965baf in QEventLoop::enterLoop() () 
   from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#19 0x40965a6c in QEventLoop::exec() () 
   from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#20 0x4095474c in QApplication::exec() () 
   from /home/thiago/programs/obj/kde/qt-copy/lib/libqt-mt.so.3 
#21 0x412b46c5 in kdemain (argc=4, argv=0x805e158) 
    at /home/thiago/programs/src/kde/kdebase/konqueror/konq_main.cc:160 
#22 0x0804c84f in launch (argc=4, _name=0x805c4bc "konqueror",  
    args=0x805c4ef "/home/thiago", cwd=0x805c4ef "/home/thiago", envc=49,  
    envs=0x805cb23 "", reset_env=true, tty=0x0, avoid_loops=false,  
    startup_id_str=0x805cb27 "prometheus.fr.local.lan;1053890326;237650;23737") 
    at /home/thiago/programs/src/kde/kdelibs/kinit/kinit.cpp:564 
#23 0x0804d2b8 in handle_launcher_request (sock=4) 
    at /home/thiago/programs/src/kde/kdelibs/kinit/kinit.cpp:1022 
#24 0x0804d78a in handle_requests (waitForPid=0) 
    at /home/thiago/programs/src/kde/kdelibs/kinit/kinit.cpp:1180 
#25 0x0804e1a9 in main (argc=1, argv=0xbffff8a4, envp=0xbffff8ac) 
    at /home/thiago/programs/src/kde/kdelibs/kinit/kinit.cpp:1548 
#26 0x40fc47f5 in __libc_start_main () from /lib/libc.so.6 
 
Comment 2 George Staikos 2003-05-25 23:23:28 UTC
Already fixed in HEAD and branch - see konq_viewmgr.cc r 1.220 for instance. 
Comment 3 George Staikos 2003-05-25 23:34:11 UTC
Hm fluke - it crashes now. 
Comment 4 George Staikos 2003-05-26 00:13:17 UTC
Subject: KDE_3_1_BRANCH: kdelibs/khtml

CVS commit by staikos: 

CCMAIL: 58946-done@bugs.kde.org

Don't crash


  M +6 -2      khtml_part.cpp   1.770.2.22


--- kdelibs/khtml/khtml_part.cpp  #1.770.2.21:1.770.2.22
@@ -4968,10 +4968,14 @@ void KHTMLPart::slotActiveFrameChanged( 
     if( d->m_activeFrame && !d->m_activeFrame->inherits( "KHTMLPart" ) )
     {
+        if (factory()) {
         factory()->removeClient( d->m_activeFrame );
+        }
         removeChildClient( d->m_activeFrame );
     }
     if( part && !part->inherits( "KHTMLPart" ) )
     {
+        if (factory()) {
         factory()->addClient( part );
+        }
         insertChildClient( part );
     }


Comment 5 Stephan Kulow 2003-05-26 09:47:42 UTC
*** Bug 58964 has been marked as a duplicate of this bug. ***
Comment 6 Thiago Macieira 2003-06-02 13:17:39 UTC
*** Bug 59248 has been marked as a duplicate of this bug. ***
Comment 7 Maksim Orlovich 2003-06-05 22:25:44 UTC
*** Bug 59405 has been marked as a duplicate of this bug. ***
Comment 8 Thiago Macieira 2003-06-17 13:46:51 UTC
*** Bug 59933 has been marked as a duplicate of this bug. ***
Comment 9 Thiago Macieira 2003-07-24 16:05:18 UTC
*** Bug 61622 has been marked as a duplicate of this bug. ***
Comment 10 Stephan Kulow 2003-09-18 10:13:14 UTC
*** Bug 40706 has been marked as a duplicate of this bug. ***