Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests on mono 4.6.0 fails when an exception is thrown inside .net #493

Closed
webarchymeta opened this issue Sep 25, 2016 · 5 comments
Closed

Comments

@webarchymeta
Copy link

It's known that mono 4.4.x had problems (see #446).

However it is claimed that mono 4.6.0 should have resolved the issue. But when I tested on a ubuntu 14.04 docker image and on a virtual ubuntu 16.04 box having mono 4.6.0 installed, both failed the tests contained in edge:
In ubuntu 16.0.4, one get

Stack overflow: IP: 0x7ff3b0d181de, fault addr: 0x7ffe38420f7c
Stacktrace:
  at <unknown> <0xffffffff>
  at System.Exception.get_IsTransient () <0x00013>
  <...>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_bool__this__ (object,intptr,intptr,intptr) <0x00069>

and in ubuntu 14.04 one get

Stack overflow: IP: 0x7fa75d9fc370, fault addr: 0x7ffc43587ff8
Stacktrace:
  at <unknown> <0xffffffff>
  at System.RuntimeType.GetMethodCandidates (string,System.Reflection.BindingFlags,System.Reflection.CallingConventions,System.Type[],bool) <0x00097>
  <...>
  at System.RuntimeType.GetMethods (System.Reflection.BindingFlags) <0x00047>
  at System.Diagnostics.StackTrace.GetFullNameForStackTrace (System.Text.StringBuilder,System.Reflection.MethodBase) <0x00093>
  at System.Diagnostics.StackTrace.AddFrames (System.Text.StringBuilder) <0x001fb>
  at System.Diagnostics.StackTrace.ToString () <0x000f3>
  at System.Diagnostics.StackTrace.ToString (System.Diagnostics.StackTrace/TraceFormat) <0x00010>
  at System.Environment.GetStackTrace (System.Exception,bool) <0x0007b>
  at System.Exception.GetStackTrace (bool) <0x0005b>
  at System.Exception.get_StackTrace () <0x00013>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this__ (object,intptr,intptr,intptr) <0x00069>

whenever a fail condition that's related to an exception to be thrown inside .net is tested.

Could this be a problem inside edge or inside mono itself?

@mdbollman
Copy link

+1 I too am seeing this error, and cannot diagnose where its coming from.

@crisfervil
Copy link

Same Problem Here:

Stack overflow: IP: 0x7fe9a63121de, fault addr: 0x7ffcd5e2cf1c
Stacktrace:
  at <unknown> <0xffffffff>
  at System.Exception.get_IsTransient () <0x00013>
  <...>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_bool__this__ (object,intptr,intptr,intptr) <0x00069>

Code Executed:

var edge = require('edge');

var helloWorld = edge.func(function () {/*
    async (input) => {
        throw new Exception("incorrect connection string");
        return ".NET Welcomes " + input.ToString();
    }
*/});

helloWorld('JavaScript', function (error, result) {
    if (error) throw error;
    console.log(result);
});

Mono version:

Mono JIT compiler version 4.6.1 (Stable 4.6.1.3/abb06f1 Wed Sep 28 13:54:26 UTC 2016)
Copyright (C) 2002-2014 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:            sgen

Ubuntu Version:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

@assafshemesh
Copy link

+1 same issue

@mendesf
Copy link

mendesf commented Jan 19, 2017

Same issue.

Ubuntu 16.04.1 LTS
Mono JIT compiler version 4.6.2 (Stable 4.6.2.16/ac9e222 Tue Jan 3 11:48:26 UTC 2017)

@ruisebastiao
Copy link

ruisebastiao commented Apr 11, 2017

+1 same issue

Distributor ID: Ubuntu
Description: Ubuntu 16.10
Release: 16.10
Codename: yakkety

Mono JIT compiler version 4.8.0 (Stable 4.8.0.524/9d74414 Wed Apr 5 17:57:04 UTC 2017)
Copyright (C) 2002-2014 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: sgen

@agracio agracio closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants