niner / Inline-Perl5

Use Perl 5 code in a Raku program
Artistic License 2.0
95 stars 27 forks source link

Segfault using Perl module "Excel::Writer::XLSX" #147

Closed tbrowder closed 4 years ago

tbrowder commented 4 years ago

This Raku script fails with a core dump:

use Excel::Writer::XLXS:from<Perl5>;       # <== version 1.03
my $wb  = Excel:;Writer::XLSX.new: 't.xlsx';
my $fmt = $wb.add_format;
$fmt.set_size: 10;
$wb.close;

However, this alternative syntax works:

use Excel::Writer::XLXS:from<Perl5>;       # <== version 1.03
my $wb  = Excel:;Writer::XLSX.new: 't.xlsx';
my $fmt = $wb.add_format(size =>  10);
$wb.close;

OS: Debian 10 Buster Raku -v:

This is Rakudo version 2020.02.1 built on MoarVM version 2020.02.1
implementing Raku 6.d.

I will attempt to provide a test case for this issue.

tbrowder commented 4 years ago

Your commit 24ef937 fixed the issue! I owe you a test file.