Opened 17 years ago
Closed 17 years ago
#2089 closed defect (fixed)
Per-Mapscript reporting too many open files
Reported by: | BeneditoCruz | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapScript-Perl | Version: | 4.10 |
Severity: | major | Keywords: | |
Cc: | warmerdam, sdlime |
Description
The following Perl program works returns with "Too many open files" using mapserv 4.10.1/4.10.2:
#-------------------------------------------------------------
#!/usr/local/bin/perl
$|=1;
use mapscript;
foreach (0..50)
{ print "$_ ";
my $map = new mapscript::mapObj('/home/mapcria/bin/data/mapfiles/default.map') or die "Unable to open mapfile $!";
undef $map;
}
#-------------------------------------------------------------.
The versions used are:
Fedora Core 6 x86_64
Kernel 2.6.18-1.2798.fc6 x86_64 x86_64 x86_64 GNU/Linux
GCC 4.1.1 20070105 (Red Hat 4.1.1-51)
PERL 5.8.8
GDAL 1.4.0
GD 2.0.33
GEOS 2.2.3
GEOTIFF 1.2.3
PROJ 4.5.0
The problem does not occur in another installation using mapserver 4.2.0.
Attachments (1)
Change History (7)
comment:1 by , 17 years ago
Cc: | added |
---|
by , 17 years ago
Attachment: | default.map added |
---|
comment:2 by , 17 years ago
ADDENDUM:
THis problem only occurs when using Include's in the mapfile. It seems that included files are not being closed when mapObj's are destroyed.
comment:3 by , 17 years ago
Can you try 5.0 (the main SVN trunk) and let me know if the problem persists? Some changes where made to help this issue there.
Steve
follow-up: 5 comment:4 by , 17 years ago
I tested the SVN version and the problem disappears. Thanks.
comment:5 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Replying to BeneditoCruz:
I'll have to figure out what changed to backport. Thanks for testing.
Steve
comment:6 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Marking as fixed... (if we issue another 4.10 release I will backport)
Steve
default.map