Bug 4207 - MonoDevelop from master crashes on Mono 2.10.8.1
Summary: MonoDevelop from master crashes on Mono 2.10.8.1
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Reflection ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-04-03 10:03 UTC by Federico Di Gregorio
Modified: 2013-08-22 04:01 UTC (History)
3 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 GitHub or Developer Community 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 Federico Di Gregorio 2012-04-03 10:03:10 UTC
Mono 2.10.8.1 from Debian unstable packages crashes when running latests MonoDevelop from the master branch. This has been confirmed on IRC as a runtime bug by Alan. "mono --version" follows:

Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-2)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            Included Boehm (with typed GC and Parallel Mark)

And the GDB stack trace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2aaab4f48700 (LWP 972)]
0x00002aaaab698242 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00002aaaab698242 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x000000000057f801 in create_custom_attr (image=0xa45240, method=<optimized out>, data=<optimized out>, len=<optimized out>, error=<optimized out>)
    at /usr/include/x86_64-linux-gnu/bits/string3.h:52
#2  0x000000000057fbb3 in mono_custom_attrs_construct_by_type (cinfo=0x2aaac0602d20, attr_klass="System.Attribute", error=0x2aaab4f45ca0) at reflection.c:8424
#3  0x000000000057fcd2 in mono_reflection_get_custom_attrs_by_type (obj=<optimized out>, attr_klass="System.Attribute", error=0x2aaab4f45ca0) at reflection.c:8881
#4  0x000000000052096d in custom_attrs_get_by_type (obj=0x2aaabe8bbcc0, attr_type=<optimized out>) at icall.c:7543
#5  0x00000000400809d6 in (wrapper managed-to-native) System.MonoCustomAttrs:GetCustomAttributesInternal (param0=..., param1=..., param2=false) at xdb.il:3834
#6  0x00000000400808ec in System.MonoCustomAttrs:GetCustomAttributesBase (obj=..., attributeType=...)
    at /tmp/buildd/mono-2.10.8.1/mcs/class/corlib/System/MonoCustomAttrs.cs:95
#7  0x000000004007ff58 in System.MonoCustomAttrs:GetCustomAttributes (obj=..., attributeType=..., inherit=false)
    at /tmp/buildd/mono-2.10.8.1/mcs/class/corlib/System/MonoCustomAttrs.cs:138
#8  0x00000000400fc3f4 in System.Attribute:GetCustomAttributes (element=..., type=..., inherit=false)
    at /tmp/buildd/mono-2.10.8.1/mcs/class/corlib/System/Attribute.cs:228
#9  0x00000000400fef3c in MonoDevelop.Core.Serialization.TypeAttributeProvider:GetCustomAttributes (this=<optimized out>, ob=System.Reflection.MonoProperty = {...}, 
    type=..., inherit=false) at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/TypeAttributeProvider.cs:56
#10 0x00000000400fe4c9 in MonoDevelop.Core.Serialization.ClassDataType:AddProperty (this=..., member=System.Reflection.MonoProperty = {...}, name="OldAssemblyKeyFile", 
    memberType=...) at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ClassDataType.cs:112
#11 0x00000000400fbdbc in MonoDevelop.Core.Serialization.ClassDataType:Initialize (this=...)
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ClassDataType.cs:95
#12 0x00000000400fb3e3 in MonoDevelop.Core.Serialization.DataType:SetContext (this=..., ctx=...)
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataType.cs:63
#13 0x00000000400fa4b0 in MonoDevelop.Core.Serialization.DataContext:GetConfigurationDataType (this=..., type=...)
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataContext.cs:277
#14 0x0000000040249d80 in MonoDevelop.Core.Serialization.DataContext:RegisterProperty (this=..., targetType=..., property=...)
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataContext.cs:242
#15 0x0000000040249794 in MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService:get_DataContext ()
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectService.cs:72
#16 0x0000000040249608 in MonoDevelop.Projects.Formats.MSBuild.MSBuildSerializer:.ctor (this=..., baseFile="/home/fog/Workspaces/gluon/gluon/Gluon/Gluon.csproj")
#17 0x0000000040249584 in MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler:CreateSerializer (this=...)
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:1576
#18 0x0000000040248469 in MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler:Load (this=..., monitor=..., msproject=...)
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:460
#19 0x000000004023e530 in ?? ()
#20 0x000000004023ba78 in ?? ()
#21 0x000000004023afa4 in ?? ()
#22 0x000000004023aecc in ?? ()
#23 0x000000004023ae96 in ?? ()
#24 0x000000004023aa6e in ?? ()
#25 0x000000004023a9a8 in ?? ()
#26 0x000000004023aa6e in ?? ()
#27 0x000000004023abf8 in ?? ()
#28 0x000000004023a9a8 in ?? ()
#29 0x000000004023aa6e in ?? ()
#30 0x000000004023a9a8 in ?? ()
#31 0x000000004023aa6e in ?? ()
#32 0x000000004023a9a8 in ?? ()

#33 0x000000004023aa6e in ?? ()
#34 0x000000004023ab70 in ?? ()
#35 0x000000004023a9a8 in ?? ()
#36 0x000000004023aa6e in ?? ()
#37 0x000000004023a9a8 in ?? ()
#38 0x000000004023aa6e in ?? ()
#39 0x000000004023a9a8 in ?? ()
#40 0x000000004023a917 in ?? ()
#41 0x0000000040234100 in ?? ()
#42 0x000000004022e064 in MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat:ReadFile (this=..., fileName="/home/fog/Workspaces/gluon/gluon/Gluon.sln", format=..., 
    monitor=...) at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:599
#43 0x000000004022df48 in MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat:ReadFile (this=..., file=-1105621840, expectedType=<optimized out>, monitor=...)
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildFileFormat.cs:161
#44 0x000000004022de3c in MonoDevelop.Projects.ProjectService:ReadFile (this=..., monitor=..., file="/home/fog/Workspaces/gluon/gluon/Gluon.sln", expectedType=..., 
    format=46912668727280) at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:310
#45 0x000000004022dce0 in MonoDevelop.Projects.ProjectService:InternalReadWorkspaceItem (this=..., file="/home/fog/Workspaces/gluon/gluon/Gluon.sln", monitor=...)
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:282
#46 0x000000004022dc7c in MonoDevelop.Projects.DefaultProjectServiceExtension:LoadWorkspaceItem (this=<optimized out>, monitor=..., fileName=
    "/home/fog/Workspaces/gluon/gluon/Gluon.sln") at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:677
#47 0x000000004022daae in MonoDevelop.Projects.ProjectServiceExtension:LoadWorkspaceItem (this=..., monitor=..., fileName="/home/fog/Workspaces/gluon/gluon/Gluon.sln")
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:107
#48 0x000000004022daae in MonoDevelop.Projects.ProjectServiceExtension:LoadWorkspaceItem (this=..., monitor=..., fileName="/home/fog/Workspaces/gluon/gluon/Gluon.sln")
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:107
#49 0x000000004022db04 in MonoDevelop.Autotools.MakefileProjectServiceExtension:LoadWorkspaceItem (this=..., monitor=..., fileName=
    "/home/fog/Workspaces/gluon/gluon/Gluon.sln") at /home/fog/Workspaces/mono/monodevelop/main/src/addins/MonoDevelop.Autotools/MakefileProjectServiceExtension.cs:50
#50 0x000000004022daae in MonoDevelop.Projects.ProjectServiceExtension:LoadWorkspaceItem (this=..., monitor=..., fileName="/home/fog/Workspaces/gluon/gluon/Gluon.sln")
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:107
#51 0x000000004022daae in MonoDevelop.Projects.ProjectServiceExtension:LoadWorkspaceItem (this=..., monitor=..., fileName="/home/fog/Workspaces/gluon/gluon/Gluon.sln")
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:107
#52 0x000000004022daae in MonoDevelop.Projects.ProjectServiceExtension:LoadWorkspaceItem (this=..., monitor=..., fileName="/home/fog/Workspaces/gluon/gluon/Gluon.sln")
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:107
#53 0x000000004022daae in MonoDevelop.Projects.ProjectServiceExtension:LoadWorkspaceItem (this=..., monitor=..., fileName="/home/fog/Workspaces/gluon/gluon/Gluon.sln")
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:107
#54 0x000000004022daae in MonoDevelop.Projects.ProjectServiceExtension:LoadWorkspaceItem (this=..., monitor=..., fileName="/home/fog/Workspaces/gluon/gluon/Gluon.sln")
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:107
#55 0x000000004022d9c7 in MonoDevelop.Projects.ProjectService:ReadWorkspaceItem (this=..., monitor=..., file="/home/fog/Workspaces/gluon/gluon/Gluon.sln")
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:261
#56 0x0000000040227be4 in MonoDevelop.Ide.RootWorkspace:BackgroundLoadWorkspace (this=..., monitor=..., filename="/home/fog/Workspaces/gluon/gluon/Gluon.sln", 
    loadPreferences=true) at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:563
#57 0x0000000040227854 in MonoDevelop.Ide.RootWorkspace/<OpenWorkspaceItem>c__AnonStoreyD0:<>m__1CD (this=...)
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:515
#58 0x000000004021db56 in MonoDevelop.Ide.GenericMessageContainer:Run (this=...)
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DispatchService.cs:334
#59 0x0000000040059542 in MonoDevelop.Ide.DispatchService:backgroundDispatcher ()
    at /home/fog/Workspaces/mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DispatchService.cs:295
#60 0x000000004005930b in System.Threading.Thread:StartInternal (this=...) at /tmp/buildd/mono-2.10.8.1/mcs/class/corlib/System.Threading/Thread.cs:703
#61 0x000000004005926c in (wrapper runtime-invoke) object:runtime_invoke_void__this__ (param0=System.Threading.ThreadStart = {...}, param1=<optimized out>, param2=0, 
    param3=1074104704) at xdb.il:2147
#62 0x00000000004220a8 in mono_jit_runtime_invoke (method="System.Threading.ThreadStart:Invoke ()", obj=0x2aaaad765750, params=0x2aaab4f47da0, exc=0x0) at mini.c:5791
#63 0x000000000056160b in mono_runtime_invoke (method="System.Threading.ThreadStart:Invoke ()", obj=0x2aaaad765750, params=0x2aaab4f47da0, exc=0x0) at object.c:2755
#64 0x00000000005949b9 in start_wrapper_internal (data=0x10c1fe0) at threads.c:790
#65 start_wrapper (data=0x10c1fe0) at threads.c:832
#66 0x00000000005be962 in thread_start_routine (args=0x9ffd20) at wthreads.c:287
#67 0x00000000005ded8d in GC_start_routine (arg=<optimized out>) at pthread_support.c:1468
#68 0x00002aaaab362b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#69 0x00002aaaab65090d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#70 0x0000000000000000 in ?? ()
Comment 1 Rodrigo Kumpera 2013-08-21 12:13:07 UTC
We have fixed multiple issues in the custom assembly loading code since mono 2.10.8.
Please try with mono 3.2 and see if it still does crash for you.

Reopen the bug if it's still happening.
Comment 2 Federico Di Gregorio 2013-08-22 04:01:24 UTC
MonoDevelop worked on Mono 3.0.x for a long time. I suppose there won't be any problems with 3.2 too. Sorry for not having closed this bug myself some time ago.