Opened 12 years ago

Last modified 12 years ago

#4266 new defect

SegFault in mapserver

Reported by: woodbri Owned by: tbonfort
Priority: normal Milestone: 6.2 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords:
Cc:

Description

This was caused by adding GEOMTRANSFORM 'start' to my LABEL STYLE block. I wanted to see if I could force the label point to the start of the line.

    LABEL
      MAXSCALEDENOM 200000
      EXPRESSION ('[RTTYP]' = 'U' && '[RTENUM]' ~ '.')
      TEXT '[RTENUM]'
      STYLE
        GEOMTRANSFORM 'start'  ## adding this causes SIGSEGV
        SYMBOL "U"
        SIZE 20
        MINSIZE 20
        MAXSIZE 20
      END
      SIZE TINY
      POSITION CC
      #OFFSET 1 0
      MINDISTANCE 100
      REPEATDISTANCE 150
      COLOR "#000000"
      PARTIALS FALSE
      PRIORITY 7
    END

Here is the gdb backtrace:

[Thu Mar 29 17:21:17 2012].345151 msDrawLabelCache(): labelcache_map_edge_buffer = 10
[New Thread 0x7fb485245710 (LWP 20866)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fb485245710 (LWP 20866)]
0x00007fb47c7da0b0 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x00007fb47c7da0b0 in strlen () from /lib/libc.so.6
#1  0x00007fb484e6b681 in msWriteErrorImage (map=0xb95c50, filename=0x0,
    blank=0) at maperror.c:446
#2  0x00007fb484e942c6 in msWMSException (map=0xb95c50, nVersion=65793,
    exception_code=0x0,
    wms_exception_format=0xb95980 "application/vnd.ogc.se_inimage")
    at mapwms.c:112
#3  0x00007fb484ea0520 in msWMSGetMap (map=0xb95c50, nVersion=65793,
    names=0xb94940, values=0xb94c70, numentries=13,
    wms_exception_format=0xb95980 "application/vnd.ogc.se_inimage",
    ows_request=0x7fffeba8ed20) at mapwms.c:4027
#4  0x00007fb484ea5063 in msWMSDispatch (map=0xb95c50, req=0xb94900,
    ows_request=0x7fffeba8ed20, force_wms_mode=0) at mapwms.c:5443
#5  0x00007fb484ee1d86 in msOWSDispatch (map=0xb95c50, request=0xb94900,
    ows_mode=-1) at mapows.c:275
#6  0x00007fb484f4576e in msCGIDispatchRequest (mapserv=0xb946c0)
    at mapservutil.c:1631
#7  0x000000000040131d in main (argc=2, argv=0x7fffeba8eef8) at mapserv.c:201

Change History (1)

comment:1 by tbonfort, 12 years ago

Owner: changed from sdlime to tbonfort
Note: See TracTickets for help on using tickets.