Bug 91178

Summary: <dl compact> rendering error (testcase)
Product: [Applications] konqueror Reporter: Stefano <paciopc>
Component: khtml rendererAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: djarvie, illogical1, uniball
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot
The ps generated from printing from konqueror

Description Stefano 2004-10-12 14:35:20 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Gentoo Packages
Compiler:          gcc-3.4.2 
OS:                Linux

Opening this html in konqueror and printing it results in crash.

<html>
<body>
<dl compact="compact">

<dt><tt>x==y</tt>
<dd> &egrave; vera se le due
variabili contengono lo stesso valore


</dl>
</body>
</html>

To be noticed:
1) Konqueror crashes only at the time when, after pressing print button in kprinter dialog, "Printing document [..] Genrating print Data:page 1" window pops up.
2)the compact tag is not rendered correctly by KHTML: I'll attach a screenshot

Here is the Backtrace 


Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 15980)]
0x40066818 in waitpid () from /lib/libpthread.so.0
#0  0x40066818 in waitpid () from /lib/libpthread.so.0
#1  0x4b237624 in ?? () from /usr/kde/3.3/lib/libkdecore.so.4
#2  0x4b138e01 in KCrash::defaultCrashHandler ()
   from /usr/kde/3.3/lib/libkdecore.so.4
#3  0x00003e6c in ?? ()
#4  0x00000047 in ?? ()
#5  0x4b245734 in kde_malloc_is_used () from /usr/kde/3.3/lib/libkdecore.so.4
#6  0x4b1e4a90 in virtual thunk to KDebugDCOPIface::interfaces() ()
   from /usr/kde/3.3/lib/libkdecore.so.4
#7  0x00000040 in ?? ()
#8  0x00000208 in ?? ()
#9  0x4b245700 in kde_malloc_is_used () from /usr/kde/3.3/lib/libkdecore.so.4
#10 0x4b1e4a90 in virtual thunk to KDebugDCOPIface::interfaces() ()
   from /usr/kde/3.3/lib/libkdecore.so.4
#11 0x00000200 in ?? ()
#12 0x00003e6d in ?? ()
#13 0x00000400 in ?? ()
#14 0x00000400 in ?? ()
#15 0x08441128 in ?? ()
#16 0x00000018 in ?? ()
#17 0x4b245700 in kde_malloc_is_used () from /usr/kde/3.3/lib/libkdecore.so.4
#18 0x4b237624 in ?? () from /usr/kde/3.3/lib/libkdecore.so.4
#19 0x00000014 in ?? ()
#20 0x08720ef8 in ?? ()
#21 0xbfffd428 in ?? ()
#22 0x4b1e637d in malloc () from /usr/kde/3.3/lib/libkdecore.so.4
#23 0x0816ade0 in ?? ()
#24 0x4a7dfd14 in ?? ()
   from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5
#25 0x00000014 in ?? ()
#26 0x4a7be6ef in operator new ()
   from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5




Here some infos about my system: 
gcc-3.4.2, glibc-2.3.4.20040808-r1, 
uname: 2.6.8.1-ck9 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.5.3
Autoconf: autoconf-2.59-r5
Automake: automake-1.8.5-r1
Binutils: binutils-2.15.92.0.2
Headers:  linux26-headers-2.6.8.1-r1
Libtools: libtool-1.5.2-r5
CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -falign-functions=64 -falign-jumps=16 -pipe -ftracer -fprefetch-loop-arrays -fvisibility-inlines-hidden "
Comment 1 Stefano 2004-10-12 14:42:31 UTC
Created attachment 7843 [details]
screenshot 

here is how it is rendered; I've the feel it's not thre right rendering though
I'm really not sure about it.
Comment 2 Tommi Tervo 2004-10-12 16:31:40 UTC

