Skip to content

Native Crash Reporting - Got a SIGSEGV while executing native code while debugging background threads #3222

@georgivzh

Description

@georgivzh

Steps to Reproduce

  1. When debugging code that is in a background thread I got a random exception. Debugging in the main thread is Ok (there was a similar problem in VS 2019 16.1 but it has been fixed). The exception:
06-14 11:36:24.504 E/mono-rt (27806): /proc/self/maps:
=================================================================
	Native Crash Reporting
=================================================================
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.
=================================================================

=================================================================

06-14 11:36:24.504 E/mono-rt (27806): 12c00000-52c00000 rw-p 00000000 00:01 36406                              /dev/ashmem/dalvik-main space (region space) (deleted)	Basic Fault Adddress Reporting
=================================================================
Memory around native instruction pointer (0xc9700b20):0xc9700b10  d0 1f 1e 00 70 1f 1e 00 10 00 90 e5 1e ff 2f e1  ....p........./.
0xc9700b20  08 00 90 e5 1e ff 2f e1 04 00 90 e5 1e ff 2f e1  ....../......./.
0xc9700b30  b0 20 d0 e1 00 10 a0 e1 01 00 a0 e3 01 0b 12 e3  . ..............
0xc9700b40  1e ff 2f 11 b2 10 d1 e1 03 30 01 e3 03 00 11 e1  ../......0......

No native Android stacktrace (see debuggerd output).

=================================================================
	Managed Stacktrace:
=================================================================
=================================================================

06-14 11:36:24.505 E/mono-rt (27806): 6f266000-6f44c000 rw-p 00000000 fd:01 432572                             /data/dalvik-cache/arm/system@framework@boot.art
06-14 11:36:24.505 E/mono-rt (27806): 6f44c000-6f509000 rw-p 00000000 fd:01 432575                             /data/dalvik-cache/arm/system@framework@boot-core-libart.art
06-14 11:36:24.505 E/mono-rt (27806): 6f509000-6f547000 rw-p 00000000 fd:01 432577                             /data/dalvik-cache/arm/system@framework@boot-conscrypt.art
06-14 11:36:24.505 E/mono-rt (27806): 6f547000-6f570000 rw-p 00000000 fd:01 432579                             /data/dalvik-cache/arm/system@framework@boot-okhttp.art
06-14 11:36:24.505 E/mono-rt (27806): 6f570000-6f574000 rw-p 00000000 fd:01 432581                             /data/dalvik-cache/arm/system@framework@boot-legacy-test.art
06-14 11:36:24.505 E/mono-rt (27806): 6f574000-6f5a6000 rw-p 00000000 fd:01 432583                             /data/dalvik-cache/arm/system@framework@boot-bouncycastle.art
06-14 11:36:24.505 E/mono-rt (27806): 6f5a6000-6f5d4000 rw-p 00000000 fd:01 432585                             /data/dalvik-cache/arm/system@framework@boot-ext.art
06-14 11:36:24.506 E/mono-rt (27806): 6f5d4000-6fb86000 rw-p 00000000 fd:01 432587                             /data/dalvik-cache/arm/system@framework@boot-framework.art
06-14 11:36:24.506 E/mono-rt (27806): 6fb86000-6fc13000 rw-p 00000000 fd:01 432589                             /data/dalvik-cache/arm/system@framework@boot-telephony-common.art
06-14 11:36:24.506 E/mono-rt (27806): 6fc13000-6fc1b000 rw-p 00000000 fd:01 432591                             /data/dalvik-cache/arm/system@framework@boot-voip-common.art
06-14 11:36:24.506 E/mono-rt (27806): 6fc1b000-6fc23000 rw-p 00000000 fd:01 432594                             /data/dalvik-cache/arm/system@framework@boot-ims-common.art
06-14 11:36:24.506 E/mono-rt (27806): 6fc23000-6fc38000 rw-p 00000000 fd:01 432595                             /data/dalvik-cache/arm/system@framework@boot-apache-xml.art
06-14 11:36:24.506 E/mono-rt (27806): 6fc38000-6fc56000 rw-p 00000000 fd:01 432597                             /data/dalvik-cache/arm/system@framework@boot-org.apache.http.legacy.boot.art
06-14 11:36:24.506 E/mono-rt (27806): 6fc56000-6fc57000 rw-p 00000000 fd:01 432599                             /data/dalvik-cache/arm/system@framework@boot-android.hidl.base-V1.0-java.art
06-14 11:36:24.507 E/mono-rt (27806): 6fc57000-6fc5a000 rw-p 00000000 fd:01 432601                             /data/dalvik-cache/arm/system@framework@boot-android.hidl.manager-V1.0-java.art
06-14 11:36:24.507 E/mono-rt (27806): 6fc5a000-6fc69000 rw-p 00000000 fd:01 432603                             /data/dalvik-cache/arm/system@framework@boot-com.lge.mdm.art
06-14 11:36:24.507 E/mono-rt (27806): 6fc69000-6fc6a000 rw-p 00000000 fd:01 432605                             /data/dalvik-cache/arm/system@framework@boot-QPerformance.art
06-14 11:36:24.507 E/mono-rt (27806): 6fc6a000-6fc6b000 rw-p 00000000 fd:01 432607                             /data/dalvik-cache/arm/system@framework@boot-tcmiface.art
06-14 11:36:24.507 E/mono-rt (27806): 6fc6b000-6fc6d000 rw-p 00000000 fd:01 432609                             /data/dalvik-cache/arm/system@framework@boot-telephony-ext.art
06-14 11:36:24.507 E/mono-rt (27806): 6fc6d000-6fc72000 rw-p 00000000 fd:01 432611                             /data/dalvik-cache/arm/system@framework@boot-WfdCommon.art
06-14 11:36:24.507 E/mono-rt (27806): 6fc72000-6fc73000 rw-p 00000000 fd:01 432613                             /data/dalvik-cache/arm/system@framework@boot-oem-services.art
06-14 11:36:24.508 E/mono-rt (27806): 6fc73000-6fc7a000 rw-p 00000000 fd:01 432615                             /data/dalvik-cache/arm/system@framework@boot-com.lge.fmradio.nablabs.art
06-14 11:36:24.508 E/mono-rt (27806): 6fc7a000-6fe4b000 r--p 00000000 fd:00 4240                               /system/framework/arm/boot.oat
06-14 11:36:24.508 E/mono-rt (27806): 6fe4b000-70446000 r-xp 001d1000 fd:00 4240                               /system/framework/arm/boot.oat
06-14 11:36:24.521 F/libc    (27806): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 27832 (Debugger agent)
Step request failed: Exception of type 'Mono.Debugger.Soft.VMDisconnectedException' was thrown.

