setNumRows(0) crashes

View: New views
7 Messages — Rating Filter:   Alert me  

setNumRows(0) crashes

by Joe Claborn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a very simple example where I add a row to a table, set some text into
the first column, and then setNumRows(0) and the program crashes with

*** glibc detected *** double free or corruption (fasttop): 0x085762e8 ***

Environment
SUSE LINUX 10.0 (i586)
perl-Qt -Version: 3.008-132 Installed: 3.008-132
perl 5.8.7-5.3

Am I doing something stupid? I'd be happy to tar up the files and include them
here if that would be appropriate.

Thanks,

Joe Claborn
_______________________________________________
Kde-perl mailing list
Kde-perl@...
https://mail.kde.org/mailman/listinfo/kde-perl

Parent Message unknown Re: setNumRows(0) crashes

by Bernard Li :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[Kde-perl] setNumRows(0) crashes
Hi Joe:
 
If you search the list, you'll see examples where it crashes if you run "removeRow" - however I don't think I've seen the same issue for "setNumRows".
 
Have you tried changing the behaviour of glibc malloc check?  There is a way to prevent it from killing your process.  Also you can try upgrading to perl-Qt 3.009b2 to see if it works.
 
Cheers,
 
Bernard


From: Joe Claborn [mailto:joe@...]
Sent: Thu 25/05/2006 19:37
To: kde-perl@...
Subject: [Kde-perl] setNumRows(0) crashes

I have a very simple example where I add a row to a table, set some text into
the first column, and then setNumRows(0) and the program crashes with

*** glibc detected *** double free or corruption (fasttop): 0x085762e8 ***

Environment
SUSE LINUX 10.0 (i586)
perl-Qt -Version: 3.008-132 Installed: 3.008-132
perl 5.8.7-5.3

Am I doing something stupid? I'd be happy to tar up the files and include them
here if that would be appropriate.

Thanks,

Joe Claborn
_______________________________________________
Kde-perl mailing list
Kde-perl@...
https://mail.kde.org/mailman/listinfo/kde-perl


_______________________________________________
Kde-perl mailing list
Kde-perl@...
https://mail.kde.org/mailman/listinfo/kde-perl

Parent Message unknown Re: setNumRows(0) crashes

by Vaughan, Bennie R Mr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[Kde-perl] setNumRows(0) crashes
I have seen this myself last week when attempting to setNumRows(0) i.e. clear the table.  I ended up in just clearing it myself with a for loop since I was in a hurry.


From: Bernard Li [mailto:bli@...]
Sent: Friday, May 26, 2006 1:32 AM
To: kde-perl@...; kde-perl@...
Subject: Re: [Kde-perl] setNumRows(0) crashes

Hi Joe:
 
If you search the list, you'll see examples where it crashes if you run "removeRow" - however I don't think I've seen the same issue for "setNumRows".
 
Have you tried changing the behaviour of glibc malloc check?  There is a way to prevent it from killing your process.  Also you can try upgrading to perl-Qt 3.009b2 to see if it works.
 
Cheers,
 
Bernard


From: Joe Claborn [mailto:joe@...]
Sent: Thu 25/05/2006 19:37
To: kde-perl@...
Subject: [Kde-perl] setNumRows(0) crashes

I have a very simple example where I add a row to a table, set some text into
the first column, and then setNumRows(0) and the program crashes with

*** glibc detected *** double free or corruption (fasttop): 0x085762e8 ***

Environment
SUSE LINUX 10.0 (i586)
perl-Qt -Version: 3.008-132 Installed: 3.008-132
perl 5.8.7-5.3

Am I doing something stupid? I'd be happy to tar up the files and include them
here if that would be appropriate.

Thanks,

Joe Claborn
_______________________________________________
Kde-perl mailing list
Kde-perl@...
https://mail.kde.org/mailman/listinfo/kde-perl


_______________________________________________
Kde-perl mailing list
Kde-perl@...
https://mail.kde.org/mailman/listinfo/kde-perl

Re: setNumRows(0) crashes

by Joe Claborn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried perl-Qt 3.009b2 with the same results.  Do you have a patch for the
malloc check, or some pointers in the right direction?

Thanks,

Joe


On Friday 26 May 2006 1:31 am, Bernard Li wrote:

> Hi Joe:
>
> If you search the list, you'll see examples where it crashes if you run
> "removeRow" - however I don't think I've seen the same issue for
> "setNumRows".
>
> Have you tried changing the behaviour of glibc malloc check?  There is a
> way to prevent it from killing your process.  Also you can try upgrading to
> perl-Qt 3.009b2 to see if it works
>
> Cheers,
>
> Bernard
>
> ________________________________
>
> From: Joe Claborn [mailto:joe@...]
> Sent: Thu 25/05/2006 19:37
> To: kde-perl@...
> Subject: [Kde-perl] setNumRows(0) crashes
>
>
>
> I have a very simple example where I add a row to a table, set some text
> into the first column, and then setNumRows(0) and the program crashes with
>
> *** glibc detected *** double free or corruption (fasttop): 0x085762e8 ***
>
> Environment
> SUSE LINUX 10.0 (i586)
> perl-Qt -Version: 3.008-132 Installed: 3.008-132
> perl 5.8.7-5.3
>
> Am I doing something stupid? I'd be happy to tar up the files and include
> them here if that would be appropriate.
>
> Thanks,
>
> Joe Claborn
> _______________________________________________
> Kde-perl mailing list
> Kde-perl@...
> https://mail.kde.org/mailman/listinfo/kde-perl
_______________________________________________
Kde-perl mailing list
Kde-perl@...
https://mail.kde.org/mailman/listinfo/kde-perl

