I am trying to make use of Lingua::Ispell on a Solaris 9 host running iPlanet 6.0sp3, and I'm getting inconsistent results with the following code:
#!/usr/local/bin/perl -w use strict; use Lingua::Ispell; use CGI; use CGI::Carp qw(fatalsToBrowser); use Data::Dumper; $| = 1; print CGI::header(-expires => '-1d'); my @words = Lingua::Ispell::spellcheck("word asdfa"); foreach my $r (@words) { print("<pre>\n", Dumper($r), "</pre>\n") }
I've added a SIGPIPE handler to Lingua::Ispell, and when it traps, it traps near Lingua::Ispell's IPC::Open2::open2() call (and a core file is generated).
My confusion seems to stem from an iPlanet configuration issue--this code works correctly from the command line and on a FreeBSD/Apache host. The iPlanet failure is also sporadic--I see correct output about once per twenty reloads.
Does anyone know of any places where I can look for troubleshooting this further or correcting it (other than converting to Apache)? There aren't resource limits imposed that should cause inconsistent faulting. From a cursory inspection, the CGI settings for iPlanet don't look like they are customized.
Thanks in advance!
In reply to iPlanet6 and IPC::Open2 by Spudnuts
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |