Bug 197097 - graphics/evince coredump on FreeBSD 11.0-CURRENT #0 r277714
Summary: graphics/evince coredump on FreeBSD 11.0-CURRENT #0 r277714
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-26 15:22 UTC by Ivan Klymenko
Modified: 2015-12-03 19:43 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Klymenko 2015-01-26 15:22:34 UTC
I have:
FreeBSD 11.0-CURRENT #0 r277714
evince-3.14.1_1
cairo-1.12.18_1,2
 
When I open the following pdf document (http://axis.apache.org/axis/ja/cpp/windev-guide.pdf) , I get coredump.
xpdf opens the same file successfully.
Who can tell what could be the problem?
 
Thanks.
 
gdb --args evince windev-guide.pdf
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
(gdb) r
Starting program: /usr/local/bin/evince windev-guide.pdf
[New LWP 101506]
[New Thread 80d806400 (LWP 101506/evince)]
[New Thread 80fd7e400 (LWP 101720/evince)]
 
(evince:2048): Gtk-WARNING **: Symbolic icon window-close-symbolic-ltr of size 16 is in an icon theme directory of size 96
 
(evince:2048): Gtk-WARNING **: Symbolic icon go-previous-symbolic-ltr of size 16 is in an icon theme directory of size 96
 
(evince:2048): Gtk-WARNING **: Symbolic icon go-next-symbolic-ltr of size 16 is in an icon theme directory of size 96
 
(evince:2048): Gtk-WARNING **: Symbolic icon edit-find-symbolic-ltr of size 16 is in an icon theme directory of size 96
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 80d806400 (LWP 101506/evince)]
0x000000080459f516 in memcpy () from /lib/libc.so.7
(gdb) bt full
#0  0x000000080459f516 in memcpy () from /lib/libc.so.7
No symbol table info available.
#1  0x0000000802e1228b in _cairo_clip_copy (clip=0x80fe24c90) at cairo-clip.c:165
        copy = <value optimized out>
#2  0x0000000802e140b5 in _cairo_clip_reduce_to_rectangle (clip=0x80fe24c90, r=0x7fffffff929c) at cairo-clip-inline.h:58
No locals.
#3  0x0000000802e154c2 in _cairo_composite_rectangles_intersect (extents=0x7fffffff9260, clip=0x80fe24c90)
    at cairo-composite-rectangles.c:162
        ret = <value optimized out>