Parent Message unknown Re: setNumRows(0) crashes

by Bernard Li :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please see this post:

http://lists.kde.org/?l=kde-perl&m=112163348816912&w=2

Cheers,

Bernard

> -----Original Message-----
> From: Joe Claborn [mailto:joe@...]
> Sent: Friday, May 26, 2006 15:42
> To: kde-perl@...
> Subject: Re: [Kde-perl] setNumRows(0) crashes
>
> I tried perl-Qt 3.009b2 with the same results.  Do you have a
> patch for the
> malloc check, or some pointers in the right direction?
>
> Thanks,
>
> Joe
>
>
> On Friday 26 May 2006 1:31 am, Bernard Li wrote:
> > Hi Joe:
> >
> > If you search the list, you'll see examples where it
> crashes if you run
> > "removeRow" - however I don't think I've seen the same issue for
> > "setNumRows".
> >
> > Have you tried changing the behaviour of glibc malloc
> check?  There is a
> > way to prevent it from killing your process.  Also you can
> try upgrading to
> > perl-Qt 3.009b2 to see if it works
> >
> > Cheers,
> >
> > Bernard
> >
> > ________________________________
> >
> > From: Joe Claborn [mailto:joe@...]
> > Sent: Thu 25/05/2006 19:37
> > To: kde-perl@...
> > Subject: [Kde-perl] setNumRows(0) crashes
> >
> >
> >
> > I have a very simple example where I add a row to a table,
> set some text
> > into the first column, and then setNumRows(0) and the
> program crashes with
> >
> > *** glibc detected *** double free or corruption (fasttop):
> 0x085762e8 ***
> >
> > Environment
> > SUSE LINUX 10.0 (i586)
> > perl-Qt -Version: 3.008-132 Installed: 3.008-132
> > perl 5.8.7-5.3
> >
> > Am I doing something stupid? I'd be happy to tar up the
> files and include
> > them here if that would be appropriate.
> >
> > Thanks,
> >
> > Joe Claborn
> > _______________________________________________
> > Kde-perl mailing list
> > Kde-perl@...
> > https://mail.kde.org/mailman/listinfo/kde-perl
> _______________________________________________
> Kde-perl mailing list
> Kde-perl@...
> https://mail.kde.org/mailman/listinfo/kde-perl
>
_______________________________________________
Kde-perl mailing list
Kde-perl@...
https://mail.kde.org/mailman/listinfo/kde-perl

Re: setNumRows(0) crashes

by Gary L. Greene, Jr.-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 25 May 2006 07:37:57 pm Joe Claborn wrote:

> I have a very simple example where I add a row to a table, set some text
> into the first column, and then setNumRows(0) and the program crashes with
>
> *** glibc detected *** double free or corruption (fasttop): 0x085762e8 ***
>
> Environment
> SUSE LINUX 10.0 (i586)
> perl-Qt -Version: 3.008-132 Installed: 3.008-132
> perl 5.8.7-5.3
>
> Am I doing something stupid? I'd be happy to tar up the files and include
> them here if that would be appropriate.
>
> Thanks,
>
> Joe Claborn
> _______________________________________________
> Kde-perl mailing list
> Kde-perl@...
> https://mail.kde.org/mailman/listinfo/kde-perl

Can you please try against a newer version of perl-Qt? The latest out is
3.009-b2, available as source from the sourceforge site.

--
Gary L. Greene, Jr.
Sent from: peorth.tolharadys.net
 19:43:21 up 1 day, 11:30,  4 users,  load average: 0.12, 0.18, 0.09
=========================================================================
Developer and Project Lead for the AltimatOS open source project
Volunteer Developer for the KDE open source project
 See www.tolharadys.net and www.kde.org for more information
=========================================================================

Please avoid sending me Word or PowerPoint attachments.
_______________________________________________
Kde-perl mailing list
Kde-perl@...
https://mail.kde.org/mailman/listinfo/kde-perl

Re: setNumRows(0) crashes

by Ole Christensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Gary,

I once used the method without any problem. This is the code snippet I found. It
is generated by Designer, thus the cast to int. It shouldn't be actually be
necessary.

my_table = Qt::Table(my_box, "my_table");
...
my_table->setNumRows( int(0) );

Post your code if this doesn't help.

Cheers,
Ole


Gary L. Greene Jr. wrote:

> On Thursday 25 May 2006 07:37:57 pm Joe Claborn wrote:
>> I have a very simple example where I add a row to a table, set some text
>> into the first column, and then setNumRows(0) and the program crashes with
>>
>> *** glibc detected *** double free or corruption (fasttop): 0x085762e8 ***
>>
>> Environment
>> SUSE LINUX 10.0 (i586)
>> perl-Qt -Version: 3.008-132 Installed: 3.008-132
>> perl 5.8.7-5.3
>>
>> Am I doing something stupid? I'd be happy to tar up the files and include
>> them here if that would be appropriate.
>>
>> Thanks,
>>
>> Joe Claborn
>> _______________________________________________
>> Kde-perl mailing list
>> Kde-perl@...
>> https://mail.kde.org/mailman/listinfo/kde-perl
>
> Can you please try against a newer version of perl-Qt? The latest out is
> 3.009-b2, available as source from the sourceforge site.
>
_______________________________________________
Kde-perl mailing list
Kde-perl@...
https://mail.kde.org/mailman/listinfo/kde-perl