New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapserver 6.5-dev (or 6.4) getlegendgraphic segfault #4808

Closed
wants to merge 1 commit into
base: branch-6-4
from

Conversation

Projects
None yet
2 participants
@tbonfort
Member

tbonfort commented Nov 20, 2013

Hi, I'm getting segfault when I'm trying to render getlegendgraphic

GDB output: http://pastebin.com/23Y78FHY

LAYER definition: http://pastebin.com/wj6E2YMq

Legend image: http://gis.lesprojekt.cz/legenda.png

Linux distribution is debian wheezy.

@wohnout

This comment has been minimized.

Show comment
Hide comment
@wohnout

wohnout Nov 14, 2013

GDB output:

root@gis:/usr/local/src/mapserver/build# gdb mapserv
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/src/mapserver/build/mapserv...done.
(gdb) run
Starting program: /usr/local/src/mapserver/build/mapserv 
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff79c36e7 in msDrawLegendIcon (map=0x61c000, lp=0x624410, theclass=0x626370, width=375, height=95, image=0x9e9680, dstX=5, dstY=5, scale_independant=1, hittest=0x0)
    at /usr/local/src/mapserver/maplegend.c:165
165         if (width/symbol->sizex < height/symbol->sizey)
(gdb) print symbol
$1 = (symbolObj *) 0x0

LAYER DEFINITION

   LAYER
    GROUP gdp_per_person
    NAME         gdp_per_person_nuts0
    CONNECTIONTYPE POSTGIS
    CONNECTION "host=127.0.0.1 dbname=XXX user=XXX password=XXX"
    #DATA "geom_c from (select a.geom_c, b.maljunak, a.nuts_id, a.stat_levl_ as nuts_level, a.name, b.year_2010 as value_in_2010, b.svg_symbol, a.gid from eurostat.nuts_4258 a, eurostat.euro_per_inhabitant b where a.nuts_id=b.geo and a.stat_levl_=0) as foo using unique gid using srid=4258"
    DATA "geom from (select a.geom, a.nuts_id, a.stat_levl_ as nuts_level, b.svg_symbol, a.gid from eurostat.nuts_2010_c a, eurostat.euro_per_inhabitant b where a.nuts_id=b.geo and a.stat_levl_=0 union all
                     select a.geom, a.code_2006 as nuts_id, a.stat_levl_ as nuts_level, b.svg_symbol, a.gid from eurostat.nuts_2010_c a, eurostat.euro_per_inhabitant b where a.code_2006=b.geo and a.stat_levl_=0 and a.change=1) as foo using unique gid using srid=4258"


    STATUS       ON
    TYPE        POINT

    PROCESSING "LABEL_NO_CLIP=True"

    PROJECTION
      "init=epsg:4258"
    END


    MAXSCALEDENOM 30000001
    MINSCALEDENOM 10000001

    METADATA
    wms_title "GDP per person in NUTS 0 regions"
    wms_group_title "GDP per person in NUTS regions"
    END



    CLUSTER
    MAXDISTANCE 30  # in pixels
    REGION "rectangle"  # can be rectangle or ellipse
    END

    CLASS
      #NAME "Cluster"
      EXPRESSION ("[Cluster:FeatureCount]" != "1")
      STYLE
        SYMBOL [MAX:svg_symbol]
        SIZE 150
        ANTIALIAS TRUE
      END
    END


    CLASS
      NAME ' '
      KEYIMAGE '/data/geoserver/p4b/data/diagramy/gdp_svg/legenda.png'
      STYLE
        SYMBOL [svg_symbol]
        SIZE 150 #120
        ANTIALIAS TRUE
      END
    END
  END

wohnout commented Nov 14, 2013

GDB output:

root@gis:/usr/local/src/mapserver/build# gdb mapserv
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/src/mapserver/build/mapserv...done.
(gdb) run
Starting program: /usr/local/src/mapserver/build/mapserv 
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff79c36e7 in msDrawLegendIcon (map=0x61c000, lp=0x624410, theclass=0x626370, width=375, height=95, image=0x9e9680, dstX=5, dstY=5, scale_independant=1, hittest=0x0)
    at /usr/local/src/mapserver/maplegend.c:165
165         if (width/symbol->sizex < height/symbol->sizey)
(gdb) print symbol
$1 = (symbolObj *) 0x0

LAYER DEFINITION

   LAYER
    GROUP gdp_per_person
    NAME         gdp_per_person_nuts0
    CONNECTIONTYPE POSTGIS
    CONNECTION "host=127.0.0.1 dbname=XXX user=XXX password=XXX"
    #DATA "geom_c from (select a.geom_c, b.maljunak, a.nuts_id, a.stat_levl_ as nuts_level, a.name, b.year_2010 as value_in_2010, b.svg_symbol, a.gid from eurostat.nuts_4258 a, eurostat.euro_per_inhabitant b where a.nuts_id=b.geo and a.stat_levl_=0) as foo using unique gid using srid=4258"
    DATA "geom from (select a.geom, a.nuts_id, a.stat_levl_ as nuts_level, b.svg_symbol, a.gid from eurostat.nuts_2010_c a, eurostat.euro_per_inhabitant b where a.nuts_id=b.geo and a.stat_levl_=0 union all
                     select a.geom, a.code_2006 as nuts_id, a.stat_levl_ as nuts_level, b.svg_symbol, a.gid from eurostat.nuts_2010_c a, eurostat.euro_per_inhabitant b where a.code_2006=b.geo and a.stat_levl_=0 and a.change=1) as foo using unique gid using srid=4258"


    STATUS       ON
    TYPE        POINT

    PROCESSING "LABEL_NO_CLIP=True"

    PROJECTION
      "init=epsg:4258"
    END


    MAXSCALEDENOM 30000001
    MINSCALEDENOM 10000001

    METADATA
    wms_title "GDP per person in NUTS 0 regions"
    wms_group_title "GDP per person in NUTS regions"
    END



    CLUSTER
    MAXDISTANCE 30  # in pixels
    REGION "rectangle"  # can be rectangle or ellipse
    END

    CLASS
      #NAME "Cluster"
      EXPRESSION ("[Cluster:FeatureCount]" != "1")
      STYLE
        SYMBOL [MAX:svg_symbol]
        SIZE 150
        ANTIALIAS TRUE
      END
    END


    CLASS
      NAME ' '
      KEYIMAGE '/data/geoserver/p4b/data/diagramy/gdp_svg/legenda.png'
      STYLE
        SYMBOL [svg_symbol]
        SIZE 150 #120
        ANTIALIAS TRUE
      END
    END
  END

@ghost ghost assigned tbonfort Nov 14, 2013

tbonfort added a commit to mapserver/msautotest_DEPRECATED that referenced this pull request Nov 20, 2013

@tbonfort

This comment has been minimized.

Show comment
Hide comment
@tbonfort

tbonfort Nov 20, 2013

Member

applied to branch-6-4, and merged into master

Member

tbonfort commented Nov 20, 2013

applied to branch-6-4, and merged into master

@tbonfort tbonfort closed this Nov 20, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment