Opened 20 years ago
Closed 20 years ago
#682 closed defect (fixed)
[MapServer]"testMapScript.py" generates a segmentation fault
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-SWIG | Version: | 4.3 |
Severity: | normal | Keywords: | |
Cc: |
Description
"testMapScript.py" generates a segmentation fault when executed. The command to execute the script is "python tests/testMapScript.py -v" (see below). Also the test script is not executed completely. [nsavard@localhost python]$ python tests/testMapScript.py -v testColorObjConstructorArgs (__main__.ColorObjTestCase) ... ok testColorObjConstructorNoArgs (__main__.ColorObjTestCase) ... ok testColorObjSetHexBadly (__main__.ColorObjTestCase) ... ok testColorObjSetHexLower (__main__.ColorObjTestCase) ... ok testColorObjSetHexUpper (__main__.ColorObjTestCase) ... ok testColorObjSetRGB (__main__.ColorObjTestCase) ... ok testColorObjToHex (__main__.ColorObjTestCase) ... ok testDrawPoints (__main__.DrawProgrammedStylesTestCase) ... ERROR testDrawEmptyMap (__main__.EmptyMapExceptionTestCase) ... ok testClearExpression (__main__.ExpressionTestCase) ... ERROR testSetLogicalExpression (__main__.ExpressionTestCase) ... ERROR testSetQuotedStringExpression (__main__.ExpressionTestCase) ... ERROR testSetRegularExpression (__main__.ExpressionTestCase) ... ERROR testSetStringExpression (__main__.ExpressionTestCase) ... ERROR testFontSetFonts may fail if fontset is improperly configured ... ERROR testGetFontSetFile (__main__.FontSetTestCase) ... ERROR testConstructor (__main__.ImageObjTestCase) ... ok testConstructorFilename (__main__.ImageObjTestCase) ... Segmentation fault [
Attachments (2)
Change History (6)
by , 20 years ago
comment:1 by , 20 years ago
Status: | new → assigned |
---|
The problem is that CVS is corrupting the test image files that I have been checking in to mapserver/tests. The test.png and xmarks.png files have been corrupted. Wasn't having any problems with these in the past. I am attaching to this bug issue replacements for those files. Drop them into mapserver/tests and run the tests again. According to what I see, you can expect an error from testSetExtent ... Frank is working on map rotation stuff that probably broke this. The other errors lead me to believe that your mapserver/tests/fonts.txt file isn't correct, but we'll know for sure after you re-run the tests. I'll ask about any CVS changes.
comment:2 by , 20 years ago
I re-committed replacement images, updated, and they are OK. Last time I checked them in it may have been from my win32 machine ... maybe there is a win32 client bug? Report back here after you run the tests so I can see about closing the bug.
comment:4 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed. Thanks for the report and feedback, Normand. --Sean
Note:
See TracTickets
for help on using tickets.
200 x 200 test image