SIGABRT when debugging

2015-10-31 Thread Russell Haley
Hey,

I am running MonoDevelopl 5.10 on Freebsd 10.2. When I try to debug this
one particular project and inspect one of my classes, the debugger crashes
with this:

Can't find custom attr constructor image:
/usr/home/rhaley/Projects/Objektiv2/Objektiv/ProtospeakServer/bin/Debug/Objektiv.dll
mtoken: 0x0a06
* Assertion at loader.c:1153, condition `!mono_loader_get_last_error ()'
not met

Stacktrace:


=
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=

/usr/local/bin/bash: line 1: 92150 Abort trap
/usr/local/bin/mono --debug --debugger-agent=transport=dt_socket,address=
127.0.0.1:23867
"/usr/home/rhaley/Projects/Objektiv2/Objektiv/ProtospeakServer/bin/Debug/ProtospeakServer.exe"

Press any key to continue...


Any input would be really helpful.
Thanks,
Russ
___
freebsd-mono@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-mono
To unsubscribe, send any mail to "freebsd-mono-unsubscr...@freebsd.org"


Re: [MonoDevelop] Monodevelop 5.10

2015-10-31 Thread Russell Haley
Hey,

So a big win last night: after installing libgit2 from ports, was able to
build and run MOnoDevelop from MonoDevelop. I patched
file:///usr/home/rhaley/git/monodevelop/main/external/libgit2sharp/LibGit2Sharp/Core/NativeDllName.cs:

public const string Name = "/usr/local/lib/libgit2.so";

and had to make some other changes and remove an NFactory test.  I'll try
to reproduce it and create a patch some time later. Yay!

The REAL error I am trying to track down occurs when adding or removing a
new project to a solution. I get a general I/O error. I've tracked it down
to

main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs

at line 572 a Syscall.rename is attempted and the error code is not handled
in the case statement. I am getting
Mono.Unix.Native.Errno.EXDEV (value 18)

Which I tracked down here:
http://docs.go-mono.com/index.aspx?link=F%3AMono.Unix.Native.Errno.EXDEV
"Cross-device link. A hard link to a file on another file system was
attempted."

Values are:

sourceFile"/tmp/tmp51cc4b8d.tmp"
destFile
"/usr/home/rhaley/Projects/Objektiv2/Objektiv/Objektiv/Objektiv.sln"

mount reveals the following:

tank/tmp on /tmp (zfs, local, nosuid, nfsv4acls)
tank/usr/home on /usr/home (zfs, local, nfsv4acls)
tank/usr/home/rhaley on /usr/home/rhaley (zfs, local, nfsv4acls)


however, I can manuall mv the file.

Any thoughts? I am guessing that the syscall.rename is doing something
other than an mv and zfs doesn't like it. Or conversly, zfs is doing
something funky and the mono wrapper library doesn't like it?

Anyway, all input welcome. Much thanks!

Russell


On Sat, Oct 31, 2015 at 1:03 AM, Robert N  wrote:

> Great to hear...
>
>
> --
> *From:* Russell Haley 
> *Sent:* Friday, October 30, 2015 9:14 PM
> *To:* Robert N; monodevelop-l...@lists.ximian.com
> *Subject:* Re: [MonoDevelop] Monodevelop 5.10
>
> Hey Robert,
>
> Thanks for the great input. Someone on the freebsd-mono@ mailing list
> told me to build libgit2 from ports. With your information now everything
> makes sense.
>
> Thanks for the help!
>
> Russ
>
> On Fri, Oct 30, 2015 at 7:43 AM, Robert N 
> wrote:
>
>>
>> "Can anyone tell me more about "git2-3d5286e"? Where will I find it if
>> it does exist?"
>>
>>
>> Libgit2sharp version of the libgit2 native dll/shared object is
>> versioned with the git sha of the build.
>>
>>
>> 'Normally' you obtain the libgit2sharp CIL assembly with the
>> corresponding native Win32/64 dll (via the Window's nuget). There is also a
>> nuget (LibGit2Sharp.NativeBinaries) for Win32/64, OS-X and Linux libgit2
>> native binaries that can be used.
>>
>>
>> Since you are on BSD, I assume you would need to go to source and build
>> it: https://github.com/libgit2/libgit2 .
>>
>>
>>
>> -Robert
>> libgit2/libgit2 ยท GitHub 
>> github.com
>> libgit2 - The Library ... README.md libgit2 - the Git linkable library.
>> libgit2 is a portable, pure C implementation of the Git core methods
>> provided as a re-entrant ...
>>
>>
>>
>>
>>
>> --
>> *From:* monodevelop-list-boun...@lists.ximian.com <
>> monodevelop-list-boun...@lists.ximian.com> on behalf of Russell Haley <
>> russ.ha...@gmail.com>
>> *Sent:* Thursday, October 29, 2015 11:34 PM
>> *To:* m...@freebsd.org; monodevelop-l...@lists.ximian.com
>> *Subject:* [MonoDevelop] Monodevelop 5.10
>>
>> Hey I have been able to compile and run Monodevelop on FreeBSD 10.2. The
>> source is from git and I use the gmake method to build. I am trying to load
>> the MonoDevelop workspace IN MonoDevelop to debug some issues, but when
>> loading I am getting the following error:
>>
>> An unhandled exception has occured. Terminating MonoDevelop? True
>> System.TypeInitializationException: An exception was thrown by the type
>> initializer for LibGit2Sharp.Core.NativeMethods --->
>> System.DllNotFoundException: git2-3d5286e
>>   at (wrapper managed-to-native)
>> LibGit2Sharp.Core.NativeMethods:git_libgit2_init ()
>>   at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject..ctor ()
>> [0x0] in :0
>>   at LibGit2Sharp.Core.NativeMethods..cctor () [0x0] in > unknown>:0
>>   --- End of inner exception stack trace ---
>>   at
>> LibGit2Sharp.Core.Proxy+c__AnonStoreyE.<>m__0
>> (LibGit2Sharp.Core.Handles.GitBuf buf) [0x0] in :0
>>   at LibGit2Sharp.Core.Proxy.ConvertPath (System.Func`2 pathRetriever)
>> [0x0] in :0
>>   at LibGit2Sharp.Core.Proxy.git_repository_discover
>> (LibGit2Sharp.Core.FilePath start_path) [0x0] in :0
>>   at LibGit2Sharp.Repository.Discover (System.String startingPath)
>> [0x0] in :0
>>   at MonoDevelop.VersionControl.Git.GitRepository..ctor
>> (MonoDevelop.VersionControl.VersionControlSystem vcs, FilePath path,
>> System.String url) [0x0] in :0
>>   at
>> MonoDevelop.VersionControl.Git.GitVersionControl.GetRepositoryReference
>> (FilePath path, System.String id) [0x0] in :0
>>   at
>> MonoDevelop.VersionControl.VersionControlService.GetR