Opened 13 years ago

Closed 13 years ago

#3870 closed defect (fixed)

Union layer with labels: segmentation fault when styling source layers using attributes

Reported by: jgolinowski Owned by: tamas
Priority: normal Milestone: 6.0.1 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords:
Cc: jmckenna

Description

Using attributes to style the source layers (COLOR, WIDTH, ANGLE ...) of a union layer causes a segmentation fault in maputils.c (method bindStyle). shape->values isn't filled correctly in this case.

For reproduction I took the union-example.zip attached to Ticket #3859 and just made some changes in the mapfile ([REG_CODE] for WIDTH).

A workaround is to add an EXPRESSION to the union layer containing all attributes that are used in the source layers.

Attachments (2)

unionlabel-example.zip (33.5 KB ) - added by jgolinowski 13 years ago.
Example for reproduction
unionlabel_gdb_output.txt (2.4 KB ) - added by jgolinowski 13 years ago.
Debugging output (gdb)

Download all attachments as: .zip

Change History (8)

by jgolinowski, 13 years ago

Attachment: unionlabel-example.zip added

Example for reproduction

by jgolinowski, 13 years ago

Attachment: unionlabel_gdb_output.txt added

Debugging output (gdb)

comment:1 by jgolinowski, 13 years ago

Owner: changed from sdlime to tamas

comment:2 by dmorissette, 13 years ago

Milestone: 6.0.1 release

comment:3 by jmckenna, 13 years ago

Cc: jmckenna added

comment:4 by tamas, 13 years ago

Fixed in r11709 and r11710

With the current version the source layers can also be labeled by using the class text expression of the source layer.

comment:5 by jgolinowski, 13 years ago

I just tested on Unix - no segfaults anymore. Labeling works fine using LABELITEM resp. TEXT in the source layers.

comment:6 by tamas, 13 years ago

Resolution: fixed
Status: newclosed

closing this ticket for now

Note: See TracTickets for help on using tickets.