Package: xfig
Version: 1:3.2.5.c-3
Severity: important

Hi there,

(https://bugs.launchpad.net/bugs/1362785 has a report about the same crash)

xfig crashes when opening the attached .fig file, either from the command line
or from the menu. I've found two files with this problem so far, while several
others are fine.

The file was created years ago with an older version of xfig and not
manipulated.

fig2dev with target PDF works on it without a problem.

I also attached a backtrace of the crash. Please let me know if you need any
more information.

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (650, 'unstable'), (450, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xfig depends on:
ii  libc6            2.19-13
ii  libjpeg62-turbo  1:1.3.1-11
ii  libpng12-0       1.2.50-2+b2
ii  libx11-6         2:1.6.2-3
ii  libxpm4          1:3.5.11-1+b1
ii  libxt6           1:1.1.4-1+b1
ii  xaw3dg           1.5+E-18.2

Versions of packages xfig recommends:
ii  transfig   1:3.2.5.e-4
ii  xfig-libs  1:3.2.5.c-3

Versions of packages xfig suggests:
ii  cups-client  1.7.5-10
ii  ghostscript  9.06~dfsg-1.1+b1
ii  gimp         2.8.14-1+b1
pn  gsfonts-x11  <none>
ii  netpbm       2:10.0-15.2
pn  spell        <none>
pn  xfig-doc     <none>

-- no debconf information
#FIG 3.2  Produced by xfig version 3.2.5
Landscape
Center
Metric
A4      
100.00
Single
-2
1200 2
0 32 #bde7ff
0 34 #ffff9c
6 2745 2925 3150 3330
4 2 0 50 -1 0 24 0.0000 4 270 240 3015 3195 P\001
4 0 0 50 -1 0 20 0.0000 4 225 195 2925 3330 S\001
-6
6 2655 4275 3240 4680
4 2 0 50 -1 0 24 0.0000 4 270 270 2925 4545 K\001
4 0 0 50 -1 0 20 0.0000 4 225 285 2925 4680 M\001
-6
6 2745 5670 3150 6075
4 2 0 50 -1 0 24 0.0000 4 270 240 3015 5940 P\001
4 0 0 50 -1 0 20 0.0000 4 225 210 2925 6075 E\001
-6
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
         3375 2925 4275 2925
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
         3375 6075 6075 6075
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
         7425 6075 11025 6075
2 1 1 2 0 7 50 -1 -1 3.000 0 0 -1 0 0 2
         6075 6075 7425 6075
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
         9225 2925 11025 2925
2 1 4 2 0 7 50 -1 -1 3.500 0 0 -1 0 0 2
         4275 2925 9225 2925
2 1 0 3 1 7 50 -1 -1 0.000 0 0 -1 1 0 2
        1 0 1.00 120.00 180.00
         6075 6075 6075 5625
2 1 0 3 1 7 50 -1 -1 0.000 0 0 -1 1 0 3
        1 0 1.00 120.00 180.00
         6075 5625 6750 4950 6750 4500
2 1 0 3 1 7 50 -1 -1 0.000 0 0 -1 1 0 2
        1 0 1.00 120.00 180.00
         4950 4500 6750 4500
2 1 0 3 1 7 50 -1 -1 0.000 0 0 -1 1 0 2
        1 0 1.00 120.00 180.00
         4275 2925 4275 3375
2 1 0 3 1 7 50 -1 -1 0.000 0 0 -1 1 0 3
        1 0 1.00 120.00 180.00
         4275 3375 4950 4050 4950 4500
2 3 0 1 0 2 45 -1 20 0.000 0 0 -1 0 0 9
         4815 4365 4950 4455 5085 4365 4995 4500 5085 4635 4950 4545
         4815 4635 4905 4500 4815 4365
2 1 1 3 1 7 51 -1 -1 3.000 0 0 -1 1 0 4
        1 0 1.00 120.00 180.00
         4950 4500 4950 4275 5850 3375 5850 2925
2 1 1 3 1 7 50 -1 -1 3.000 0 0 -1 1 0 4
        1 0 1.00 120.00 180.00
         6750 4500 6750 4275 7650 3375 7650 2925
2 2 0 0 0 34 250 -1 20 0.000 0 0 -1 0 0 5
         2475 2700 11025 2700 11025 3600 2475 3600 2475 2700
2 2 0 0 0 32 250 -1 20 0.000 0 0 -1 0 0 5
         2475 4050 11025 4050 11025 4950 2475 4950 2475 4050
2 2 0 0 0 34 250 -1 20 0.000 0 0 -1 0 0 5
         2475 5400 11025 5400 11025 6300 2475 6300 2475 5400
2 3 0 1 0 2 45 -1 20 0.000 0 0 -1 0 0 9
         6525 4275 6750 4455 6975 4275 6795 4500 6975 4725 6750 4545
         6525 4725 6705 4500 6525 4275
2 1 0 3 1 7 51 -1 -1 0.000 0 0 -1 1 0 4
        1 0 1.00 120.00 180.00
         6750 4500 6750 4725 7425 5400 7425 6075
2 1 1 3 1 7 50 -1 -1 3.000 0 0 -1 1 0 5
        1 0 1.00 120.00 180.00
         7425 5625 8325 4725 8325 4275 9225 3375 9225 2925
2 3 0 1 0 2 45 -1 20 0.000 0 0 -1 0 0 9
         7290 5490 7425 5580 7560 5490 7470 5625 7560 5760 7425 5670
         7290 5760 7380 5625 7290 5490
2 2 0 0 0 0 50 -1 -1 0.000 0 0 -1 0 0 5
         2475 2250 11025 2250 11025 6750 2475 6750 2475 2250
4 1 0 45 -1 0 20 0.0000 4 225 225 5850 2655 b'\001
4 1 0 45 -1 0 20 0.0000 4 225 150 4950 3915 b\001
4 1 0 45 -1 0 20 0.0000 4 150 135 6750 3915 c\001
4 1 0 45 -1 0 20 0.0000 4 150 150 4275 2655 a\001
4 1 0 45 -1 0 20 0.0000 4 225 210 7650 2655 c'\001
4 1 0 45 -1 0 20 0.0000 4 225 225 9225 2655 d'\001
4 1 0 45 -1 0 20 0.0000 4 225 150 7425 5265 d\001
(gdb) bt full
#0  set_line_stuff (width=1, style=4, style_val=3.5, join_style=0, cap_style=0, 
op=1, color=0) at w_drawprim.c:1401
        il = 484264
        fl = <optimized out>
        gcv = {function = 1, plane_mask = 4294967294, foreground = 0, 
background = 140737336777965, line_width = 1, line_style = 1, cap_style = 1, 
join_style = 0, fill_style = 0, fill_rule = 0, arc_mode = 0, 
          tile = 93824996566664, stipple = 18388416171742057728, ts_x_origin = 
1, ts_y_origin = 0, font = 6075, subwindow_mode = 2925, graphics_exposures = 0, 
clip_x_origin = 1432333385, clip_y_origin = 21845, 
          clip_mask = 0, dash_offset = 1436803696, dashes = 85 'U'}
        mask = <optimized out>
#1  0x00005555555f13e1 in pw_lines (w=93824997384640, points=0x0, 
npoints=1437106176, op=1435653450, depth=1, line_width=0, line_style=4, 
style_val=0, join_style=0, cap_style=0, fill_style=-1, pen_color=0, 
    fill_color=7) at w_drawprim.c:1219
        p = 0xb6d
