Bug 116176

Summary: "*** glibc detected *** corrupted double-linked list" when using FIXED width fonts
Product: [Frameworks and Libraries] kdelibs Reporter: Alain Knaff <kde>
Component: qtAssignee: Lubos Lunak <l.lunak>
Status: RESOLVED WORKSFORME    
Severity: crash CC: achiestdragon, demko.peter.1976, javi.azuaga, kavol, mueller, rdieter, rolandwolters, sts, sven.burmeister
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Output of crashed kwrite whith FC_DEBUG=1

Description Alain Knaff 2005-11-12 11:50:50 UTC
Version:           0.10 (using KDE 3.5 (RC1) Level "a" , SUSE 9.3 UNSUPPORTED)
Compiler:          gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
OS:                Linux (i686) release 2.6.10

Knode crashes when viewing certain articles. One such example is  <4bi2n1pggk5fe0vc70u1vv26g5a7n30k8i@4ax.com>. This may be currently found in alt.folklore.urban with the title "HIP, HIP HURRAY! Evolution Takes It on the Chin".

When knode crashes, the following error message is displayed to stdout:
*** glibc detected *** corrupted double-linked list: 0x41158838 ***

The problem only occurs when articleBodyFixedFont is set to true in the [READNEWS] section of knoderc.

Fortunately a workaround is available: set articleBodyFixedFont to false, and set articleFont (in [VISUAL_APPEARANCE]) to be a courier font ;-)
Comment 1 Alain Knaff 2005-11-12 13:07:07 UTC
It seems to be a Qt issue. Downgrading from qt3-3.3.5-15 (as shipped with KDE 3.5rc1) to qt3-3.3.5-12 (as shipped with KDE 3.5 beta2) while keeping all other rpms at their 3.5rc1 version fixes the issue.

The same Qt bug pops up in other apps as well: for instance Konqueror's view source is broken with qt3-3.3.5-15 but not with qt3-3.3.5-12 (same error message: "*** glibc detected *** corrupted double-linked list: 0x40162838 ***")

Comment 2 Alain Knaff 2005-11-15 00:46:59 UTC
I also reported this bug to Trolltech (N92889), and they suggested to me that I should try with the qt snapshots downloaded directly from their site, which I did: qt-x11-free-3.3.6-snapshot-20051114 worked fine.

Comment 3 Dirk Mueller 2005-11-17 15:41:28 UTC
*** Bug 116417 has been marked as a duplicate of this bug. ***
Comment 4 Dirk Mueller 2005-11-17 15:44:51 UTC
*** Bug 116411 has been marked as a duplicate of this bug. ***
Comment 5 Dirk Mueller 2005-11-17 15:45:22 UTC
*** Bug 116499 has been marked as a duplicate of this bug. ***
Comment 6 Stephan Binner 2005-11-17 15:49:21 UTC
*** Bug 116157 has been marked as a duplicate of this bug. ***
Comment 7 Dirk Mueller 2005-11-17 16:01:50 UTC
can you try with export FC_DEBUG=1 and see which font exactly it chooses?

Comment 8 david powell 2005-11-17 16:19:58 UTC
well finding  trying to follow the links on this page to the bugs marked as duplicates of this bug are also causing  konqueror to exit 
with 
*** glibc detected *** corrupted double-linked list ....

so far just downloading the suse version update of glib2  glib2-2.8-3.8 and there versions of the kde 3.5rc1 rpms  now live in 
ftp://ftp.suse.com/pub/suse/i386/supplementary/KDE/update_for_9.3/
as discussed in #kde-develop last night with Maksim Orlovich
quote
" OK, I am afraid I can't say much concerete :-(... however, there is a chance it's a problem with packages, and there might be a more official version of those released tommorow into 'supplementary'"

but its updateing all the kde packages also to there build of it (1hr to go)

Dave
 
Comment 9 Dirk Mueller 2005-11-17 16:29:32 UTC
the suse packages have a highly experimental Qt patch that speeds up font handling. it seems likely that this is the cause of the crashes. 

will build a package without it for you to test. other updates from supplementary are not relevant. 

Comment 10 Dirk Mueller 2005-11-17 16:29:37 UTC
the suse packages have a highly experimental Qt patch that speeds up font handling. it seems likely that this is the cause of the crashes. 

will build a package without it for you to test. other updates from supplementary are not relevant. 
Comment 11 david powell 2005-11-17 17:25:10 UTC
ok 
the suse update did not help 
, will try the package without the qt patch , just need to know where i can get it :)

