Ticket #2347 (closed defect: fixed)

Opened 11 months ago

Last modified 7 months ago

segmentation fault in maplabel.c:156

Reported by: akrherz Assigned to: unicoletti
Priority: normal Milestone: 5.0.3 release
Component: MapServer C Library Version: 5.0
Severity: normal Keywords:
Cc: umberto

Description

one must have a style definition with a POINT layer when rendering text in php mapscript (that's all I tested). Interestingly, if the layer is an annotation, the style can be missing.

Anyway, gdb reports:

Program terminated with signal 11, Segmentation fault.
#0  0x002258f2 in msAddLabel (map=0x9626228, layerindex=0, classindex=0, 
    shapeindex=155762096, tileindex=-1, point=0x96e9b80, labelpath=0x0, 
    string=0x96e9f80 "67", featuresize=-1, label=0xbfc4b7c4) at maplabel.c:156
156         if(msGetMarkerSize(&map->symbolset, classPtr->styles[0], &w, &h, layerPtr->scalefactor) != MS_SUCCESS)

Change History

10/08/07 21:48:17 changed by akrherz

  • owner changed from mapserverbugs to sdlime.
  • milestone set to 5.0.1 release.

from IRC:

(08:45:40 PM) hobu: akrherz: this bug was a result of umberto's RFC 24 work http://trac.osgeo.org/mapserver/changeset/6031

10/08/07 21:48:48 changed by hobu

  • cc set to umberto.
  • component changed from MapScript-PHP to MapServer C Library.

12/17/07 08:46:21 changed by unicoletti

  • status changed from new to assigned.
  • owner changed from sdlime to unicoletti.

12/17/07 09:00:11 changed by unicoletti

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in revision 7181

01/30/08 17:24:58 changed by tamas

I've applied the fix in branch-5-0 r7332 since I've run into the same issue with 5.0.2

01/30/08 17:25:07 changed by tamas

  • milestone changed from 5.0.1 release to 5.0.3 release.