Bug 87656 - Reproducable SIGFPE on www.smh.com.au (paintBackgroundExtended)
Summary: Reproducable SIGFPE on www.smh.com.au (paintBackgroundExtended)
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 87741 87840 87913 87927 88395 89223 89815 90027 90511 90969 93413 93702 94090 94631 94839 96726 97705 99477 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-21 03:15 UTC by A. Pfaller
Modified: 2005-02-15 21:09 UTC (History)
18 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Bugs 2 (2.83 KB, text/plain)
2004-08-23 17:09 UTC, Seq
Details
Bugs 2 (2.83 KB, text/plain)
2004-08-24 18:24 UTC, Seq
Details

Note You need to log in before you can comment on or make changes to this bug.
Description A. Pfaller 2004-08-21 03:15:27 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    SuSE RPMs
OS:                Linux

Just load http://www.smh.com.au/ and wait for a few seconds
until everything is loaded.



[New Thread 16384 (LWP 11157)]

[KCrash handler]
#4  0x41ce7aa0 in khtml::RenderBox::paintBackgroundExtended(QPainter*, QColor const&, khtml::CachedImage*, int, int, int, int, int, int, int, int) ()
   from /opt/kde3/lib/libkhtml.so.4
#5  0x41ce76f5 in khtml::RenderBox::paintBackground(QPainter*, QColor const&, khtml::CachedImage*, int, int, int, int, int, int) ()
   from /opt/kde3/lib/libkhtml.so.4
#6  0x41ce75cf in khtml::RenderBox::paintBoxDecorations(khtml::RenderObject::PaintInfo&, int, int) () from /opt/kde3/lib/libkhtml.so.4
#7  0x41cd6a02 in khtml::RenderBlock::paintObject(khtml::RenderObject::PaintInfo&, int, int) () from /opt/kde3/lib/libkhtml.so.4
#8  0x41cd680a in khtml::RenderBlock::paint(khtml::RenderObject::PaintInfo&, int, int) () from /opt/kde3/lib/libkhtml.so.4
#9  0x41cd6950 in khtml::RenderBlock::paintObject(khtml::RenderObject::PaintInfo&, int, int) () from /opt/kde3/lib/libkhtml.so.4
#10 0x41cd680a in khtml::RenderBlock::paint(khtml::RenderObject::PaintInfo&, int, int) () from /opt/kde3/lib/libkhtml.so.4
#11 0x41cf178b in khtml::RenderLayer::paintLayer(khtml::RenderLayer*, QPainter*, QRect const&, bool) () from /opt/kde3/lib/libkhtml.so.4
#12 0x41cf15b4 in khtml::RenderLayer::paintLayer(khtml::RenderLayer*, QPainter*, QRect const&, bool) () from /opt/kde3/lib/libkhtml.so.4
#13 0x41cf15b4 in khtml::RenderLayer::paintLayer(khtml::RenderLayer*, QPainter*, QRect const&, bool) () from /opt/kde3/lib/libkhtml.so.4
#14 0x41cf1247 in khtml::RenderLayer::paint(QPainter*, QRect const&, bool) ()
   from /opt/kde3/lib/libkhtml.so.4
#15 0x41c25867 in KHTMLView::drawContents(QPainter*, int, int, int, int) ()
   from /opt/kde3/lib/libkhtml.so.4
