Re: Gtk2::SimpleList crashes



Peter Daum <gator_ml yahoo de> writes:

... I had to slightly rearrange your script so it can produce some output:
(with your script, there is no error message, just the segfault)

use Gtk2 -init;
use Gtk2::SimpleList;
print "Gtk2::VERSION              $Gtk2::VERSION\n";
print "Gtk2::SimpleList::VERSION  $Gtk2::SimpleList::VERSION\n";
print "Gtk2->GET_VERSION_INFO     ".join(".",Gtk2->GET_VERSION_INFO)."\n";
print "Gtk2->get_version_info     ".join(".",Gtk2->get_version_info)."\n";

my $slist = Gtk2::SimpleList->new ('Stuff' => 'text');

@{ $slist->{data} } = qw(one two three four five six seven);

my @data = @{ $slist->{data} };
@{ $slist->{data} } = @data;

Gtk2::VERSION              1.190
Gtk2::SimpleList::VERSION  0.15
Gtk2->GET_VERSION_INFO     2.12.11
Gtk2->get_version_info     2.12.12
Segmentation fault

doesn't segfault with perl-5.10.1 rc1 but definitively shows up some
issues:

$ perl /tmp/t.pm
Gtk2::VERSION              1.221
Gtk2::SimpleList::VERSION  0.15
Gtk2->GET_VERSION_INFO     2.17.2
Gtk2->get_version_info     2.17.7
Gtk-CRITICAL **: gtk_list_store_get_value: assertion `VALID_ITER (iter, list_store)' failed at 
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Gtk2/SimpleList.pm line 248.
[gperl_sv_from_value] FIXME: unhandled type - 0 ((null) fundamental for (null))
$ rpm -q perl perl-Gtk2 gtk+2.0
perl-5.10.0-27mdv2010.0.x86_64
perl-Gtk2-1.221-1mdv2010.0.x86_64
gtk+2.0-2.17.7-3mdv2010.0.i586



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]