dave
Comment 12 Dirk Mueller 2005-11-17 17:43:33 UTC
http://developer.kde.org/~dirk/qt3/
Comment 13 david powell 2005-11-17 18:55:13 UTC
yes :) ty 
that seems to have fixed the problem 

thank you for the fast fix 

Dave 
Comment 14 Alain Knaff 2005-11-17 19:32:49 UTC
Created attachment 13515 [details]
Output of crashed kwrite whith FC_DEBUG=1

For some weird reason, the bug is no longer reproducible in knode (even with
qt3-3.3.5-15). But it still is in kwrite.

N.B. qt3-3.3.5-17 fixes the problem also for kwrite.
Comment 15 Lubos Lunak 2005-11-18 17:38:20 UTC
Can any of you reproduce the problem with fontconfig that's NOT version 2.3.90?
Comment 16 david powell 2005-11-18 19:56:07 UTC
don't know if it was updated as part of the rpm , 
but yast is showing a version for fontconfig as 
2.2.99.20050218-8 if that helps 

if it did update let me know i will wade though the install log 
and see if i can find the one that was installed before

other than the rpm in  Comment #12 i have not updated anything since

Dave 
Comment 17 Alain Knaff 2005-11-18 19:59:42 UTC
I have fontconfig-2.2.99.20050218-8 and I did have the bug (until I upgraded my qt to qt3-3.3.5-17).
Comment 18 Jake 2005-11-18 22:37:38 UTC
I appear to be experiencing a similar issue with quanta. The bug report is here: https://bugs.kde.org/show_bug.cgi?id=116647

I am on a 64bit suse 10 machine with kde 3.5, and my qt3 package is qt3-3.3.5-17, however there is also a qt3-32bit package that is installed on my system and it is still on 3.3.4-28x86_64. I am thinking this might be why I am sitll having a problem with this. However I do not feel at all comfortable trying the trolltech snapshot and there is not an updated qt3-32bit package in the suse kde supplementary sources. Anyone have any suggestions?
Comment 19 Roland Wolters 2005-11-20 14:23:47 UTC
The problem seems solved now after an update:
qt-4.0.1-16
qt3-3.3.5-19
and several others.

I have no crash anymore with this page for example:
http://de.wikipedia.org/wiki/Wikipedia:Kandidaten_für_exzellente_Artikel
Comment 20 Dirk Mueller 2005-11-21 14:08:24 UTC
so this is only against suse 9.3 or lubos hacked fontconfig variant?

Comment 21 Stephan Binner 2005-11-22 13:31:43 UTC
*** Bug 116872 has been marked as a duplicate of this bug. ***
Comment 22 Lubos Lunak 2005-11-30 18:01:24 UTC
Use newer fontconfig or different qt.
Comment 23 Rex Dieter 2005-12-16 16:33:06 UTC
The experimental patches are now in qt-copy, and we (kde-redhat) have received several new crash reports when using them -> reopening.

Or, is it recommended to simply disable/not-use them?
Comment 24 Lubos Lunak 2005-12-16 16:56:30 UTC
"Use newer fontconfig or different qt."
The patches apparently trigger a bug in certain fontconfig versions. According to these reports such versions are 2.2.99 or 2.3.90, while e.g. 2.3.2 or 2.3.92 work fine (at least here). IOW unless you can confirm the crashes with a stable recent fontconfig, the patches are considered to be fine.

Comment 25 Rex Dieter 2005-12-16 18:45:53 UTC
For the record, the 2 reported crashes occurred on
Fedora Core 4, fontconfig-2.2.3
RedHat Enterprise 4, fontconfig-2.2.3
Though I've (so far) been unable to duplicate the crash myself on either platform.
Comment 26 Franklin Weng 2005-12-20 03:36:39 UTC
Hi.
I met the same problem using KMail too.

My original KMail is from Mandriva 2006.0 with KDE 3.4, then I upgraded my KDE to 3.5 from Mandriva cooker. Then the glibc corrupt nightmares came.

I read the above discussions, and tried to upgrade my fontconfig to 2.3.92, but no help. I upgraded my qt from 3.3.5-7mdk to 3.3.5-9mdk, no help either.
Comment 27 Lubos Lunak 2006-01-04 22:12:24 UTC
To update the information, qt-copy patch #0066 needs a recent CVS version of fontconfig (not older than 20060102).