On 9/4/11 02:12, Krzysztof Kosiński wrote:
W dniu 9 kwietnia 2011 01:56 użytkownik ~suv <suv-sf@...58...> napisał:
#0 0x02fbadfc in cairo_pattern_destroy () #1 0x0027edc7 in NRStyle::update () at display/nr-style.cpp:201 #2 0x0027edc7 in NRStyle::set (this=0xf0f0f0f0, style=0x6887b70) at display/nr-style.cpp:140
0xf0f0f0f0 for "this" is obviously wrong, the stack is getting corrupted for some reason.
#3 0x00258941 in nr_arena_shape_set_style (shape=0x643ce00, style=0x6887b70) at display/nr-arena-shape.cpp:543
The "style" pointer looks correct here, so something went awry in nr_arena_shape_set_style. At the moment I have no idea what is going on.
Can you try compiling without optimization (-O0), or adding "g_return_if_fail(style != NULL);" at the top of nr_arena_shape_set_style()?
Same error after 'make clean' and rebuilding with '-O0'.
~suv
Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0xf0f0f0f4 0x03c77dfc in cairo_pattern_destroy () (gdb) bt #0 0x03c77dfc in cairo_pattern_destroy () #1 0x002e5e94 in NRStyle::update (this=0x713eec4) at display/nr-style.cpp:201 #2 0x002e6974 in NRStyle::set (this=0x713eec4, style=0x7587aa0) at display/nr-style.cpp:140 #3 0x002c0afb in nr_arena_shape_set_style (shape=0x713ee00, style=0x7587aa0) at display/nr-arena-shape.cpp:544 #4 0x001e00b3 in SPShape::sp_shape_show (item=0x72ada20, arena=0x5c83f80) at sp-shape.cpp:859 #5 0x0019f405 in SPItem::invoke_show (this=0x72ada20, arena=0x5c83f80, key=1, flags=1) at sp-item.cpp:1045 #6 0x001a64ff in CGroup::_showChildren (this=0x7587a00, arena=0x5c83f80, ai=0x5c85a00, key=1, flags=1) at sp-item-group.cpp:770 #7 0x001a667c in CGroup::show (this=0x7587a00, arena=0x5c83f80, key=1, flags=1) at sp-item-group.cpp:757 #8 0x001a89e7 in sp_group_show (item=0x72b0140, arena=0x5c83f80, key=1, flags=1) at sp-item-group.cpp:319 #9 0x0019f405 in SPItem::invoke_show (this=0x72b0140, arena=0x5c83f80, key=1, flags=1) at sp-item.cpp:1045 #10 0x001fa33a in sp_use_show (item=0x42c31a8, arena=0x5c83f80, key=1, flags=1) at sp-use.cpp:359 #11 0x0019f405 in SPItem::invoke_show (this=0x42c31a8, arena=0x5c83f80, key=1, flags=1) at sp-item.cpp:1045 #12 0x001a64ff in CGroup::_showChildren (this=0x6f00740, arena=0x5c83f80, ai=0x5c85c00, key=1, flags=1) at sp-item-group.cpp:770 #13 0x001a667c in CGroup::show (this=0x6f00740, arena=0x5c83f80, key=1, flags=1) at sp-item-group.cpp:757 #14 0x001a89e7 in sp_group_show (item=0x42e1218, arena=0x5c83f80, key=1, flags=1) at sp-item-group.cpp:319 #15 0x001db39a in sp_root_show (item=0x42e1218, arena=0x5c83f80, key=1, flags=1) at sp-root.cpp:622 #16 0x0019f405 in SPItem::invoke_show (this=0x42e1218, arena=0x5c83f80, key=1, flags=1) at sp-item.cpp:1045 #17 0x004d5ea8 in IconImpl::load_svg_pixels (names=@0xbfffeb94, psize=16, stride=@0xbfffeb90) at widgets/icon.cpp:1296 #18 0x004d8c51 in IconImpl::prerenderIcon (name=0x69b42cc "edit-select-all-layers", lsize=GTK_ICON_SIZE_SMALL_TOOLBAR, psize=16) at widgets/icon.cpp:1430 #19 0x004da3ca in Inkscape::queueIconPrerender (name=@0xbfffed00, lsize=Inkscape::ICON_SIZE_SMALL_TOOLBAR) at widgets/icon.cpp:1339 #20 0x004e714a in create_action_for_verb (verb=0x430f840, view=0x5c80d80, size=Inkscape::ICON_SIZE_SMALL_TOOLBAR) at widgets/select-toolbar.cpp:387 #21 0x004e8d61 in sp_select_toolbox_prep (desktop=0x5c80d80, mainActions=0x6bf63f8, holder=0x42f50a8) at widgets/select-toolbar.cpp:405 #22 0x00533e7a in setup_aux_toolbox (toolbox=0x5d3b328, desktop=0x5c80d80) at widgets/toolbox.cpp:1901 #23 0x0051edc3 in Inkscape::UI::ToolboxFactory::setToolboxDesktop (toolbox=0x5d3b328, desktop=0x5c80d80) at widgets/toolbox.cpp:1667 #24 0x0056316f in Inkscape::UI::UXManagerImpl::connectToDesktop (this=0x690e030, toolboxes=@0xbffff054, desktop=0x5c80d80) at ui/uxmanager.cpp:230 #25 0x004b1355 in SPDesktopWidget::createInstance (namedview=0x42cc7f0) at widgets/desktop-widget.cpp:1476 #26 0x004b13a3 in sp_desktop_widget_new (namedview=0x42cc7f0) at widgets/desktop-widget.cpp:1425 #27 0x0009237b in sp_file_new (templ=@0xbffff19c) at file.cpp:125 #28 0x000926be in sp_file_new_default () at file.cpp:177 #29 0x00008071 in sp_main_gui (argc=1, argv=0xbffff2d0) at main.cpp:982 #30 0x000088f0 in main (argc=1, argv=0xbffff2d0) at main.cpp:717 (gdb)