#16 0x40de9c01 in QScrollView::drawContentsOffset(QPainter*, int, int, int, int, int, int) () from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x40de8409 in QScrollView::viewportPaintEvent(QPaintEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x40de7cd1 in QScrollView::eventFilter(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x41c29089 in KHTMLView::eventFilter(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkhtml.so.4
#20 0x40cc0943 in QObject::activate_filters(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x40cc07c1 in QObject::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x40cfad95 in QWidget::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x40c5fc87 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x40c5f91d in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x407a5fbe in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#26 0x40bf218e in QApplication::sendSpontaneousEvent(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x40bed5c3 in QETWidget::translatePaintEvent(_XEvent const*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x40be8a28 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x40c0395b in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x40c7411d in QEventLoop::enterLoop() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x40c74036 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x40c5fdf3 in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x4179d95c in kdemain () from /opt/kde3/lib/libkdeinit_konqueror.so
#34 0x4001a8c4 in kdeinitmain () from /opt/kde3/lib/kde3/konqueror.so
#35 0x0804db09 in launch(int, char const*, char const*, char const*, int, char const*, bool, char const*, bool, char const*) ()
#36 0x0804ea81 in handle_launcher_request(int) ()
#37 0x0804f0c5 in handle_requests(int) ()
#38 0x08050181 in main ()
Comment 1 Stephan Kulow 2004-08-21 14:15:19 UTC
hmm, doesn't crash here.
Comment 2 A. Pfaller 2004-08-21 15:35:48 UTC
I just retried and it is still reproducable on my system. Im am running
Suse 9.0 and use the kdelibs3-3.3.0-7 and kdebase3-3.3.0-8 RPMs supplied
in SuSEs supplementary directory. Are you running HEAD because I just
noticed that there have been some changes in khtmls RenderBox::paintBackgroundExtended() which might solve this issue? The 
SIGFPE is most likely a division by 0.

I will try to reproduce the problem with a self compiled KDE.
Comment 3 A. Pfaller 2004-08-21 18:39:53 UTC
I am unable to reproduce the problem with an current KDE_3_3_BRANCH
kdelibs checkout. With SuSEs build I can prevent the crash by 
preventing the loading of "3li_sprites.gif" which is triggered
via the following css:

..
 #networkStripBot-m td {background: transparent url("3li_sprites.gif") no-repeat 0 -4000px;padding: 5px 0 0;vertical-align:top;font: bold 10px Verdana, Arial, Helvetica, sans-serif}
..

I will check SuSEs SRPMS if there are any patches included which might
trigger the different behaviour.
Comment 4 A. Pfaller 2004-08-21 19:03:55 UTC
OK, that was easy. SuSE tries to enforce some maximum
image size (default 4096x4096) with the patch shown
below and an additional patch in the supplied
qt3. Setting a higher limit in ~/.kde/config made
the crash dissappear ("3li_sprites.gif" has a size of
200x4100).

Sorry for bothering you,
Andreas


Index: kapplication.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdecore/kapplication.cpp,v
retrieving revision 1.670
diff -u -p -r1.670 kapplication.cpp
--- kdecore/kapplication.cpp	22 Jul 2004 16:50:04 -0000	1.670
+++ kdecore/kapplication.cpp	16 Aug 2004 20:31:02 -0000
@@ -43,6 +43,7 @@
 #include <qtooltip.h>
 #include <qstylefactory.h>
 #include <qmetaobject.h>
+#include <qimage.h>
 #ifndef QT_NO_SQL
 #include <qsqlpropertymap.h>
 #endif