Reproduce using the following configuration:

Microsoft Visual Studio Community 2019
Version 16.1.3
VisualStudio.16.Release/16.1.3+29009.5
Microsoft .NET Framework
Version 4.7.03062

Installed Version: Community

Visual C++ 2019   00435-60000-00000-AA808
Microsoft Visual C++ 2019

ADL Tools Service Provider   1.0
This package contains services used by Data Lake tools

ASP.NET and Web Tools 2019   16.1.429.50124
ASP.NET and Web Tools 2019

ASP.NET Web Frameworks and Tools 2019   16.1.429.50124
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   16.1.429.50124
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.3.9000.0
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools   16.1.429.50124
Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio   2.3.9000.0
Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools   3.1.1-beta4-19281-06+58a4b1e79aea28115e66b06f850c83a3f1fcb6d3
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Extensibility Message Bus   1.1.77 (master@24013d5)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

IntelliCode Extension   1.0
IntelliCode Visual Studio Extension Detailed Info

Microsoft Azure HDInsight Azure Node   2.3.9000.0
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service   2.3.9000.0
Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio   2.5
Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service   2.3.9000.0
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 0x10 - v2.9.20419.2

Microsoft Continuous Delivery Tools for Visual Studio   0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager   1.0
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers   1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   16.1.1 (2473f22)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   5.1.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info

ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info

SettingsCommands Extension   1.0
SettingsCommands Visual Studio Extension Detailed Info

SQL Server Data Tools   16.0.61904.23160
Microsoft SQL Server Data Tools

Test Adapter for Boost.Test   1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test.  The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test   1.0
Enables Visual Studio's testing tools with unit tests written for Google Test.  The use terms and Third Party Notices are available in the extension installation directory.

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript Tools   16.0.10506.2004
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   3.1.1-beta4-19281-06+58a4b1e79aea28115e66b06f850c83a3f1fcb6d3
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 10.4 for F# 4.6   16.1.0-beta.19253.3+42526fe359672a05fd562dc16a91a43d0fe047a7
Microsoft Visual F# Tools 10.4 for F# 4.6

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Spell Check Everywhere   VSSpellCheckEverywhere
An extension that enables spell checking within any Visual Studio file editor or tool window that uses WPF text boxes.
https://GitHub.com/EWSoftware/VSSpellChecker

Visual Studio Spell Checker   VSSpellChecker
An editor extension that checks the spelling of comments, strings, and plain text as you type or interactively with tool windows.
https://GitHub.com/EWSoftware/VSSpellChecker

Visual Studio Tools for CMake   1.0
Visual Studio Tools for CMake

Visual Studio Tools for CMake   1.0
Visual Studio Tools for CMake

Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers

Visual Studio Tools for Kubernetes   1.0
Visual Studio Tools for Kubernetes

Visual Studio Tools for Unity   4.1.1.0
Visual Studio Tools for Unity

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

Xamarin   16.1.0.543 (d16-1@34a619991)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   16.1.0.418 (remotes/origin/d16-1@5b958bb10)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   16.2.112 (4db4af4)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   9.3.0.22 (HEAD/8e7764fdf)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: mono/mono/2018-08@3cb36842fc4
    Java.Interop: xamarin/java.interop/d16-1@5ddc3e3
    LibZipSharp: grendello/LibZipSharp/d16-1@44de300
    LibZip: nih-at/libzip/rel-1-5-1@b95cf3f
    ProGuard: xamarin/proguard/master@905836d
    SQLite: xamarin/sqlite/3.27.1@8212a2d
    Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-1@acabd26


Xamarin.iOS and Xamarin.Mac SDK   12.10.0.153 (750a879)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Mono RuntimeMono-related issues: BCL bugs, AOT issues, etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions