[Mono-dev] Crashes In Mini-Runtime on Ubuntu 14.04

2015-09-03 Thread Douglas Roffel
I forgot to paste the backtrace, sorry about that: 
http://pastebin.com/raw.php?i=ULAcFYq1

From: Douglas Roffel
Sent: Thursday, September 03, 2015 12:48 PM
To: 'mono-devel-list@lists.ximian.com'
Subject: Crashes In Mini-Runtime on Ubuntu 14.04

Hey Mono-Dev,

I've recently been trying to debug a crash in the Mini-Runtime, and I'm unsure 
of where to look. The cause of the crash is a failed mono_domain_get (), which 
returns a null pointer at mini-runtime.c:2101
MonoDomain *domain = mono_domain_get ();

This causes a segfault at mini-runtime.c:2110
domain_info = domain_jit_info (domain);

Calling mono_domain_get after the segfault returns a valid appdomain, and this 
function is executed hundreds of times before segfaulting, so the appdomain has 
definitely been initialized properly.

Here is a backtrace of the state of all threads directly before the crash, the 
segfault occurs in thread 9.

I apparently don't have the latest version of mini-runtime, so my line numbers 
are slightly off from master (I'm running Mono 4.3.0, pulled and compiled on 
august 18th, for reference). The line numbers I'm referencing are in the 
official repo at:

https://github.com/mono/mono/blob/master/mono/mini/mini-runtime.c#L2097

https://github.com/mono/mono/blob/master/mono/mini/mini-runtime.c#L2106


Any direction would be appreciated,


-  Douglas Roffel



***Legal Disclaimer***
"This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you."
**___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Crashes In Mini-Runtime on Ubuntu 14.04

2015-09-03 Thread Douglas Roffel
Hey Mono-Dev,

I've recently been trying to debug a crash in the Mini-Runtime, and I'm unsure 
of where to look. The cause of the crash is a failed mono_domain_get (), which 
returns a null pointer at mini-runtime.c:2101
MonoDomain *domain = mono_domain_get ();

This causes a segfault at mini-runtime.c:2110
domain_info = domain_jit_info (domain);

Calling mono_domain_get after the segfault returns a valid appdomain, and this 
function is executed hundreds of times before segfaulting, so the appdomain has 
definitely been initialized properly.

Here is a backtrace of the state of all threads directly before the crash, the 
segfault occurs in thread 9.

I apparently don't have the latest version of mini-runtime, so my line numbers 
are slightly off from master (I'm running Mono 4.3.0, pulled and compiled on 
august 18th, for reference). The line numbers I'm referencing are in the 
official repo at:

https://github.com/mono/mono/blob/master/mono/mini/mini-runtime.c#L2097

https://github.com/mono/mono/blob/master/mono/mini/mini-runtime.c#L2106


Any direction would be appreciated,


-  Douglas Roffel



***Legal Disclaimer***
"This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you."
**___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Crashes In Mini-Runtime on Ubuntu 14.04

2015-09-03 Thread Douglas Roffel
According to that bug tracker, the issue was fixed in 3.13.0-54.91 for Trusty. 
My kernel version is 3.13.0-62-generic, which is newer than that.

From: Jerod Venema [mailto:jerod.ven...@frozenmountain.com]
Sent: Thursday, September 03, 2015 12:58 PM
To: Douglas Roffel
Cc: mono-devel-list@lists.ximian.com
Subject: Re: [Mono-dev] Crashes In Mini-Runtime on Ubuntu 14.04

This bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1450584

On Thu, Sep 3, 2015 at 3:51 PM, Douglas Roffel 
> wrote:
I forgot to paste the backtrace, sorry about that: 
http://pastebin.com/raw.php?i=ULAcFYq1

From: Douglas Roffel
Sent: Thursday, September 03, 2015 12:48 PM
To: 'mono-devel-list@lists.ximian.com'
Subject: Crashes In Mini-Runtime on Ubuntu 14.04

Hey Mono-Dev,

I’ve recently been trying to debug a crash in the Mini-Runtime, and I’m unsure 
of where to look. The cause of the crash is a failed mono_domain_get (), which 
returns a null pointer at mini-runtime.c:2101
MonoDomain *domain = mono_domain_get ();

This causes a segfault at mini-runtime.c:2110
domain_info = domain_jit_info (domain);

Calling mono_domain_get after the segfault returns a valid appdomain, and this 
function is executed hundreds of times before segfaulting, so the appdomain has 
definitely been initialized properly.

Here is a backtrace of the state of all threads directly before the crash, the 
segfault occurs in thread 9.

