Subject: | *** glibc detected *** perl: corrupted double-linked list: 0x000000001b2b2490 *** |
Date: | Wed, 4 Aug 2010 20:59:46 +0200 |
To: | bug-subs-parallel [...] rt.cpan.org |
From: | Benjamin Clément <benjamin.clement [...] oamp.fr> |
Hi,
I wanted to use the module subs::parallel with an other module named
Astro::FITS::CFITSIO (
http://search.cpan.org/~pratzlaff/Astro-FITS-CFITSIO-1.05/CFITSIO.pm ) but
it seems there is a segmentation fault somewhere.
Just calling the parallelize function after opening and closing a fits file
produces the bug :
#!/usr/bin/env perl
use warnings;
use strict;
use subs::parallel;
use Astro::FITS::CFITSIO;
use Carp;
sub check_status {
my $s = shift;
if ($s != 0) {
my $txt;
Astro::FITS::CFITSIO::fits_get_errstatus($s,$txt);
carp "CFITSIO error: $txt";
return 0;
}
return 1;
}
1;
my $file="test.fits";
my $status = 0;
my $fptr =
Astro::FITS::CFITSIO::open_file($file,Astro::FITS::CFITSIO::READONLY(),$status);
check_status($status) or die;
$fptr->close_file($status);
check_status($status) or die;
my $foo = parallelize { return 0; };
print "$foo\n";
You'll find the full error message in the file test.log.
Can you help me with this please ?
Regards,
Benjamin Clément
Message body not shown because it is not plain text.
Message body is not shown because sender requested not to inline it.