Subject: | segfault in Set::Array |
Hello,
as you may probably know, there is a problem with Set::Array which
uses Want: I get segmentation faults on Linux and Solaris with my
perl-5.8.2, gcc-3.2.3, ithreads, shared libperl when e.g.
running a difference on two Set::Array objects.
Sorry, I had no time yet to put together a minimal test case, but
this one triggers the issue:
use Set::Array;
my $set1 = Set::Array->new(qw(abc def ghi jkl mno));
my $set2 = Set::Array->new(qw(def jkl pqr));
print "BEFORE\n";
my @set3 = $set1 - $set2;
print "AFTER\n";
(the problem occurs regardless of the type of set3)
It seems to be triggered by the context of overloaded
operators.
The coredump happens in Want.pm at
107: my $n = parent_op_name(shift());
Let me know if you need any additional info to fix the
problem. Unfortunately, I am not very familiar with the
perl guts, so I can't help much with XS patches.
Cheers,
Marek