[Orca-users] RE: Accumulation of orca defunct processes over ti me.
Erik Melander
EMelander at wyndham.com
Fri Oct 12 10:33:04 PDT 2001
Oddly I noticed that the version number at the bottom of my Orca main page
is at 0.264 whereas I
could have sworn that I compiled the latest version. Did I make a mistake
(twice!) when compiling
Orca or is Orca not reporting the proper version? If I have made a mistake
then that would explain
the defunct process problem ...
Thanks
-----Original Message-----
From: Blair Zajac [mailto:blair at orcaware.com]
Sent: Wednesday, October 10, 2001 3:37 PM
To: orca-discuss at yahoogroups.com
Subject: Re: [orca-discuss] Accumulation of orca defunct processes over
time.
Well, at this point I think you'll have to look into Orca itself and see
if you can determine the problem and solution. Maybe the patch didn't work
correctly that should have solved this problem.
The place to debug is in lib/Orca/SourceFile.pm around the end of the file:
} elsif ($file_status == -1 or
$close_once_done or
$self->[I_REOPEN] or
$open_file_cache->is_pipe($fid)) {
$open_file_cache->close($fid) or
warn "$0: warning: cannot close `$sfile_fids[$fid]' for reading:
$!\n";
}
The other place to look at is in lib/Orca/OpenFileHash.pm and the variable
is_pipe.
Blair
> Erik Melander wrote:
>
> I am at version 0.27b2 (sorry for not mentioning it). In fact I
uninstalled
> everything, and reinstalled v0.27b2
> and get the same errors.
>
> -----Original Message-----
> From: Blair Zajac [mailto:blair at orcaware.com]
> Sent: Wednesday, October 10, 2001 1:28 PM
> To: orca-discuss at yahoogroups.com
> Subject: Re: [orca-discuss] Accumulation of orca defunct processes
> over time.
>
> Upgrade to Orca 0.27b2, it fixes this bug.
>
> * lib/Orca/SourceFile.pm: To fix a bug where Orca would
> leave
> around many defunct bunzip2, gunzip or uncompress
> processes
> when reading compressed input data files. Now when
> load_new_data has reached the end of the input data file,
> use the new OpenFileHash->is_pipe method to determine if
> the
> file descriptor was opened with a bunzip2, gunzip or
> uncompress pipe, and if so, close the file descriptor,
> since
> there cannot be anyway for additional data to appear after
> a
> pipe has been closed. This will close and remove the
> defunct processes from the system.
>
> Blair
>
> > Erik Melander wrote:
> >
> > The orca process is running on a RedHat 7.1 box with the base Perl
> rpm
> > installed (v. 5.6.0-12). Over
> > time I accumulate approximately 5 to 8 defunct orca processes a
> day. Any
> > ideas how to debug this
> > one?
Yahoo! Groups Sponsor
<http://rd.yahoo.com/M=212180.1660613.3195489.1269402/D=egroupweb/S=17050071
81:HM/A=812075/R=0/*http://www.verisign.com/cgi-bin/go.cgi?a=b17834980005700
0>
<http://us.adserver.yahoo.com/l?M=212180.1660613.3195489.1269402/D=egroupmai
l/S=1705007181:HM/A=812075/rand=179160887>
<http://docs.yahoo.com/info/terms/> .
More information about the Orca-users
mailing list