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)

default.map (2.0 KB ) - added by BeneditoCruz 17 years ago.
default.map

Download all attachments as: .zip

Change History (7)

comment:1 by warmerdam, 17 years ago

Cc: warmerdam sdlime added

by BeneditoCruz, 17 years ago

Attachment: default.map added

default.map

comment:2 by BeneditoCruz, 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 sdlime, 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

comment:4 by BeneditoCruz, 17 years ago

I tested the SVN version and the problem disappears. Thanks.

in reply to:  4 comment:5 by sdlime, 17 years ago

Owner: changed from tomkralidis to sdlime
Status: newassigned

Replying to BeneditoCruz:

I'll have to figure out what changed to backport. Thanks for testing.

Steve

comment:6 by sdlime, 17 years ago

Resolution: fixed
Status: assignedclosed

Marking as fixed... (if we issue another 4.10 release I will backport)

Steve

Note: See TracTickets for help on using tickets.