<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML DIR=ltr><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></HEAD><BODY><DIV><FONT face='Arial' color=#0000ff size=2>Hi guys:</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>I am having problems with using 
CheckTableItem on systems with newer glibc, namely Fedora Core 3 and Red Hat 
Enterprise Linux 4, please see the following release notes:</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><A href="http://fedora.redhat.com/docs/release-notes/fc3/x86/"><FONT 
face=Arial 
size=2>http://fedora.redhat.com/docs/release-notes/fc3/x86/</FONT></A></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Then search for 'glibc'.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Basically what happens, is if I use 
setItem on a table cell, and then execute another setItem on the same table 
cell, it would give me an error like the following, and crash the 
widget:</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>*** glibc detected *** double free or 
corruption (fasttop): 0x092e0bd8 ***</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Here's code snippet which can 
reproduce the problem:</FONT></DIV><PRE>#!/usr/bin/perl -w</PRE><PRE>use strict;<BR>use Qt;</PRE><PRE>my $a = Qt::Application(\@ARGV);<BR>my $table = Qt::Table(5,5);</PRE><PRE>$table-&gt;setItem(0,1,Qt::CheckTableItem($table,"test1"));</PRE><PRE>#$table-&gt;removeRow(0);<BR>#$table-&gt;takeItem($table-&gt;item(0,1));</PRE><PRE>$table-&gt;setItem(0,1,Qt::CheckTableItem($table,"test2"));</PRE><PRE>$a-&gt;setMainWidget($table);<BR>$table-&gt;show;<BR>exit $a-&gt;exec;</PRE>
<DIV><FONT face=Arial color=#0000ff size=2>Same thing happens if I uncomment the 
line with 'removeRow', but it works fine if I uncomment the line with 
'takeItem'.&nbsp; Am I doing something wrong here?&nbsp; The problem happens on 
version 3.008, and have also been tested with the latest 3.009b2.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>I even tried setting MALLOC_CHECK_=0 
(as suggested by the release notes), but that gave me segmentation fault 
instead.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Thanks in advance for your 
help.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Bernard</FONT></DIV></BODY></HTML>