Bug 74805 - khtmlview crashes on konqueror, kmail, kontact start
Summary: khtmlview crashes on konqueror, kmail, kontact start
Status: RESOLVED DUPLICATE of bug 67597
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 10:53 UTC by Thomas Bartschies
Modified: 2004-02-12 21:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch for gcc 2.96 (1.30 KB, patch)
2004-02-10 21:43 UTC, Thomas Bartschies
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bartschies 2004-02-10 10:53:40 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    RedHat RPMs
Compiler:          gcc 2.96-113 on RH 7.3
OS:          Linux

Env is:
Redhat 7.3, gcc 2.96-113, arts 1.2, qt-3.2.3, Kernel 2.4.22, glibc 2.2.5
All Apps crash immediatly after showing their main app window.
gdb backtraces show that all of them crash within the khtmlview lib,
although on different places. strace shows that all of them crash
nearly after loading the default css stylesheets.

Konqueror crashes in
KHTMLView::scheduleRelayout

KMail, Kontact crash in
KHTMLView::RenderBlock::FloatingObject delete::Item
Comment 1 Tommi Tervo 2004-02-10 11:43:51 UTC
No crashes, using RH-7.3 and I build KDE from sources. Packaging bug?
Comment 2 Rex Dieter 2004-02-10 15:40:36 UTC
Tommi, what version of qt are you using?  Compiler (default gcc-2.96)?  Optimization settings?

No matter what I try, gcc-2.96 + qt-2.3.2 + kdelibs-3.2.0 (even with -O0) khtml crashes.  As a matter of fact, building kdelibs-3.2.0 with anything but -O0 crashes the compiler.
Comment 3 Thomas Bartschies 2004-02-10 21:43:22 UTC
Created attachment 4629 [details]
Patch for gcc 2.96
Comment 4 Thomas Bartschies 2004-02-10 21:47:18 UTC
Comment on attachment 4629 [details]
Patch for gcc 2.96

As mentioned here in another bug Posting,
the crappy gcc 2.96
throws an Internal Error:
Floating Point Exception
on khtml_caret_p.h, if
-O2 Optimization is used.
Building without Optimization makes this
worse. It's the reason
for my aforementioned probs. By applying this
changes and building with
-O2, it now seems to work.
Comment 5 Rex Dieter 2004-02-10 22:27:43 UTC
Many thanks.
Comment 6 Rex Dieter 2004-02-10 22:28:09 UTC

*** This bug has been marked as a duplicate of 67597 ***
Comment 7 Rex Dieter 2004-02-12 18:11:47 UTC
The compiler doesn't crash now with the provided patch, but I'm still seeing konqueror crash (SEGFAULT) when trying to view *any* HTML page.

I'll try adjusting the RPM_OPT_FLAGS away from the default:
-O2 -march=i386 -mcpu=i686
to either just
-O2
or even
-O1
to see if it helps any.
Comment 8 Tommi Tervo 2004-02-12 18:28:31 UTC
I've used qt-copy, many versions of 3.2.x and 3.3.x and everything works fine. Compiler is gcc-2.96. Sometimes I build with -march=i686, usually without special flags (=-O2). If I have problems, I'll do complete make cvs-clean and rm -rf /opt/qt* /opt/kde* and rebuild all qt and kde-packages.
Comment 9 Thomas Bartschies 2004-02-12 18:31:22 UTC
Built by me with "-O2 -D_GNU_SOURCE -fuse-cxa-atexit" as provisioned
for gcc 2.96 in the spec File. Works fine.
Comment 10 Rex Dieter 2004-02-12 21:28:11 UTC
> I'm still seeing konqueror crash (SEGFAULT) when trying to view *any* HTML page. 

Scratch that.  Today the same rh73 box seems to be behaving better.  No khtml crashes (yet).