*** This bug has been marked as a duplicate of 79230 ***
Comment 3 Stefano 2004-10-12 16:41:59 UTC
It's not really the same bug since I can't reproduce the dup. On the other hand,  Konqueror doesnt crash on code rendering, but only printing it.
Please consider reopening this bug.

Regards
Comment 4 Tommi Tervo 2004-10-13 11:38:18 UTC
I got same backtrace as #79230. Please compile with --enable-debug=full.

#11 0x41436b3f in __assert_fail () from /lib/libc.so.6
#12 0x41c18bc2 in khtml::RenderBlock::createLineBoxes (this=0x860e1f8,
    obj=0x860e0a0) at bidi.cpp:459
#13 0x41c18d4d in khtml::RenderBlock::createLineBoxes (this=0x860e1f8,
    obj=0x860e114) at bidi.cpp:481
#14 0x41c18e49 in khtml::RenderBlock::constructLine (this=0x860e1f8,
    start=@0xbfffdf80, end=@0xbfffdf70) at bidi.cpp:505
#15 0x41c1a91b in khtml::RenderBlock::layoutInlineChildren (this=0x860e1f8,
    relayoutChildren=true) at bidi.cpp:1195
#16 0x41c1de52 in khtml::RenderBlock::layoutBlock (this=0x860e1f8,
    relayoutChildren=true) at render_block.cpp:530
#17 0x41c1da17 in khtml::RenderBlock::layout (this=0x860e1f8)
    at render_block.cpp:449
#18 0x41c1f199 in khtml::RenderBlock::layoutBlockChildren (this=0x860e02c,
    relayoutChildren=true) at render_block.cpp:858
#19 0x41c1de67 in khtml::RenderBlock::layoutBlock (this=0x860e02c,
    relayoutChildren=true) at render_block.cpp:532
#20 0x41c1da17 in khtml::RenderBlock::layout (this=0x860e02c)
    at render_block.cpp:449
#21 0x41c1f199 in khtml::RenderBlock::layoutBlockChildren (this=0x860dfb4,
    relayoutChildren=true) at render_block.cpp:858
#22 0x41c1de67 in khtml::RenderBlock::layoutBlock (this=0x860dfb4,
Comment 5 Tommi Tervo 2004-10-13 11:42:54 UTC
*** Bug 79230 has been marked as a duplicate of this bug. ***
Comment 6 Stefano 2004-10-19 15:26:03 UTC
Sorry for late answer but I've been quite busy. I updated in the meanwhile to kde 3.3.1 and konqueror doesn't crash anymore printing that fragment of code. But printing it results still in a failure: I dunno if it depends on my kernel which I changed since last report so I got to investigate further.
Comment 7 Tommi Tervo 2004-10-19 15:54:21 UTC
I cannot anymore reproduce the crash, rendering error stays?
Comment 8 Stefano 2004-10-19 16:02:31 UTC
It seems to me rendering is fine. Should this bug be closed?
Comment 9 Stefano 2004-10-19 16:18:37 UTC
Created attachment 7957 [details]
The ps generated from printing from konqueror 

Ok I found another bug with this piece of code. Printing it doesn't make
konqueror crash but the x==y part isn't rendered in postscript generation of
kdeprinting as it can be seen in the attchment made through "print-->print to
postscrpit file".
Comment 10 Germain Garand 2004-10-19 23:39:28 UTC
fixed in head.
Comment 11 Stefano 2004-10-19 23:56:21 UTC
fixed what? postscript bug? sorry to bother but I want to know If I have to open another report.

Regards
Comment 12 Germain Garand 2004-10-20 02:46:10 UTC
well, I'm not going to enumerate every comment. If I say fixed, it means of course completely fixed.
Comment 13 Stephan Kulow 2004-11-11 14:15:18 UTC
*** Bug 93085 has been marked as a duplicate of this bug. ***
Comment 14 Tommi Tervo 2005-01-31 13:56:09 UTC
*** Bug 92175 has been marked as a duplicate of this bug. ***