Bug 2897 - gtk crash when stopping a debug session
Summary: gtk crash when stopping a debug session
Status: RESOLVED DUPLICATE of bug 2559
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: 2.8.6
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-01-13 16:49 UTC by Jeffrey Stedfast
Modified: 2012-01-16 15:31 UTC (History)
2 users (show)

Tags: gtk
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 2559

Description Jeffrey Stedfast 2012-01-13 16:49:17 UTC
Added a function breakpoint on program Main(), ran the program under the debugger, and then hit the "Stop Debugging" button in the toolbar after the breakpoint was hit.

The following crash looks maybe like a gtk bug? Michael and I can't make sense of it other than it looks like gdk is trying to union invalid areas?


**
Gdk:ERROR:gdkregion-generic.c:1114:miUnionNonO: assertion failed: (r->x1 < r->x2)

Program received signal SIGABRT, Aborted.
0x96b94c5a in __kill ()
(gdb) bt
#0  0x96b94c5a in __kill ()
#1  0x96b94c4c in kill$UNIX2003 ()
#2  0x96c275a5 in raise ()
#3  0x96c3d6e4 in abort ()
#4  0x0407792b in g_assertion_message (domain=0x48cc91c "Gdk", file=0x48cedb0 "gdkregion-generic.c", line=1114, func=0x48ceeb0 "miUnionNonO", message=0x1db50650 "assertion failed: (r->x1 < r->x2)") at gtestutils.c:1358
#5  0x040779fc in g_assertion_message_expr (domain=0x48cc91c "Gdk", file=0x48cedb0 "gdkregion-generic.c", line=1114, func=0x48ceeb0 "miUnionNonO", expr=0x48ceec4 "r->x1 < r->x2") at gtestutils.c:1369
#6  0x04889080 in miUnionNonO (pReg=0x2362fa0, r=0x21811500, rEnd=0x21811510, y1=8, y2=1000) at gdkregion-generic.c:1114
#7  0x04888e50 in miRegionOp (newReg=0x2362fa0, reg1=0x2362fa0, reg2=0x3a0fac0, overlapFn=0x4889210 <miUnionO>, nonOverlap1Fn=0x4888fb0 <miUnionNonO>, nonOverlap2Fn=0x4888fb0 <miUnionNonO>) at gdkregion-generic.c:1021
#8  0x04889d33 in gdk_region_union (source1=0x2362fa0, source2=0x3a0fac0) at gdkregion-generic.c:1266
#9  0x048a03a2 in impl_window_add_update_area (impl_window=0x885f00, region=0x3a0fac0) at gdkwindow.c:5869
#10 0x048a077b in gdk_window_invalidate_maybe_recurse_full (window=0x3891828, region=0x1e807820, clear_bg=CLEAR_BG_NONE, child_func=0, user_data=0x0) at gdkwindow.c:5980
#11 0x048a087e in gdk_window_invalidate_region_full (window=0x3891828, region=0x1e807820, invalidate_children=0, clear_bg=CLEAR_BG_NONE) at gdkwindow.c:6035
#12 0x048a0232 in gdk_window_invalidate_rect_full (window=0x3891828, rect=0xc31b5c, invalidate_children=0, clear_bg=CLEAR_BG_NONE) at gdkwindow.c:5817
#13 0x048a0289 in gdk_window_invalidate_rect (window=0x3891828, rect=0xc31b5c, invalidate_children=0) at gdkwindow.c:5837
#14 0x044f1c12 in gtk_widget_map (widget=0xc31b38) at gtkwidget.c:3407
#15 0x044f8931 in gtk_widget_set_parent (widget=0xc31b38, parent=0xc3b818) at gtkwidget.c:6433
#16 0x042374b3 in gtk_bin_add (container=0xc3b818, child=0xc31b38) at gtkbin.c:107
#17 0x04246e4b in gtk_button_add (container=0xc3b818, widget=0xc31b38) at gtkbutton.c:641
#18 0x041cb389 in g_cclosure_marshal_VOID__OBJECT (closure=0x67a6b0, return_value=0x0, n_param_values=2, param_values=0x231e250, invocation_hint=0xbfffbc98, marshal_data=0x4246e00) at gmarshal.c:638
#19 0x041ab50e in g_type_class_meta_marshal (closure=0x67a6b0, return_value=0x0, n_param_values=2, param_values=0x231e250, invocation_hint=0xbfffbc98, marshal_data=0x16c) at gclosure.c:878
#20 0x041ab114 in g_closure_invoke (closure=0x67a6b0, return_value=0x0, n_param_values=2, param_values=0x231e250, invocation_hint=0xbfffbc98) at gclosure.c:767
#21 0x041c8fcc in signal_emit_unlocked_R (node=0x67ab60, detail=0, instance=0xc3b818, emission_return=0x0, instance_and_params=0x231e250) at gsignal.c:3182
#22 0x041c829b in g_signal_emit_valist (instance=0xc3b818, signal_id=82, detail=0, var_args=0xbfffbfa0 "Py?") at gsignal.c:2983
#23 0x041c8761 in g_signal_emit (instance=0xc3b818, signal_id=82, detail=0) at gsignal.c:3040
#24 0x04287ec0 in gtk_container_add (container=0xc3b818, widget=0xc31b38) at gtkcontainer.c:1208
#25 0x0447a36e in gtk_tool_button_construct_contents (tool_item=0xc2eb60) at gtktoolbutton.c:497
#26 0x0447a7e1 in gtk_tool_button_property_notify (object=0xc2eb60, pspec=0xbe8b90) at gtktoolbutton.c:589
#27 0x041cb089 in g_cclosure_marshal_VOID__PARAM (closure=0x15600b70, return_value=0x0, n_param_values=2, param_values=0x232bf90, invocation_hint=0xbfffc328, marshal_data=0x447a780) at gmarshal.c:533
#28 0x041ab50e in g_type_class_meta_marshal (closure=0x15600b70, return_value=0x0, n_param_values=2, param_values=0x232bf90, invocation_hint=0xbfffc328, marshal_data=0x20) at gclosure.c:878
#29 0x041ab114 in g_closure_invoke (closure=0x15600b70, return_value=0x0, n_param_values=2, param_values=0x232bf90, invocation_hint=0xbfffc328) at gclosure.c:767
#30 0x041c8fcc in signal_emit_unlocked_R (node=0x15600bc0, detail=538, instance=0xc2eb60, emission_return=0x0, instance_and_params=0x232bf90) at gsignal.c:3182
#31 0x041c829b in g_signal_emit_valist (instance=0xc2eb60, signal_id=1, detail=538, var_args=0xbfffc630 "") at gsignal.c:2983
#32 0x041c8761 in g_signal_emit (instance=0xc2eb60, signal_id=1, detail=538) at gsignal.c:3040
#33 0x041ae4fe in g_object_dispatch_properties_changed (object=0xc2eb60, n_pspecs=1, pspecs=0xbfffc6d4) at gobject.c:925
#34 0x041acd47 in g_object_notify_dispatcher (object=0xc2eb60, n_pspecs=1, pspecs=0xbfffc6d4) at gobject.c:330
#35 0x041aef00 in g_object_notify_queue_thaw (object=0xc2eb60, nqueue=0x236dc50) at gobjectnotifyqueue.c:132
#36 0x041ae90b in g_object_notify_by_spec_internal (object=0xc2eb60, pspec=0xbe8b90) at gobject.c:983
#37 0x041ae899 in g_object_notify (object=0xc2eb60, property_name=0x45ae0a0 "label") at gobject.c:1024
#38 0x0447b77a in gtk_tool_button_set_label (button=0xc2eb60, label=0x1db749b0 "_Run") at gtktoolbutton.c:997
#39 0x1b589ba4 in ?? ()
#40 0x1b589b54 in ?? ()
#41 0x1b5892fc in ?? ()
#42 0x1b58887c in ?? ()
#43 0x1b5876e3 in ?? ()
#44 0x1c5b64ac in ?? ()
#45 0x1dae9488 in ?? ()
#46 0x1dff02f8 in ?? ()
#47 0x1dff027a in ?? ()
#48 0x1b588388 in ?? ()
#49 0x041ca38f in g_cclosure_marshal_VOID__VOID (closure=0x5e9c40, return_value=0x0, n_param_values=1, param_values=0x3a38850, invocation_hint=0xbfffcd48, marshal_data=0x1b588358) at gmarshal.c:79
#50 0x041ab50e in g_type_class_meta_marshal (closure=0x5e9c40, return_value=0x0, n_param_values=1, param_values=0x3a38850, invocation_hint=0xbfffcd48, marshal_data=0x1c0) at gclosure.c:878
#51 0x041ab114 in g_closure_invoke (closure=0x5e9c40, return_value=0x0, n_param_values=1, param_values=0x3a38850, invocation_hint=0xbfffcd48) at gclosure.c:767
#52 0x041c8fcc in signal_emit_unlocked_R (node=0x189721f0, detail=0, instance=0xc2ec80, emission_return=0x0, instance_and_params=0x3a38850) at gsignal.c:3182
#53 0x041c829b in g_signal_emit_valist (instance=0xc2ec80, signal_id=119, detail=0, var_args=0xbfffd078 "\b??") at gsignal.c:2983
#54 0x041c8943 in g_signal_emit_by_name (instance=0xc2ec80, detailed_signal=0x45c1e30 "clicked") at gsignal.c:3077
#55 0x0447af75 in button_clicked (widget=0xc3b908, button=0xc2ec80) at gtktoolbutton.c:773
#56 0x041ca38f in g_cclosure_marshal_VOID__VOID (closure=0x189a0df0, return_value=0x0, n_param_values=1, param_values=0x1e0fbe68, invocation_hint=0xbfffd278, marshal_data=0x0) at gmarshal.c:79
#57 0x041ab114 in g_closure_invoke (closure=0x189a0df0, return_value=0x0, n_param_values=1, param_values=0x1e0fbe68, invocation_hint=0xbfffd278) at gclosure.c:767
#58 0x041c953f in signal_emit_unlocked_R (node=0x189779c0, detail=0, instance=0xc3b908, emission_return=0x0, instance_and_params=0x1e0fbe68) at gsignal.c:3252
#59 0x041c829b in g_signal_emit_valist (instance=0xc3b908, signal_id=111, detail=0, var_args=0xbfffd57c "̃$\004\001") at gsignal.c:2983
#60 0x041c8761 in g_signal_emit (instance=0xc3b908, signal_id=111, detail=0) at gsignal.c:3040
#61 0x0424847f in gtk_button_clicked (button=0xc3b908) at gtkbutton.c:1128
#62 0x04249cf7 in gtk_real_button_released (button=0xc3b908) at gtkbutton.c:1725
#63 0x041ca38f in g_cclosure_marshal_VOID__VOID (closure=0x18977810, return_value=0x0, n_param_values=1, param_values=0x20e9a90, invocation_hint=0xbfffd7e8, marshal_data=0x4249ca0) at gmarshal.c:79
#64 0x041ab50e in g_type_class_meta_marshal (closure=0x18977810, return_value=0x0, n_param_values=1, param_values=0x20e9a90, invocation_hint=0xbfffd7e8, marshal_data=0x1a4) at gclosure.c:878
#65 0x041ab114 in g_closure_invoke (closure=0x18977810, return_value=0x0, n_param_values=1, param_values=0x20e9a90, invocation_hint=0xbfffd7e8) at gclosure.c:767
#66 0x041c8fcc in signal_emit_unlocked_R (node=0x18977960, detail=0, instance=0xc3b908, emission_return=0x0, instance_and_params=0x20e9a90) at gsignal.c:3182
#67 0x041c829b in g_signal_emit_valist (instance=0xc3b908, signal_id=110, detail=0, var_args=0xbfffdaec "??$\004\001") at gsignal.c:2983
#68 0x041c8761 in g_signal_emit (instance=0xc3b908, signal_id=110, detail=0) at gsignal.c:3040
#69 0x042483af in gtk_button_released (button=0xc3b908) at gtkbutton.c:1120
#70 0x042499ee in gtk_button_button_release (widget=0xc3b908, event=0x21bca00) at gtkbutton.c:1617
#71 0x0434877e in _gtk_marshal_BOOLEAN__BOXED (closure=0x678b50, return_value=0xbfffdd48, n_param_values=2, param_values=0x22afb18, invocation_hint=0xbfffdd78, marshal_data=0x42499c0) at gtkmarshalers.c:86
#72 0x041ab50e in g_type_class_meta_marshal (closure=0x678b50, return_value=0xbfffdd48, n_param_values=2, param_values=0x22afb18, invocation_hint=0xbfffdd78, marshal_data=0xb4) at gclosure.c:878
#73 0x041ab114 in g_closure_invoke (closure=0x678b50, return_value=0xbfffdd48, n_param_values=2, param_values=0x22afb18, invocation_hint=0xbfffdd78) at gclosure.c:767
#74 0x041c97ef in signal_emit_unlocked_R (node=0x678c10, detail=0, instance=0xc3b908, emission_return=0xbfffdf20, instance_and_params=0x22afb18) at gsignal.c:3290
#75 0x041c8341 in g_signal_emit_valist (instance=0xc3b908, signal_id=36, detail=0, var_args=0xbfffe080 "????\b") at gsignal.c:2993
#76 0x041c8761 in g_signal_emit (instance=0xc3b908, signal_id=36, detail=0) at gsignal.c:3040
#77 0x044f5149 in gtk_widget_event_internal (widget=0xc3b908, event=0x21bca00) at gtkwidget.c:4984
#78 0x044f4bdf in gtk_widget_event (widget=0xc3b908, event=0x21bca00) at gtkwidget.c:4781
#79 0x043465ce in gtk_propagate_event (widget=0xc3b908, event=0x21bca00) at gtkmain.c:2489
#80 0x04344b5a in gtk_main_do_event (event=0x21bca00) at gtkmain.c:1684
#81 0x048b8be9 in gdk_event_dispatch (source=0x503d40, callback=0, user_data=0x0) at gdkeventloop-quartz.c:677
#82 0x0404149e in g_main_dispatch (context=0x503da0) at gmain.c:2441
#83 0x04042d2b in g_main_context_dispatch (context=0x503da0) at gmain.c:3014
#84 0x040432d3 in g_main_context_iterate (context=0x503da0, block=1, dispatch=1, self=0x606920) at gmain.c:3092
#85 0x04043c1a in g_main_loop_run (loop=0x6b3c60) at gmain.c:3300
#86 0x04344000 in gtk_main () at gtkmain.c:1256
#87 0x1c5b57a4 in ?? ()
#88 0x1c5b5704 in ?? ()
#89 0x1c5b56e4 in ?? ()
#90 0x03422b88 in ?? ()
#91 0x00741f90 in ?? ()
#92 0x00741d9c in ?? ()
#93 0x00741e56 in ?? ()
#94 0x00010e3f in mono_jit_runtime_invoke (method=0x80001c, obj=0x0, params=0xbfffe838, exc=0x0) at mini.c:5791
#95 0x002215aa in mono_runtime_invoke (method=0x80001c, obj=0x0, params=0xbfffe838, exc=0x0) at object.c:2755
#96 0x0022428c in mono_runtime_exec_main (method=0x80001c, args=0x4f5e00, exc=0x0) at object.c:3930
#97 0x002234f1 in mono_runtime_run_main (method=0x80001c, argc=0, argv=0xbfffeb48, exc=0x0) at object.c:3560
#98 0x000ac9df in mono_jit_exec (domain=0x4eee00, assembly=0x506680, argc=1, argv=0xbfffeb44) at driver.c:944
#99 0x000acc30 in main_thread_handler (user_data=0xbfffea68) at driver.c:1003
#100 0x000af088 in mono_main (argc=3, argv=0xbfffeb3c) at driver.c:1855
#101 0x00002434 in mono_main_with_options (argc=3, argv=0xbfffeb3c) at main.c:66
#102 0x000024c8 in main (argc=3, argv=0xbfffeb3c) at main.c:97
(gdb)
Comment 1 Jeffrey Stedfast 2012-01-13 16:52:03 UTC
Forgot to mention that I had the Debug pad open, display the BreakpointPad.

Does not seem to be reproducible.
Comment 2 Miguel de Icaza [MSFT] 2012-01-16 15:23:46 UTC
Actually, we have a few instances of the same problem:

#2905
#2749
#2559

Since there is more information on 2559, I am going to flag this as duplicate, but it does not seem to happen with 2.8.4, so this was a regression

*** This bug has been marked as a duplicate of bug 2559 ***
Comment 3 Mikayla Hutchinson [MSFT] 2012-01-16 15:31:03 UTC
I'm not convinced they are the same bug. They all crash in the same code, but the circumstances are different. For example, two are clear cases of hitting GTK from a background thread.