@@ -1975,6 +1976,12 @@ void KApplication::propagateSettings(Set
     KConfigBase* config = KGlobal::config();
     KConfigGroupSaver saver( config, "KDE" );
 
+#ifdef QT_HAVE_MAX_IMAGE_SIZE
+    QSize maxImageSize(4096, 4096);
+    maxImageSize = config->readSizeEntry("MaxImageSize", &maxImageSize);
+    QImage::setMaxImageSize(maxImageSize);
+#endif
+
     int num = config->readNumEntry("CursorBlinkRate", QApplication::cursorFlashTime());
     if ((num != 0) && (num < 200))
         num = 200;
Comment 5 Stephan Kulow 2004-08-23 15:08:36 UTC
*** Bug 87741 has been marked as a duplicate of this bug. ***
Comment 6 Seq 2004-08-23 17:09:33 UTC
Hi,
sorry, but the patch doesn't work.

regards

M. Arlt (Seq)


Am Montag, 23. August 2004 14:11 schrieben Sie:
> Am Montag, 23. August 2004 12:01 schrieben Sie:
> Hi David,
> thanks a lot for the fast answer, but the patch doesn't work. The konqueror
> collaps still by a lot of web or/and html-pages.
>
> regards
>
> M. Arlt (Seq)



Created an attachment (id=7238)
Bugs 2
Comment 7 Stephan Kulow 2004-08-24 09:46:36 UTC
*** Bug 87913 has been marked as a duplicate of this bug. ***
Comment 8 Stephan Kulow 2004-08-24 13:50:37 UTC
*** Bug 87927 has been marked as a duplicate of this bug. ***
Comment 9 Seq 2004-08-24 18:24:00 UTC
----------  Weitergeleitete Nachricht  ----------

Subject: still collaps
Date: Montag, 23. August 2004 17:07
From: Seq <Sequoyo@web.de>
To: 87656@bugs.kde.org

Hi,
sorry, but the patch doesn't work.

regards

M. Arlt (Seq)

Am Montag, 23. August 2004 14:11 schrieben Sie:
> Am Montag, 23. August 2004 12:01 schrieben Sie:
> Hi David,
> thanks a lot for the fast answer, but the patch doesn't work. The konqueror
> collaps still by a lot of web or/and html-pages.
>
> regards
>
> M. Arlt (Seq)

--
In Corning, Iowa, it's a misdemeanor for a man to ask his wife to ride
in any motor vehicle.

-------------------------------------------------------



Created an attachment (id=7252)
Bugs 2
Comment 10 Stephan Kulow 2004-08-24 20:29:22 UTC
*** Bug 87840 has been marked as a duplicate of this bug. ***
Comment 11 Maksim Orlovich 2004-08-29 19:00:28 UTC
*** Bug 88395 has been marked as a duplicate of this bug. ***
Comment 12 Tommi Tervo 2004-09-13 10:13:50 UTC
*** Bug 89223 has been marked as a duplicate of this bug. ***
Comment 13 Maksim Orlovich 2004-09-19 16:40:21 UTC
*** Bug 89815 has been marked as a duplicate of this bug. ***
Comment 14 Maksim Orlovich 2004-09-22 18:04:20 UTC
*** Bug 90027 has been marked as a duplicate of this bug. ***
Comment 15 bob janssen 2004-09-25 13:43:56 UTC
http://www.smh.com.au crashed with identical callstack, but only after resizing window.
Same crash occurs when loading www.omroep.nl
I run kdebase3 3.3.0-8 and kdelibs3 3.3.0-7, SuSu 9.0
Comment 16 Maksim Orlovich 2004-10-08 17:30:06 UTC
*** Bug 90969 has been marked as a duplicate of this bug. ***
Comment 17 Stephan Kulow 2004-10-12 14:40:15 UTC
*** Bug 90511 has been marked as a duplicate of this bug. ***
Comment 18 Maksim Orlovich 2004-11-19 17:38:33 UTC
*** Bug 93413 has been marked as a duplicate of this bug. ***
Comment 19 Tommi Tervo 2004-11-23 10:04:28 UTC
*** Bug 93702 has been marked as a duplicate of this bug. ***
Comment 20 Tommi Tervo 2004-11-29 15:15:31 UTC
*** Bug 94090 has been marked as a duplicate of this bug. ***
Comment 21 Maksim Orlovich 2004-12-08 03:40:41 UTC
*** Bug 94631 has been marked as a duplicate of this bug. ***
Comment 22 Maksim Orlovich 2004-12-10 20:16:48 UTC
*** Bug 94839 has been marked as a duplicate of this bug. ***
Comment 23 Gerry Gavigan 2004-12-10 20:34:33 UTC
though bbspot worked before the 3.3.2 upgrade  

On Friday 10 December 2004 19:16, owner@bugs.kde.org wrote:
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>
> http://bugs.kde.org/show_bug.cgi?id=87656
> maksim kde org changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- CC|                            |gg gerryg uklinux net
>
>
>
> ------- Additional Comments From maksim kde org  2004-12-10 20:16 -------
> *** Bug 94839 has been marked as a duplicate of this bug. ***

Comment 24 Maksim Orlovich 2005-01-10 21:44:12 UTC
*** Bug 96726 has been marked as a duplicate of this bug. ***
Comment 25 Maksim Orlovich 2005-01-23 17:30:54 UTC
*** Bug 97705 has been marked as a duplicate of this bug. ***
Comment 26 Maksim Orlovich 2005-02-15 21:09:10 UTC
*** Bug 99477 has been marked as a duplicate of this bug. ***