代码之家  ›  专栏  ›  技术社区  ›  Andrus

如何修复防止mvc应用程序在mono中运行的sigsegv

  •  0
  • Andrus  · 技术社区  · 5 年前

    net mvc应用程序是使用apache和mod_mono安装在debian服务器上的。

    尝试启动它会在mono中导致sigsegv异常。apache error.log包含

    [Wed Mar 06 22:07:13 2019] [notice] Apache/2.2.22 (Debian) mod_mono/3.12 configured -- resuming normal operations
    Listening on: /tmp/.mod_mono_server4
    Root directory: /
    Stacktrace:
    
    [Wed Mar 06 22:07:35 2019] [error] (70014)End of file found: read_data failed
    [Wed Mar 06 22:07:35 2019] [error] Command stream corrupted, last command was 1
    Listening on: /tmp/.mod_mono_server4
    Root directory: /
    Stacktrace:
    
    
    Native stacktrace:
    
        /usr/bin/mono() [0x4accca]
        /usr/bin/mono() [0x5040fe]
        /usr/bin/mono() [0x4275d7]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0xf0a0) [0x7f47845d30a0]
        /usr/bin/mono() [0x47aad9]
        /usr/bin/mono() [0x50fcb8]
        /usr/bin/mono() [0x510253]
        /usr/bin/mono() [0x425efc]
        /usr/bin/mono() [0x4af809]
        /usr/bin/mono() [0x4b0117]
        [0x411fe68c]
    
    Debug info from gdb:
    
    
    =================================================================
    Got a SIGSEGV while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries 
    used by your application.
    =================================================================
    

    如何修复此问题以便应用程序可以运行? 同一服务器还包含使用运行正常的较旧的ASP.NET MVC创建的其他应用程序。

    Mono是使用Debian软件包安装的:

    mono --version
    Mono JIT compiler version 4.6.2 (Stable 4.6.2.7/08fd525 Mon Nov 14 12:30:00 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
    
    0 回复  |  直到 5 年前
    推荐文章