#4  0x0000000802e15c99 in _cairo_compositor_glyphs (compositor=0x803102448, surface=0x80d898700, op=Unhandled dwarf expression opcode 0x93
) at cairo-compositor.c:238
        overlap = <value optimized out>
        extents = {surface = 0x127ecf5000000008, op = CAIRO_OPERATOR_DEST_IN, source = {x = 229029280, y = 8, width = 1819113504,
    height = 1664775022}, mask = {x = 4, y = 43, width = 138, height = 16}, destination = {x = 0, y = 0, width = 266473700, height = 8},
  bounded = {x = 1, y = 8, width = 0, height = 0}, unbounded = {x = 0, y = 1024, width = 11008, height = 36352}, is_bounded = 15104,
  source_sample_area = {x = 792279353, y = 841953840, width = 1685204274, height = 4}, mask_sample_area = {x = 43, y = 138, width = 16,
    height = 0}, source_pattern = {base = {ref_count = {ref_count = 0}, status = 266473780, user_data = {size = 8, num_elements = 1,
        element_size = 1999533943, elements = 0x0}, observers = {next = 0x2b0000000400, prev = 0x3b0000008e00}, type = 8,
      filter = 2004317999, extend = 775124782, has_component_alpha = 4, matrix = {xx = 2.928354191744524e-312,
        yx = 7.9050503334599447e-323, xy = 3.6369182466700519e-232, yy = 2.1219957949177975e-314, x0 = 9.9026466664716995e-315, y0 = 0},
      opacity = 2.3358929667451641e-310}, solid = {base = {ref_count = {ref_count = 0}, status = 266473780, user_data = {size = 8,
          num_elements = 1, element_size = 1999533943, elements = 0x0}, observers = {next = 0x2b0000000400, prev = 0x3b0000008e00},
        type = 8, filter = 2004317999, extend = 775124782, has_component_alpha = 4, matrix = {xx = 2.928354191744524e-312,
          yx = 7.9050503334599447e-323, xy = 3.6369182466700519e-232, yy = 2.1219957949177975e-314, x0 = 9.9026466664716995e-315, y0 = 0},
        opacity = 2.3358929667451641e-310}, color = {red = 3.2050624444699747e-310, green = 6.2206766098922697e+175,
        blue = 8.6316944621529911e-315, alpha = 3.0981138550019832e-312, red_short = 24, green_short = 0, blue_short = 0,
        alpha_short = 0}}, surface = {base = {ref_count = {ref_count = 0}, status = 266473780, user_data = {size = 8, num_elements = 1,
          element_size = 1999533943, elements = 0x0}, observers = {next = 0x2b0000000400, prev = 0x3b0000008e00}, type = 8,
        filter = 2004317999, extend = 775124782, has_component_alpha = 4, matrix = {xx = 2.928354191744524e-312,
          yx = 7.9050503334599447e-323, xy = 3.6369182466700519e-232, yy = 2.1219957949177975e-314, x0 = 9.9026466664716995e-315, y0 = 0},
        opacity = 2.3358929667451641e-310}, surface = 0x3b0000008e00}, gradient = {base = {base = {ref_count = {ref_count = 0},
          status = 266473780, user_data = {size = 8, num_elements = 1, element_size = 1999533943, elements = 0x0}, observers = {
            next = 0x2b0000000400, prev = 0x3b0000008e00}, type = 8, filter = 2004317999, extend = 775124782, has_component_alpha = 4,
          matrix = {xx = 2.928354191744524e-312, yx = 7.9050503334599447e-323, xy = 3.6369182466700519e-232, yy = 2.1219957949177975e-314,
            x0 = 9.9026466664716995e-315, y0 = 0}, opacity = 2.3358929667451641e-310}, n_stops = 36352, stops_size = 15104,
---Type <return> to continue, or q <return> to quit---
        stops = 0x646f706900000008, stops_embedded = {{offset = 8.6316944621529911e-315, color = {red = 3.0981138550019832e-312,
              green = 1.1857575500189917e-322, blue = 3.6371639569960405e-232, alpha = 2.1219957949177975e-314, red_short = 25711,
              green_short = 28777, blue_short = 0, alpha_short = 0}}, {offset = 0, color = {red = 2.1186005976997279e-310,
              green = 3.4223548135154109e-310, blue = 3.4841002252552385e-81, alpha = 9.9026466664716995e-315, red_short = 39,
              green_short = 0, blue_short = 146, alpha_short = 0}}}}, linear = {base = {base = {ref_count = {ref_count = 0},
            status = 266473780, user_data = {size = 8, num_elements = 1, element_size = 1999533943, elements = 0x0}, observers = {
              next = 0x2b0000000400, prev = 0x3b0000008e00}, type = 8, filter = 2004317999, extend = 775124782, has_component_alpha = 4,
            matrix = {xx = 2.928354191744524e-312, yx = 7.9050503334599447e-323, xy = 3.6369182466700519e-232,
              yy = 2.1219957949177975e-314, x0 = 9.9026466664716995e-315, y0 = 0}, opacity = 2.3358929667451641e-310}, n_stops = 36352,
          stops_size = 15104, stops = 0x646f706900000008, stops_embedded = {{offset = 8.6316944621529911e-315, color = {
                red = 3.0981138550019832e-312, green = 1.1857575500189917e-322, blue = 3.6371639569960405e-232,
                alpha = 2.1219957949177975e-314, red_short = 25711, green_short = 28777, blue_short = 0, alpha_short = 0}}, {offset = 0,
              color = {red = 2.1186005976997279e-310, green = 3.4223548135154109e-310, blue = 3.4841002252552385e-81,
                alpha = 9.9026466664716995e-315, red_short = 39, green_short = 0, blue_short = 146, alpha_short = 0}}}}, pd1 = {
          x = 1.1857575500189917e-322, y = 3.6374096673220292e-232}, pd2 = {x = 2.1219957949177975e-314, y = 3.9525251667299724e-323}},
      radial = {base = {base = {ref_count = {ref_count = 0}, status = 266473780, user_data = {size = 8, num_elements = 1,
              element_size = 1999533943, elements = 0x0}, observers = {next = 0x2b0000000400, prev = 0x3b0000008e00}, type = 8,
            filter = 2004317999, extend = 775124782, has_component_alpha = 4, matrix = {xx = 2.928354191744524e-312,
              yx = 7.9050503334599447e-323, xy = 3.6369182466700519e-232, yy = 2.1219957949177975e-314, x0 = 9.9026466664716995e-315,
              y0 = 0}, opacity = 2.3358929667451641e-310}, n_stops = 36352, stops_size = 15104, stops = 0x646f706900000008,
          stops_embedded = {{offset = 8.6316944621529911e-315, color = {red = 3.0981138550019832e-312, green = 1.1857575500189917e-322,
                blue = 3.6371639569960405e-232, alpha = 2.1219957949177975e-314, red_short = 25711, green_short = 28777, blue_short = 0,
                alpha_short = 0}}, {offset = 0, color = {red = 2.1186005976997279e-310, green = 3.4223548135154109e-310,
                blue = 3.4841002252552385e-81, alpha = 9.9026466664716995e-315, red_short = 39, green_short = 0, blue_short = 146,
                alpha_short = 0}}}}, cd1 = {center = {x = 1.1857575500189917e-322, y = 3.6374096673220292e-232},
          radius = 2.1219957949177975e-314}, cd2 = {center = {x = 3.9525251667299724e-323, y = 0}, radius = 2.1186005976997279e-310}}},
    mesh = {base = {ref_count = {ref_count = 0}, status = 266473780, user_data = {size = 8, num_elements = 1, element_size = 1999533943,
          elements = 0x0}, observers = {next = 0x2b0000000400, prev = 0x3b0000008e00}, type = 8, filter = 2004317999, extend = 775124782,
        has_component_alpha = 4, matrix = {xx = 2.928354191744524e-312, yx = 7.9050503334599447e-323, xy = 3.6369182466700519e-232,
          yy = 2.1219957949177975e-314, x0 = 9.9026466664716995e-315, y0 = 0}, opacity = 2.3358929667451641e-310}, patches = {
        size = 36352, num_elements = 15104, element_size = 8, elements = 0x68223d69 <Error reading address 0x68223d69: Bad address>},
      current_patch = 0x9200000027, current_side = 24, has_control_point = {0, 0, 266473940, 8}, has_color = {1, 1885955183, 0, 0}},
    raster_source = {base = {ref_count = {ref_count = 0}, status = 266473780, user_data = {size = 8, num_elements = 1,
          element_size = 1999533943, elements = 0x0}, observers = {next = 0x2b0000000400, prev = 0x3b0000008e00}, type = 8,
---Type <return> to continue, or q <return> to quit---
        filter = 2004317999, extend = 775124782, has_component_alpha = 4, matrix = {xx = 2.928354191744524e-312,
          yx = 7.9050503334599447e-323, xy = 3.6369182466700519e-232, yy = 2.1219957949177975e-314, x0 = 9.9026466664716995e-315, y0 = 0},
        opacity = 2.3358929667451641e-310}, content = 36352, extents = {x = 15104, y = 8, width = 1685024873, height = 1747074409},
      acquire = 0x9200000027, release = 0x18, snapshot = 0xfe211d400000000, copy = 0x100000008, finish = 0x7069646f, user_data = 0x0}},
  mask_pattern = {base = {ref_count = {ref_count = 37376}, status = 16128, user_data = {size = 1931623780, num_elements = 573728630,
        element_size = 538976288, elements = 0x9200000027 <Error reading address 0x9200000027: Bad address>}, observers = {next = 0x18,
        prev = 0xfe2127400000000}, type = 8, filter = CAIRO_FILTER_GOOD, extend = 1936876918, has_component_alpha = 0, matrix = {xx = 0,
        yx = 2.1186005976997279e-310, xy = 3.4223548135154109e-310, yy = 6.782690354505538e-154, x0 = 9.5428049067585958e-315,
        y0 = 3.6073928448336485e-312}, opacity = 1.1857575500189917e-322}, solid = {base = {ref_count = {ref_count = 37376},
        status = 16128, user_data = {size = 1931623780, num_elements = 573728630, element_size = 538976288,
          elements = 0x9200000027 <Error reading address 0x9200000027: Bad address>}, observers = {next = 0x18, prev = 0xfe2127400000000},
        type = 8, filter = CAIRO_FILTER_GOOD, extend = 1936876918, has_component_alpha = 0, matrix = {xx = 0,
          yx = 2.1186005976997279e-310, xy = 3.4223548135154109e-310, yy = 6.782690354505538e-154, x0 = 9.5428049067585958e-315,
          y0 = 3.6073928448336485e-312}, opacity = 1.1857575500189917e-322}, color = {red = 3.6379010879740065e-232,
        green = 2.1219957949177975e-314, blue = 9.151989336736763e-315, alpha = 0, red_short = 0, green_short = 0, blue_short = 9984,
        alpha_short = 0}}, surface = {base = {ref_count = {ref_count = 37376}, status = 16128, user_data = {size = 1931623780,
          num_elements = 573728630, element_size = 538976288, elements = 0x9200000027 <Error reading address 0x9200000027: Bad address>},
        observers = {next = 0x18, prev = 0xfe2127400000000}, type = 8, filter = CAIRO_FILTER_GOOD, extend = 1936876918,
        has_component_alpha = 0, matrix = {xx = 0, yx = 2.1186005976997279e-310, xy = 3.4223548135154109e-310,
          yy = 6.782690354505538e-154, x0 = 9.5428049067585958e-315, y0 = 3.6073928448336485e-312}, opacity = 1.1857575500189917e-322},
      surface = 0xfe212c400000000}, gradient = {base = {base = {ref_count = {ref_count = 37376}, status = 16128, user_data = {
            size = 1931623780, num_elements = 573728630, element_size = 538976288,
            elements = 0x9200000027 <Error reading address 0x9200000027: Bad address>}, observers = {next = 0x18,
            prev = 0xfe2127400000000}, type = 8, filter = CAIRO_FILTER_GOOD, extend = 1936876918, has_component_alpha = 0, matrix = {
            xx = 0, yx = 2.1186005976997279e-310, xy = 3.4223548135154109e-310, yy = 6.782690354505538e-154, x0 = 9.5428049067585958e-315,
            y0 = 3.6073928448336485e-312}, opacity = 1.1857575500189917e-322}, n_stops = 0, stops_size = 266474180, stops = 0x100000008,
        stops_embedded = {{offset = 9.151989336736763e-315, color = {red = 0, green = 2.1186005976997279e-310,
              blue = 3.4223548138189649e-310, alpha = 2.1596735778335133e+233, red_short = 11877, green_short = 30063, blue_short = 752,
              alpha_short = 3461}}, {offset = 3.3397327835517713e-308, color = {red = 0, green = 0, blue = 2.28984522451062e-300,
              alpha = 3.9525251667299724e-323, red_short = 0, green_short = 0, blue_short = 0, alpha_short = 0}}}}, linear = {base = {
          base = {ref_count = {ref_count = 37376}, status = 16128, user_data = {size = 1931623780, num_elements = 573728630,
              element_size = 538976288, elements = 0x9200000027 <Error reading address 0x9200000027: Bad address>}, observers = {
              next = 0x18, prev = 0xfe2127400000000}, type = 8, filter = CAIRO_FILTER_GOOD, extend = 1936876918, has_component_alpha = 0,
            matrix = {xx = 0, yx = 2.1186005976997279e-310, xy = 3.4223548135154109e-310, yy = 6.782690354505538e-154,
---Type <return> to continue, or q <return> to quit---
              x0 = 9.5428049067585958e-315, y0 = 3.6073928448336485e-312}, opacity = 1.1857575500189917e-322}, n_stops = 0,
          stops_size = 266474180, stops = 0x100000008, stops_embedded = {{offset = 9.151989336736763e-315, color = {red = 0,
                green = 2.1186005976997279e-310, blue = 3.4223548138189649e-310, alpha = 2.1596735778335133e+233, red_short = 11877,
                green_short = 30063, blue_short = 752, alpha_short = 3461}}, {offset = 3.3397327835517713e-308, color = {red = 0,
                green = 0, blue = 2.28984522451062e-300, alpha = 3.9525251667299724e-323, red_short = 0, green_short = 0, blue_short = 0,
                alpha_short = 0}}}}, pd1 = {x = 0, y = 1.1883176429405525e-312}, pd2 = {x = 2.2901414263426645e-300,
          y = 1.5386153089320643e-243}}, radial = {base = {base = {ref_count = {ref_count = 37376}, status = 16128, user_data = {
              size = 1931623780, num_elements = 573728630, element_size = 538976288,
              elements = 0x9200000027 <Error reading address 0x9200000027: Bad address>}, observers = {next = 0x18,
              prev = 0xfe2127400000000}, type = 8, filter = CAIRO_FILTER_GOOD, extend = 1936876918, has_component_alpha = 0, matrix = {
              xx = 0, yx = 2.1186005976997279e-310, xy = 3.4223548135154109e-310, yy = 6.782690354505538e-154,
              x0 = 9.5428049067585958e-315, y0 = 3.6073928448336485e-312}, opacity = 1.1857575500189917e-322}, n_stops = 0,
          stops_size = 266474180, stops = 0x100000008, stops_embedded = {{offset = 9.151989336736763e-315, color = {red = 0,
                green = 2.1186005976997279e-310, blue = 3.4223548138189649e-310, alpha = 2.1596735778335133e+233, red_short = 11877,
                green_short = 30063, blue_short = 752, alpha_short = 3461}}, {offset = 3.3397327835517713e-308, color = {red = 0,
                green = 0, blue = 2.28984522451062e-300, alpha = 3.9525251667299724e-323, red_short = 0, green_short = 0, blue_short = 0,
                alpha_short = 0}}}}, cd1 = {center = {x = 0, y = 1.1883176429405525e-312}, radius = 2.2901414263426645e-300}, cd2 = {
          center = {x = 1.5386153089320643e-243, y = 3.3396648796864604e-308}, radius = 0}}}, mesh = {base = {ref_count = {
          ref_count = 37376}, status = 16128, user_data = {size = 1931623780, num_elements = 573728630, element_size = 538976288,
          elements = 0x9200000027 <Error reading address 0x9200000027: Bad address>}, observers = {next = 0x18, prev = 0xfe2127400000000},
        type = 8, filter = CAIRO_FILTER_GOOD, extend = 1936876918, has_component_alpha = 0, matrix = {xx = 0,
          yx = 2.1186005976997279e-310, xy = 3.4223548135154109e-310, yy = 6.782690354505538e-154, x0 = 9.5428049067585958e-315,
          y0 = 3.6073928448336485e-312}, opacity = 1.1857575500189917e-322}, patches = {size = 0, num_elements = 266474180,
        element_size = 8, elements = 0x6e692020 <Error reading address 0x6e692020: Bad address>}, current_patch = 0x0, current_side = 0,
      has_control_point = {9984, 43520, 16128, 8}, has_color = {1885430643, 1970220645, 226820848, 8}}, raster_source = {base = {
        ref_count = {ref_count = 37376}, status = 16128, user_data = {size = 1931623780, num_elements = 573728630,
          element_size = 538976288, elements = 0x9200000027 <Error reading address 0x9200000027: Bad address>}, observers = {next = 0x18,
          prev = 0xfe2127400000000}, type = 8, filter = CAIRO_FILTER_GOOD, extend = 1936876918, has_component_alpha = 0, matrix = {xx = 0,
          yx = 2.1186005976997279e-310, xy = 3.4223548135154109e-310, yy = 6.782690354505538e-154, x0 = 9.5428049067585958e-315,
          y0 = 3.6073928448336485e-312}, opacity = 1.1857575500189917e-322}, content = 0, extents = {x = 266474180, y = 8, width = 1,
        height = 1852383264}, acquire = 0, release = 0x270000000000, snapshot = 0x3f000000aa00, copy = 0x7061637300000008,
      finish = 0xd8502f0756f2e65, user_data = 0x1803e800000008}}, original_source_pattern = 0x0,
  original_mask_pattern = 0x1cbcf0000000000, clip = 0x8}
        status = <value optimized out>
