[GRASS-dev] [GRASS GIS] #2643: d.vect png with icon=basic/circle and long paths segfaults

GRASS GIS trac at osgeo.org
Mon Apr 6 02:31:10 PDT 2015


#2643: d.vect png with icon=basic/circle and long paths segfaults
----------------------+-----------------------------------------------------
 Reporter:  pertusus  |       Owner:  grass-dev@…              
     Type:  defect    |      Status:  new                      
 Priority:  major     |   Milestone:  7.0.1                    
Component:  Display   |     Version:  svn-releasebranch70      
 Keywords:            |    Platform:  Linux                    
      Cpu:  x86-64    |  
----------------------+-----------------------------------------------------

Comment(by pertusus):

 Replying to [comment:1 neteler]:
 > I have tried to reproduce it with your scripts but no issue here (Fedora
 21, 64bit).


 My platform is x86_64 CentOS release 6.6.

 Beware that to reproduce, you have to be in a long enough path.  For
 example in
 {{{
 /home/dumas/tmp/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/grass_bug_d_vect_segfault
 }}}

 > In your report there are "<value optimized out>", can you please
 recompile after "make distclean" without compiler optimization in order to
 obtain a better debugger report?

 Here it is (recompiled with -O0):

 {{{
 (gdb) bt
 #0  0x00007ffff6c9b3eb in store_xy (x=750.5, y=-nan(0x8000000000000)) at
 draw_line.c:22
 #1  0x00007ffff6c9b61e in draw_line (x1=750.91808904861637,
 y1=35.342845063313966, x2=750.91808904861637,
     y2=35.342845063313966) at draw_line.c:60
 #2  0x00007ffff6c9b6c9 in png_draw_line (x1=750.91808904861637,
 y1=35.342845063313966,
     x2=750.91808904861637, y2=35.342845063313966) at draw_line.c:73
 #3  0x00007ffff689022d in path_stroke (p=0x7ffff6ea1260,
 line=0x7ffff6c9b647 <png_draw_line>)
     at path.c:106
 #4  0x00007ffff6c9b306 in PNG_Stroke () at draw.c:43
 #5  0x00007ffff688e81f in COM_Stroke () at draw.c:38
 #6  0x00007ffff7df72e6 in D_stroke () at draw2.c:326
 #7  0x00007ffff7df9355 in symbol (Symb=0x8369b0, x0=-1474999.7945148,
 y0=3456000.0026465799,
     fill_color=0x836920, line_color=0x836900, string_color=0x836900) at
 symbol.c:93
 #8  0x00007ffff7df94ff in D_symbol (Symb=0x8369b0, x0=-1474999.7945148,
 y0=3456000.0026465799,
     line_color=0x836900, fill_color=0x836920) at symbol.c:157
 #9  0x00000000004066cf in draw_line (type=87, ltype=1, line=1,
 Points=0x836960, Cats=0x836990,
     color=0x7fffffffdb50, fcolor=0x7fffffffdb40, chcat=0,
 symbol_name=0x6299d0 "basic/circle", size=5,
     sqrt_flag=0, id_flag=0, cats_color_flag=0, default_width=0,
 width_scale=1, zcolors=0x0,
     cvarr_rgb=0x0, colors=0x0, cvarr_width=0x7fffffffd020, nrec_width=0,
 cvarr_size=0x7fffffffd000,
     nrec_size=0, cvarr_rot=0x7fffffffcfe0, nrec_rot=0, Clist=0x631400,
 Symb=0x8369b0,
     line_color=0x836900, fill_color=0x836920, primary_color=0x836940,
 n_points=0x7fffffffcca0,
     n_lines=0x7fffffffcc9c, n_centroids=0x7fffffffcc98,
 n_boundaries=0x7fffffffcc94,
     n_faces=0x7fffffffcc90) at lines.c:350
 #10 0x0000000000405f1c in display_lines (Map=0x7fffffffd210, type=87,
 Clist=0x631400,
     color=0x7fffffffdb50, fcolor=0x7fffffffdb40, chcat=0,
 symbol_name=0x6299d0 "basic/circle", size=5,
     sqrt_flag=0, id_flag=0, cats_color_flag=0, default_width=0,
 width_scale=1, zcolors=0x0,
     cvarr_rgb=0x0, colors=0x0, cvarr_width=0x7fffffffd020, nrec_width=0,
 cvarr_size=0x7fffffffd000,
     nrec_size=0, cvarr_rot=0x7fffffffcfe0, nrec_rot=0) at lines.c:150
 #11 0x00000000004091b5 in display_shape (Map=0x7fffffffd210, type=87,
 Clist=0x631400,
     window=0x7fffffffd190, bcolor=0x7fffffffdb50, fcolor=0x7fffffffdb40,
 chcat=0,
     icon=0x6299d0 "basic/circle", size=5, size_column=0x0, sqrt_flag=0,
 rot_column=0x0, id_flag=0,
     cats_colors_flag=0, rgb_column=0x0, default_width=0, width_column=0x0,
 width_scale=1, z_style=0x0)
     at shape.c:207
 #12 0x0000000000407d90 in main (argc=3, argv=0x7fffffffddd8) at main.c:408
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2643#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list