Bug 31 - Lion/Master: NGit crashes MonoDevelop/master
Summary: Lion/Master: NGit crashes MonoDevelop/master
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: unspecified
Hardware: PC Mac OS
: --- blocker
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-07-20 18:57 UTC by Miguel de Icaza [MSFT]
Modified: 2011-07-21 05:52 UTC (History)
2 users (show)

Tags:
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 FIXED

Description Miguel de Icaza [MSFT] 2011-07-20 18:57:03 UTC
This is the stack trace from Hutch:

(gdb) mono_backtrace 100
#0  0x9833ad4e in read$UNIX2003 ()
#1  0x00267797 in file_read ()
#2  0x00269c26 in ReadFile ()
#3  0x00185ad7 in ves_icall_System_IO_MonoIO_Read ()
#4 0x5fa0a38 in  (wrapper managed-to-native) System.IO.MonoIO:Read (intptr,byte[],int,int,System.IO.MonoIOError&) + 0x38 (0x5fa0a00 0x5fa0a72) [0x4b9e00 - MonoDevelop.exe]
#5 0x5fa0980 in  System.IO.FileStream:ReadData (intptr,byte[],int,int) + 0x28 (0x5fa0958 0x5fa09f4) [0x4b9e00 - MonoDevelop.exe]
#6 0x5fa03cc in  System.IO.FileStream:ReadInternal (byte[],int,int) + 0x6c (0x5fa0360 0x5fa0514) [0x4b9e00 - MonoDevelop.exe]
#7 0x5fa0192 in  System.IO.FileStream:Read (byte[],int,int) + 0xc2 (0x5fa00d0 0x5fa031c) [0x4b9e00 - MonoDevelop.exe]
#8 0x11ba08f3 in  Sharpen.InputStream:Read (byte[],int,int) + 0x173 (0x11ba0780 0x11ba0993) [0x4b9e00 - MonoDevelop.exe]
#9 0x11bb3791 in  NGit.Util.IOUtil:ReadSome (Sharpen.FilePath,int) + 0x61 (0x11bb3730 0x11bb3847) [0x4b9e00 - MonoDevelop.exe]
#10 0x11bb2f42 in  NGit.Storage.File.RefDirectory:ScanRef (NGit.Storage.File.RefDirectory/LooseRef,string) + 0x10a (0x11bb2e38 0x11bb329a) [0x4b9e00 - MonoDevelop.exe]
#11 0x11bb2410 in  NGit.Storage.File.RefDirectory:ReadRef (string,NGit.Util.RefList`1<NGit.Ref>) + 0x200 (0x11bb2210 0x11bb254a) [0x4b9e00 - MonoDevelop.exe]
#12 0x11bab49c in  NGit.Storage.File.RefDirectory:GetRef (string) + 0x5c (0x11bab440 0x11bab4f4) [0x4b9e00 - MonoDevelop.exe]
#13 0x11bab209 in  NGit.Repository:ResolveSimple (string) + 0x49 (0x11bab1c0 0x11bab353) [0x4b9e00 - MonoDevelop.exe]
#14 0x11baaf4e in  NGit.Repository:Resolve (NGit.Revwalk.RevWalk,string) + 0xcb6 (0x11baa298 0x11bab0f2) [0x4b9e00 - MonoDevelop.exe]
#15 0x11baa256 in  NGit.Repository:Resolve (string) + 0x4e (0x11baa208 0x11baa287) [0x4b9e00 - MonoDevelop.exe]
#16 0x11ba9482 in  MonoDevelop.VersionControl.Git.GitRepository:GetHeadCommit () + 0x52 (0x11ba9430 0x11ba94a6) [0x4b9e00 - MonoDevelop.exe]
#17 0x11ba888c in  MonoDevelop.VersionControl.Git.GitRepository:GetDirectoryVersionInfo (MonoDevelop.Core.FilePath,System.Collections.Generic.IEnumerable`1<MonoDevelop.Core.FilePath>,bool,bool) + 0x3ac (0x11ba84e0 0x11ba8be2) [0x4b9e00 - MonoDevelop.exe]
#18 0x11ba84c0 in  MonoDevelop.VersionControl.Git.GitRepository:OnGetVersionInfo (System.Collections.Generic.IEnumerable`1<MonoDevelop.Core.FilePath>,bool) + 0x28 (0x11ba8498 0x11ba84c5) [0x4b9e00 - MonoDevelop.exe]
#19 0x11ba845c in  MonoDevelop.VersionControl.Repository:GetVersionInfo (MonoDevelop.Core.FilePath,bool) + 0x44 (0x11ba8418 0x11ba8489) [0x4b9e00 - MonoDevelop.exe]
#20 0x11ba8400 in  MonoDevelop.VersionControl.Repository:GetVersionInfo (MonoDevelop.Core.FilePath) + 0x18 (0x11ba83e8 0x11ba8405) [0x4b9e00 - MonoDevelop.exe]
#21 0xe42c962 in  MonoDevelop.VersionControl.Views.SubviewAttachmentHandler:HandleDocumentOpened (object,MonoDevelop.Ide.Gui.DocumentEventArgs) + 0x9a (0xe42c8c8 0xe42ca22) [0x4b9e00 - MonoDevelop.exe]
#22 0xe42c8b8 in  MonoDevelop.Ide.Gui.Workbench:OnDocumentOpened (MonoDevelop.Ide.Gui.DocumentEventArgs) + 0x20 (0xe42c898 0xe42c8c1) [0x4b9e00 - MonoDevelop.exe]
#23 0xe42b688 in  MonoDevelop.Ide.Gui.Workbench:WrapDocument (MonoDevelop.Ide.Gui.IWorkbenchWindow) + 0x120 (0xe42b568 0xe42b6ab) [0x4b9e00 - MonoDevelop.exe]
#24 0xe42b55a in  MonoDevelop.Ide.Gui.ViewCommandHandlers:.ctor (MonoDevelop.Ide.Gui.IWorkbenchWindow) + 0x22 (0xe42b538 0xe42b567) [0x4b9e00 - MonoDevelop.exe]
#25 0xe424dec in  MonoDevelop.Ide.Gui.SdiWorkspaceWindow:.ctor (MonoDevelop.Ide.Gui.DefaultWorkbench,MonoDevelop.Ide.Gui.IViewContent,Gtk.Notebook,MonoDevelop.Components.TabLabel) + 0x2cc (0xe424b20 0xe424e2f) [0x4b9e00 - MonoDevelop.exe]
#26 0xe424358 in  MonoDevelop.Ide.Gui.DefaultWorkbench:ShowView (MonoDevelop.Ide.Gui.IViewContent,bool) + 0x570 (0xe423de8 0xe4244a9) [0x4b9e00 - MonoDevelop.exe]
#27 0x106b56bf in  MonoDevelop.Ide.Gui.LoadFileWrapper:Invoke (string) + 0x377 (0x106b5348 0x106b57f2) [0x4b9e00 - MonoDevelop.exe]
#28 0xe97b8e0 in  MonoDevelop.Ide.Gui.Workbench:RealOpenFile (MonoDevelop.Ide.Gui.FileOpenInformation) + 0xb18 (0xe97adc8 0xe97bc43) [0x4b9e00 - MonoDevelop.exe]
#29 0xe97a9dc in  MonoDevelop.Ide.Gui.Workbench:OpenDocument (MonoDevelop.Core.FilePath,int,int,MonoDevelop.Ide.Gui.OpenDocumentOptions,string,MonoDevelop.Ide.Gui.IViewDisplayBinding) + 0x3f4 (0xe97a5e8 0xe97ab1f) [0x4b9e00 - MonoDevelop.exe]
#30 0xe9790f4 in  MonoDevelop.Ide.Gui.Workbench:OnLoadingWorkspaceUserPreferences (object,MonoDevelop.Ide.UserPreferencesEventArgs) + 0x294 (0xe978e60 0xe979636) [0x4b9e00 - MonoDevelop.exe]
#31 0xe978e53 in  (wrapper delegate-invoke) <Module>:invoke_void__this___object_UserPreferencesEventArgs (object,MonoDevelop.Ide.UserPreferencesEventArgs) + 0x73 (0xe978de0 0xe978e60) [0x4b9e00 - MonoDevelop.exe]
#32 0xe978a17 in  MonoDevelop.Ide.RootWorkspace:RestoreWorkspacePreferences (MonoDevelop.Projects.WorkspaceItem) + 0x1d7 (0xe978840 0xe978a60) [0x4b9e00 - MonoDevelop.exe]
#33 0xe978762 in  MonoDevelop.Ide.RootWorkspace/<BackgroundLoadWorkspace>c__AnonStoreyC1:<>m__19E (object,System.EventArgs) + 0x82 (0xe9786e0 0xe978824) [0x4b9e00 - MonoDevelop.exe]
#34 0xe487f7e in  Gtk.Application/InvokeCB:Invoke () + 0x1e (0xe487f60 0xe487f88) [0x4b9e00 - MonoDevelop.exe]
#35 0xd0dd239 in  GLib.Timeout/TimeoutProxy:Handler () + 0x31 (0xd0dd208 0xd0dd2b7) [0x4b9e00 - MonoDevelop.exe]
#36 0x79f2254 in  (wrapper native-to-managed) GLib.Timeout/TimeoutProxy:Handler () + 0x3c (0x79f2218 0x79f2266) [0x4b9e00 - MonoDevelop.exe]
#37 0x03e2f7d1 in g_timeout_dispatch ()
#38 0x03e2d5de in g_main_context_dispatch ()
#39 0x03e3103b in g_main_context_iterate ()
#40 0x03e31520 in g_main_context_iteration ()
#41 0x058e4a5e in gtk_main_iteration_do ()
#42 0xd0d8a40 in  (wrapper managed-to-native) Gtk.Application:gtk_main_iteration_do (bool) + 0x38 (0xd0d8a08 0xd0d8a78) [0x4b9e00 - MonoDevelop.exe]
#43 0xd0d89f6 in  Gtk.Application:RunIteration (bool) + 0x16 (0xd0d89e0 0xd0d89fb) [0x4b9e00 - MonoDevelop.exe]
#44 0xd0d8884 in  MonoDevelop.Ide.DispatchService:RunPendingEvents () + 0x24 (0xd0d8860 0xd0d88ac) [0x4b9e00 - MonoDevelop.exe]
#45 0xe607e66 in  MonoDevelop.Ide.ProgressMonitoring.BaseProgressMonitor:MonoDevelop.Core.IAsyncOperation.WaitForCompleted () + 0x46 (0xe607e20 0xe6080c6) [0x4b9e00 - MonoDevelop.exe]
#46 0x71327f in  (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0x6f (0x713210 0x71328e) [0x4b9e00 - MonoDevelop.exe]
#47 0x0000f5b4 in mono_jit_runtime_invoke ()
#48 0x001fdae5 in mono_runtime_invoke ()
#49 0x00200b92 in mono_runtime_invoke_array ()
#50 0x00190a86 in ves_icall_InternalExecute ()
#51 0x8a8c758 in  (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&) + 0x30 (0x8a8c728 0x8a8c792) [0x4b9e00 - MonoDevelop.exe]
#52 0x8a8c240 in  System.Runtime.Remoting.RemotingServices:InternalExecuteMessage (System.MarshalByRefObject,System.Runtime.Remoting.Messaging.IMethodCallMessage) + 0x1f0 (0x8a8c050 0x8a8c533) [0x4b9e00 - MonoDevelop.exe]
#53 0xd0d7f14 in  System.Runtime.Remoting.Messaging.StackBuilderSink:SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) + 0xcc (0xd0d7e48 0xd0d7f4f) [0x4b9e00 - MonoDevelop.exe]
#54 0xd0d7dac in  System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink:SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) + 0x64 (0xd0d7d48 0xd0d7de0) [0x4b9e00 - MonoDevelop.exe]
#55 0xd0d7c26 in  System.Runtime.Remoting.Lifetime.LeaseSink:SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) + 0x2e (0xd0d7bf8 0xd0d7c2b) [0x4b9e00 - MonoDevelop.exe]
#56 0xd0d78c2 in  MonoDevelop.Ide.Gui.SyncContextDispatchSink:SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) + 0x1b2 (0xd0d7710 0xd0d7b17) [0x4b9e00 - MonoDevelop.exe]
#57 0xd0d734d in  System.Runtime.Remoting.ClientActivatedIdentity:SyncObjectProcessMessage (System.Runtime.Remoting.Messaging.IMessage) + 0x75 (0xd0d72d8 0xd0d7358) [0x4b9e00 - MonoDevelop.exe]
#58 0x8a8b11b in  System.Runtime.Remoting.Messaging.ServerContextTerminatorSink:SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) + 0x15b (0x8a8afc0 0x8a8b15e) [0x4b9e00 - MonoDevelop.exe]
#59 0xd0d7137 in  System.Runtime.Remoting.Contexts.CrossContextChannel:SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) + 0xd7 (0xd0d7060 0xd0d72d5) [0x4b9e00 - MonoDevelop.exe]
#60 0xd0d6efc in  System.Runtime.Remoting.Messaging.ClientContextTerminatorSink:SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) + 0x18c (0xd0d6d70 0xd0d6f6a) [0x4b9e00 - MonoDevelop.exe]
#61 0xd0d6d66 in  System.Runtime.Remoting.Messaging.EnvoyTerminatorSink:SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) + 0x2e (0xd0d6d38 0xd0d6d6b) [0x4b9e00 - MonoDevelop.exe]
#62 0xd0d6b9d in  System.Runtime.Remoting.Proxies.RemotingProxy:Invoke (System.Runtime.Remoting.Messaging.IMessage) + 0x355 (0xd0d6848 0xd0d6c5a) [0x4b9e00 - MonoDevelop.exe]
#63 0x870e3c2 in  System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&) + 0x3e2 (0x870dfe0 0x870eccb) [0x4b9e00 - MonoDevelop.exe]
#64 0x870edd6 in  (wrapper runtime-invoke) <Module>:runtime_invoke_object_object_object_Exception&_object[]& (object,intptr,intptr,intptr) + 0x56 (0x870ed80 0x870ee34) [0x4b9e00 - MonoDevelop.exe]
#65 0x0000f5b4 in mono_jit_runtime_invoke ()
#66 0x001fdae5 in mono_runtime_invoke ()
#67 0x00203ceb in mono_remoting_invoke ()
#68 0x001b0558 in mono_remoting_wrapper ()
#69 0x870dfa5 in  (wrapper managed-to-native) object:__icall_wrapper_mono_remoting_wrapper (intptr,intptr) + 0x2d (0x870df78 0x870dfe0) [0x4b9e00 - MonoDevelop.exe]
#70 0xe606074 in  (wrapper remoting-invoke) MonoDevelop.Ide.ProgressMonitoring.BaseProgressMonitor:MonoDevelop.Core.IAsyncOperation.WaitForCompleted () + 0x4c (0xe606028 0xe6060aa) [0x4b9e00 - MonoDevelop.exe]
#71 0xe6052ea in  MonoDevelop.WelcomePage.WelcomePageView:HandleLinkAction (string) + 0x15a (0xe605190 0xe6054d7) [0x4b9e00 - MonoDevelop.exe]
#72 0xe60516a in  MonoDevelop.WelcomePage.WelcomePageWidget:HandleLink (object,System.EventArgs) + 0x5a (0xe605110 0xe605184) [0x4b9e00 - MonoDevelop.exe]
#73 0xe4131ed in  (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object_object (object,intptr,intptr,intptr) + 0x85 (0xe413168 0xe413202) [0x4b9e00 - MonoDevelop.exe]
#74 0x0000f5b4 in mono_jit_runtime_invoke ()
#75 0x001fdae5 in mono_runtime_invoke ()
#76 0x00200b92 in mono_runtime_invoke_array ()
#77 0x0019049e in ves_icall_InternalInvoke ()
#78 0x743eaae in  (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) + 0x36 (0x743ea78 0x743eb08) [0x4b9e00 - MonoDevelop.exe]
#79 0x743e7de in  System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) + 0x13e (0x743e6a0 0x743e932) [0x4b9e00 - MonoDevelop.exe]
#80 0x8dc7ccb in  System.Reflection.MethodBase:Invoke (object,object[]) + 0x23 (0x8dc7ca8 0x8dc7cd0) [0x4b9e00 - MonoDevelop.exe]
#81 0x8fa6246 in  System.Delegate:DynamicInvokeImpl (object[]) + 0x1ee (0x8fa6058 0x8fa6260) [0x4b9e00 - MonoDevelop.exe]
#82 0x8fa6046 in  System.MulticastDelegate:DynamicInvokeImpl (object[]) + 0x36 (0x8fa6010 0x8fa604b) [0x4b9e00 - MonoDevelop.exe]
#83 0x8fa6007 in  System.Delegate:DynamicInvoke (object[]) + 0x17 (0x8fa5ff0 0x8fa600c) [0x4b9e00 - MonoDevelop.exe]
#84 0x8fa5fd4 in  GLib.Signal:ClosureInvokedCB (object,GLib.ClosureInvokedArgs) + 0x12c (0x8fa5ea8 0x8fa5fdf) [0x4b9e00 - MonoDevelop.exe]
#85 0x8fa5e9c in  GLib.SignalClosure:Invoke (GLib.ClosureInvokedArgs) + 0x24 (0x8fa5e78 0x8fa5ea4) [0x4b9e00 - MonoDevelop.exe]
#86 0x8fa46a4 in  GLib.SignalClosure:MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) + 0x224 (0x8fa4480 0x8fa4ca3) [0x4b9e00 - MonoDevelop.exe]
#87 0x81cdd0e in  (wrapper native-to-managed) GLib.SignalClosure:MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) + 0x3e (0x81cdcd0 0x81cdd1a) [0x4b9e00 - MonoDevelop.exe]
#88 0x0368ce79 in g_closure_invoke ()
#89 0x0369d335 in signal_emit_unlocked_R ()
#90 0x0369e621 in g_signal_emit_valist ()
#91 0x0369e929 in g_signal_emit ()
#92 0x0582ff8a in gtk_button_clicked ()
#93 0x05832148 in gtk_real_button_released ()
#94 0x0368ce79 in g_closure_invoke ()
#95 0x0369cc42 in signal_emit_unlocked_R ()
#96 0x0369e621 in g_signal_emit_valist ()
#97 0x0369e929 in g_signal_emit ()
#98 0x0582feea in gtk_button_released ()
#99 0x058311db in gtk_button_button_release ()
(gdb)
Comment 1 Miguel de Icaza [MSFT] 2011-07-20 19:00:45 UTC

*** This bug has been marked as a duplicate of bug 28 ***
Comment 2 Mikayla Hutchinson [MSFT] 2011-07-20 19:20:08 UTC
Not duplicate, other is an separate error that happens after disabling this addin.
Comment 3 Mikayla Hutchinson [MSFT] 2011-07-20 19:24:40 UTC
To repro, open MD Main.sln in MD master. It crashes with this trace. Disable NGit and it works.
Comment 4 Mikayla Hutchinson [MSFT] 2011-07-21 05:52:06 UTC
Fixed in master. This was actually caused by Lluis' hack to work around a GTK focus issue by creating an undecorated window when the MD window is "reopened". It must have corrupted some state somewhere causing things to go wrong later.