---Type <return> to continue, or q <return> to quit---
#5  0x0000000802e8e7c9 in _cairo_xlib_surface_glyphs (_surface=<value optimized out>, op=<value optimized out>,
    source=<value optimized out>, glyphs=<value optimized out>, num_glyphs=<value optimized out>, scaled_font=<value optimized out>,
    clip=<value optimized out>) at cairo-xlib-surface.c:1669
        surface = <value optimized out>
        compositor = <value optimized out>
        status = <value optimized out>
#6  0x0000000802e5cac4 in _cairo_surface_show_text_glyphs (surface=<value optimized out>, op=CAIRO_OPERATOR_OVER, source=0x7fffffff9728,
    utf8=<value optimized out>, utf8_len=<value optimized out>, glyphs=0x7fffffffa040, num_glyphs=<value optimized out>,
    clusters=<value optimized out>, scaled_font=<value optimized out>) at cairo-surface.c:2548
        num_clusters = Error accessing memory address 0x0: Bad address.
(gdb)
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-01-26 15:22:34 UTC
Auto-assigned to maintainer gnome@FreeBSD.org
Comment 2 Poul-Henning Kamp freebsd_committer freebsd_triage 2015-02-07 14:27:03 UTC
Just to chime in:

I'm seeing this too after updating to -current.

