0

Everything's in the title, if I try to dotnet run it exits with no message, however using dotnet exec on the DLL outputs "segmentation fault" and exits.

4
  • Which debian version you have? Also, have you tried it in debug mode on debian to see if any message is shown with dotnet run? Commented Jun 15, 2017 at 20:05
  • 2
    Also, the exec function is not supposed to be called directly by the user, look at the last entry on this issue: github.com/dotnet/cli/issues/2243 Commented Jun 15, 2017 at 20:08
  • Linux aam-srv 4.5.7-std-3 #1 SMP Tue Jul 12 09:56:30 UTC 2016 x86_64 GNU/Linux Commented Jun 15, 2017 at 20:18
  • dotnet run quits anyway Commented Jun 15, 2017 at 20:19

1 Answer 1

1

Okay, so another developer working on the project found the problem. I caused a stack overflow (how convenient) on one of the custom attributes I made. Here's the code:

private string Message
{
    get
    {
        return this.Message;
    }
    set
    {
        this.Message = value;
    }
}

So basically, it was calling itself indefinitely. What I was supposed to do instead was create a second string to access it from:

private string Message
{
    get
    {
        return this.message;
    }
    set
    {
        this.message = value;
    }
}

private string message;

Hope it helps some of you!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.