#2  0x00005555555b914f in draw_point_array (fill_color=<optimized out>, 
pen_color=<optimized out>, fill_style=<optimized out>, cap_style=<optimized 
out>, join_style=<optimized out>, style_val=<optimized out>, 
    line_style=<optimized out>, line_width=<optimized out>, depth=<optimized 
out>, op=<optimized out>, w=<optimized out>) at u_draw.c:218
No locals.
#3  draw_line (line=0x5555559f7ab0, op=0, op@entry=1) at u_draw.c:707
        point = 0x1
        xmin = 4260
        ymin = 2910
        xmax = 9240
        ymax = 2940
        string = 0x1 <error: Cannot access memory at address 0x1>
        p0 = 0x55555592554a <current_family_set+44682>
        p1 = 0x0
        p2 = 0x0
        txt = {length = -14320, ascent = 32767, descent = 1436513696}
#4  0x00005555555cbc86 in redisplay_lineobject (lines=<optimized out>, 
depth=depth@entry=50) at u_redraw.c:261
        lp = 0x5555559f7ab0
        cp = 0x55555598bf50 <counts+2000>
#5  0x00005555555cc09f in redisplay_objects (active_objects=0x555555a69160) at 
u_redraw.c:170
        depth = 50
        objects = 0x555555a69160
        save_objects = <optimized out>