It did not happen on my previous build (r275575: Sun Dec  7 11:08:11 UTC 2014)
Comment 3 Poul-Henning Kamp freebsd_committer freebsd_triage 2015-02-07 14:30:03 UTC
If I run the evince binary from my previous build against the userland of -current as of yesterday, the old evince binary also core-dumps.

That would seem to indicate that this bug is not in evince but rather some supporting library.

This message may be relevant:

  (evince:19793): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -40 and height 15
Comment 4 Ivan Klymenko 2015-02-07 14:37:47 UTC
(In reply to Poul-Henning Kamp from comment #3)

Yes, most likely it is a problem when cairo working with the font cache.
Comment 5 Chris Hutchinson 2015-03-10 15:16:17 UTC
(In reply to Ivan Klymenko from comment #4)
> (In reply to Poul-Henning Kamp from comment #3)
> 
> Yes, most likely it is a problem when cairo working with the font cache.

I'm also experiencing a core dump with evince, on CURRENT
(FreeBSD 11.0-CURRENT #1 r279289)
ports @ r379933
evince-3.14.1_2

I ran gdb(1) against the core file:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198372

Thanks, for your time, and consideration.

--Chris
Comment 6 Poul-Henning Kamp freebsd_committer freebsd_triage 2015-03-30 07:06:07 UTC
This seems to be fixed for me now.

FreeBSD 11.0-CURRENT #17 r280783: Sat Mar 28 15:50:40 UTC 2015
Comment 7 Matthias Apitz 2015-12-03 19:43:10 UTC
Please re-open the bug again; you can reproduce it with the file
http://www.unixarea.de/x.pdf
on:

$ uname -a
FreeBSD c720-r285885-amd64 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r285885M: Mon Aug  3 16:29:52 CEST 2015     root@poudriere-amd64:/usr/local/r285885/obj/usr/local/r285885/src/sys/GENERIC  amd64
$ pkg info | fgrep evince
evince-3.14.2_1                GNOME 3 multi-format document viewer
$ evince x.pdf
^C  (here it hung)

$ evince x.pdf
Bus error