I apparently don’t have the latest version of mini-runtime, so my line numbers 
are slightly off from master (I’m running Mono 4.3.0, pulled and compiled on 
august 18th, for reference). The line numbers I’m referencing are in the 
official repo at:

https://github.com/mono/mono/blob/master/mono/mini/mini-runtime.c#L2097

https://github.com/mono/mono/blob/master/mono/mini/mini-runtime.c#L2106


Any direction would be appreciated,


-  Douglas Roffel



***Legal Disclaimer***

"This communication may contain confidential and privileged material for the

sole use of the intended recipient. Any unauthorized review, use or distribution

by others is strictly prohibited. If you have received the message by mistake,

please advise the sender by reply email and delete the message. Thank you."

**

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



--
Jerod Venema

Frozen Mountain Software
919-300-5141 (United States)
604-227-2453 (Canada)
888-379-6686 (Toll Free)
www.frozenmountain.com



***Legal Disclaimer***
"This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you."
**___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Crashes In Mini-Runtime on Ubuntu 14.04

2015-09-03 Thread Jerod Venema
This bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1450584

On Thu, Sep 3, 2015 at 3:51 PM, Douglas Roffel 
wrote:

> I forgot to paste the backtrace, sorry about that:
> http://pastebin.com/raw.php?i=ULAcFYq1
>
>
>
> *From:* Douglas Roffel
> *Sent:* Thursday, September 03, 2015 12:48 PM
> *To:* 'mono-devel-list@lists.ximian.com'
> *Subject:* Crashes In Mini-Runtime on Ubuntu 14.04
>
>
>
> Hey Mono-Dev,
>
>
>
> I’ve recently been trying to debug a crash in the Mini-Runtime, and I’m
> unsure of where to look. The cause of the crash is a failed mono_domain_get
> (), which returns a null pointer at mini-runtime.c:2101
>
> MonoDomain *domain = mono_domain_get ();
>
>
>
> This causes a segfault at mini-runtime.c:2110
>
> domain_info = domain_jit_info (domain);
>
>
>
> Calling mono_domain_get after the segfault returns a valid appdomain, and
> this function is executed hundreds of times before segfaulting, so the
> appdomain has definitely been initialized properly.
>
>
>
> Here is a backtrace of the state of all threads directly before the crash,
> the segfault occurs in thread 9.
>
>
>
> I apparently don’t have the latest version of mini-runtime, so my line
> numbers are slightly off from master (I’m running Mono 4.3.0, pulled and
> compiled on august 18th, for reference). The line numbers I’m referencing
> are in the official repo at:
>
>
> https://github.com/mono/mono/blob/master/mono/mini/mini-runtime.c#L2097
>
>
> https://github.com/mono/mono/blob/master/mono/mini/mini-runtime.c#L2106
>
>
>
>
>
> Any direction would be appreciated,
>
>
>
> -  Douglas Roffel
>
>
> ***Legal Disclaimer***
> "This communication may contain confidential and privileged material for the
> sole use of the intended recipient. Any unauthorized review, use or 
> distribution
> by others is strictly prohibited. If you have received the message by mistake,
> please advise the sender by reply email and delete the message. Thank you."
> **
>
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>


-- 
Jerod Venema

*Frozen Mountain Software*
919-300-5141 (United States)
604-227-2453 (Canada)
888-379-6686 (Toll Free)
www.frozenmountain.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Class built by mono throws FileNotFoundException when run on windows

2015-09-03 Thread Greg Young
Sorry it double posted as it was queued and didn't send and I sent it
again. Later my iPad apparently got wifi :) That's fair that you are
trying to avoid it but there are circumstances where it can be a good
idea. As an example if I wanted to start looking at your dependencies
with an analysis tool such as ndepend the dependency on mono.posix
might be an issue.

On Wed, Sep 2, 2015 at 11:12 PM, Edward Ned Harvey (mono)
 wrote:
>> From: Greg Young [mailto:gregoryyou...@gmail.com]
>>
>> Use conditional compilation.
>
> Unless I've somehow missed your point? You said that twice, so I want to make 
> sure we're on the same page - You're talking about defining a compiler 
> symbol, and then using [Conditonal] or #if, right? The end result would be 
> different binaries for different platforms. But you can see in my original 
> post, I got my ego bruised and I got taken down a notch by Miguel and others 
> here for doing it - I am *specifically* looking to avoid conditional 
> compilation. That was the point of the original question. The folks who 
> maintain the mono source consider it incorrect enough to reject any pull 
> request that does it, except for compiler code. I'm here to learn a new 
> pattern that is better and more flexible, although not trivial to learn for 
> the first time. That's exactly what I've gotten from Alex and Robert: Use a 
> factory and two assemblies.
>



-- 
Studying for the Turing test
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list