#6  0x00005555555fb4c2 in preview_figure (filename=0x5555559768f8 <canvas_win> 
"\253\006\340\001", parent=0x555555a487c0, canvas=0x555555a637c0, 
size_widget=0x55555592554a <current_family_set+44682>, 
    port_pixmap=1, land_pixmap=0) at w_file.c:1406
        settings = {landscape = 1 '\001', flushleft = 0 '\000', units = 0 
'\000', grid_unit = 0, papersize = 13, magnification = 100, multiple = 0 
'\000', transparent = -2}
        figure = 0x555555a69160
        width = 0
        height = 3.5
        status = 0
        figsize = "19 x 10 
cm\000\367\377\177\000\000\360r\312?UU\000\000g\000\021\000\000\000\000\000\200\205\245UUU\000\000\200\205\245UUU\000\000X\256"
        pb = 13421772
#7  0x00007ffff728a3be in XtCallCallbacks () from 
/usr/lib/x86_64-linux-gnu/libXt.so.6
No symbol table info available.
#8  0x00007ffff74fe877 in ?? () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6
No symbol table info available.
#9  0x00007ffff72be855 in ?? () from /usr/lib/x86_64-linux-gnu/libXt.so.6
No symbol table info available.
#10 0x00007ffff72bf7e2 in _XtTranslateEvent () from 
/usr/lib/x86_64-linux-gnu/libXt.so.6
No symbol table info available.
#11 0x00007ffff72981bb in XtDispatchEventToWidget () from 
/usr/lib/x86_64-linux-gnu/libXt.so.6
No symbol table info available.
#12 0x00007ffff729887d in ?? () from /usr/lib/x86_64-linux-gnu/libXt.so.6
No symbol table info available.
#13 0x00007ffff7298959 in XtDispatchEvent () from 
/usr/lib/x86_64-linux-gnu/libXt.so.6
No symbol table info available.
#14 0x0000555555571f98 in main (argc=1, argv=<optimized out>) at main.c:1566
        children = {0x5555559d1eb0, 0x5555559f97e0, 0x5555559f6890, 
0x5555559f9d80, 0x555555a0a6c0, 0x555555a18d90, 0x555555a19380, 0x555555a0aee0, 
0x555555a1a6e0}
        event = {type = 5, xany = {type = 5, serial = 10794, send_event = 0, 
display = 0x5555559a72d0, window = 31459030}, xkey = {type = 5, serial = 10794, 
send_event = 0, display = 0x5555559a72d0, 
            window = 31459030, root = 666, subwindow = 0, time = 334596663, x = 
61, y = 27, x_root = 1437, y_root = 361, state = 272, keycode = 1, same_screen 
= 1}, xbutton = {type = 5, serial = 10794, 
            send_event = 0, display = 0x5555559a72d0, window = 31459030, root = 
666, subwindow = 0, time = 334596663, x = 61, y = 27, x_root = 1437, y_root = 
361, state = 272, button = 1, same_screen = 1}, 
          xmotion = {type = 5, serial = 10794, send_event = 0, display = 
0x5555559a72d0, window = 31459030, root = 666, subwindow = 0, time = 334596663, 
x = 61, y = 27, x_root = 1437, y_root = 361, 
            state = 272, is_hint = 1 '\001', same_screen = 1}, xcrossing = 
{type = 5, serial = 10794, send_event = 0, display = 0x5555559a72d0, window = 
31459030, root = 666, subwindow = 0, time = 334596663, 
            x = 61, y = 27, x_root = 1437, y_root = 361, mode = 272, detail = 
1, same_screen = 1, focus = 1, state = 16}, xfocus = {type = 5, serial = 10794, 
send_event = 0, display = 0x5555559a72d0, 
            window = 31459030, mode = 666, detail = 0}, xexpose = {type = 5, 
serial = 10794, send_event = 0, display = 0x5555559a72d0, window = 31459030, x 
= 666, y = 0, width = 0, height = 0, 
            count = 334596663}, xgraphicsexpose = {type = 5, serial = 10794, 
send_event = 0, display = 0x5555559a72d0, drawable = 31459030, x = 666, y = 0, 
width = 0, height = 0, count = 334596663, 
            major_code = 0, minor_code = 61}, xnoexpose = {type = 5, serial = 
10794, send_event = 0, display = 0x5555559a72d0, drawable = 31459030, 
major_code = 666, minor_code = 0}, xvisibility = {type = 5, 
            serial = 10794, send_event = 0, display = 0x5555559a72d0, window = 
31459030, state = 666}, xcreatewindow = {type = 5, serial = 10794, send_event = 
0, display = 0x5555559a72d0, parent = 31459030, 
            window = 666, x = 0, y = 0, width = 334596663, height = 0, 
border_width = 61, override_redirect = 27}, xdestroywindow = {type = 5, serial 
= 10794, send_event = 0, display = 0x5555559a72d0, 
            event = 31459030, window = 666}, xunmap = {type = 5, serial = 
10794, send_event = 0, display = 0x5555559a72d0, event = 31459030, window = 
666, from_configure = 0}, xmap = {type = 5, serial = 10794, 
            send_event = 0, display = 0x5555559a72d0, event = 31459030, window 
= 666, override_redirect = 0}, xmaprequest = {type = 5, serial = 10794, 
send_event = 0, display = 0x5555559a72d0, 
            parent = 31459030, window = 666}, xreparent = {type = 5, serial = 
10794, send_event = 0, display = 0x5555559a72d0, event = 31459030, window = 
666, parent = 0, x = 334596663, y = 0, 
            override_redirect = 61}, xconfigure = {type = 5, serial = 10794, 
send_event = 0, display = 0x5555559a72d0, event = 31459030, window = 666, x = 
0, y = 0, width = 334596663, height = 0, 
            border_width = 61, above = 1550483195293, override_redirect = 272}, 
xgravity = {type = 5, serial = 10794, send_event = 0, display = 0x5555559a72d0, 
event = 31459030, window = 666, x = 0, y = 0}, 
          xresizerequest = {type = 5, serial = 10794, send_event = 0, display = 
0x5555559a72d0, window = 31459030, width = 666, height = 0}, xconfigurerequest 
= {type = 5, serial = 10794, send_event = 0, 
            display = 0x5555559a72d0, parent = 31459030, window = 666, x = 0, y 
= 0, width = 334596663, height = 0, border_width = 61, above = 1550483195293, 
detail = 272, value_mask = 4294967297}, 
          xcirculate = {type = 5, serial = 10794, send_event = 0, display = 
0x5555559a72d0, event = 31459030, window = 666, place = 0}, xcirculaterequest = 
{type = 5, serial = 10794, send_event = 0, 
            display = 0x5555559a72d0, parent = 31459030, window = 666, place = 
0}, xproperty = {type = 5, serial = 10794, send_event = 0, display = 
0x5555559a72d0, window = 31459030, atom = 666, time = 0, 
            state = 334596663}, xselectionclear = {type = 5, serial = 10794, 
send_event = 0, display = 0x5555559a72d0, window = 31459030, selection = 666, 
time = 0}, xselectionrequest = {type = 5, 
            serial = 10794, send_event = 0, display = 0x5555559a72d0, owner = 
31459030, requestor = 666, selection = 0, target = 334596663, property = 
115964117053, time = 1550483195293}, xselection = {
            type = 5, serial = 10794, send_event = 0, display = 0x5555559a72d0, 
requestor = 31459030, selection = 666, target = 0, property = 334596663, time = 
115964117053}, xcolormap = {type = 5, 
            serial = 10794, send_event = 0, display = 0x5555559a72d0, window = 
31459030, colormap = 666, new = 0, state = 0}, xclient = {type = 5, serial = 
10794, send_event = 0, display = 0x5555559a72d0, 
            window = 31459030, message_type = 666, format = 0, data = {b = 
"7\212\361\023\000\000\000\000=\000\000\000\033\000\000\000\235\005\000", s = 
{-30153, 5105, 0, 0, 61, 0, 27, 0, 1437, 0}, l = {
                334596663, 115964117053, 1550483195293, 4294967568, 
4294967297}}}, xmapping = {type = 5, serial = 10794, send_event = 0, display = 
0x5555559a72d0, window = 31459030, request = 666, 
            first_keycode = 0, count = 0}, xerror = {type = 5, display = 
0x2a2a, resourceid = 0, serial = 93824996766416, error_code = 214 '\326', 
request_code = 6 '\006', minor_code = 224 '\340'}, xkeymap = {
            type = 5, serial = 10794, send_event = 0, display = 0x5555559a72d0, 
window = 31459030, 
            key_vector = "\232\002", '\000' <repeats 14 times>, 
"\067\212\361\023\000\000\000\000=\000\000\000\033\000\000"}, xgeneric = {type 
= 5, serial = 10794, send_event = 0, display = 0x5555559a72d0, 
            extension = 31459030, evtype = 0}, xcookie = {type = 5, serial = 
10794, send_event = 0, display = 0x5555559a72d0, extension = 31459030, evtype = 
0, cookie = 666, data = 0x0}, pad = {
            140733193388037, 10794, 0, 93824996766416, 31459030, 666, 0, 
334596663, 115964117053, 1550483195293, 4294967568, 4294967297, 16, 1 <repeats 
11 times>}}
        ichild = 9
        init_canv_wd = <optimized out>
        init_canv_ht = <optimized out>
        wmhints = <optimized out>
        i = <optimized out>
        j = <optimized out>
        dumcolor = {pixel = 0, red = 0, green = 0, blue = 0, flags = 0 '\000', 
pad = 0 '\000'}
        version = 
"3.2.5c\000\000\331j\336\367\377\177\000\000\003\000\000\000\000\000\000\000\310\364\374\367\377\177"
        dval = <optimized out>
        tmpstr = 
"(\000\000\000\000\000\000\000\207F\300\365\377\177\000\000/\000\000\000\001\000\000\000\016",
 '\000' <repeats 15 times>, 
"\001\000\000\000\000\000\000\000\020\322\377\377\377\177\000\000ig\336\367\377\177\000\000\000\000\000\000\000\000\000\000\360\364\374\367\377\177\000\000\020\322\377\377\377\177\000\000\221&\336\367\377\177\000\000@\322\377\377\377\177\000\000ig\336\367\377\177",
 '\000' <repeats 11 times>, 
"\360\374\367\377\177\000\000@\322\377\377\377\177\000\000\221&\336\367\377\177\000\000p\322\377\377\377\177\000\000ig\336\367\377\177\000\000\060\351^\365\377\177\000\000\060\351^\365\377\177\000\000\260\320\377\377\377\177\000\000(\351^\365\377\177\000\000\310\364\374\367\377\177\000\000"...

Reply via email to