Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2347 closed defect (fixed)

segmentation fault in maplabel.c:156

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


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 (6)

comment:1 Changed 12 years ago by akrherz

Milestone: 5.0.1 release
Owner: changed from mapserverbugs to sdlime

from IRC:

(08:45:40 PM) hobu: akrherz: this bug was a result of umberto's RFC 24 work

comment:2 Changed 12 years ago by hobu

Cc: umberto added
Component: MapScript-PHPMapServer C Library

comment:3 Changed 12 years ago by unicoletti

Owner: changed from sdlime to unicoletti
Status: newassigned

comment:4 Changed 12 years ago by unicoletti

Resolution: fixed
Status: assignedclosed

Fixed in revision 7181

comment:5 Changed 12 years ago by tamas

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

comment:6 Changed 12 years ago by tamas

Milestone: 5.0.1 release5.0.3 release
Note: See TracTickets for help on using tickets.