| I made a bit of a fool of myself on automake list.. I wonder if any of you | have perl 5.8.0rc1 installed, and our recent autoconf to try out: | | % cat file.pl | BEGIN | { | my $datadir = ($ENV{'autom4te_perllibdir'} || '/usr/local/share/autoconf'); | unshift @INC, "$datadir"; | } | use Autom4te::General; | use Autom4te::Struct; | use Autom4te::XFile; | use Carp; | use strict; | | my $output=$ARGV[0]; | my $mode="0666"; | | my $out = new Autom4te::XFile; | $out->open($output, O_CREAT | O_WRONLY | O_TRUNC, oct ($mode)); | % perl file.pl that | % perl file.pl /dev/null | Segmentation fault (core dumped)
To make sure that it's not the fault of Autoconf, can you try this reduced test case? use IO::File; my $out = new IO::File; $out->open("/dev/null", O_CREAT | O_WRONLY | O_TRUNC, 0666); [...] -- Alexandre Duret-Lutz