Skip to content

Encountering failure in MonoTests.System.Data.SqlClient.SqlParameterTest.Constructor7 on Android with AOT+LLVM enabled #1449

Description

@pjcollins

The MonoTests.System.Data.SqlClient.SqlParameterTest.Constructor7 test is throwing an NRE when running on recent devices when AOT and LLVM are enabled.

Steps to Reproduce

  1. Download prebuilt .apk file, and run it on an armeabi-v8a device:

adb install 15-7-aotllvm-Xamarin.Android.Bcl_Tests-Signed.apk
adb shell am instrument -w Xamarin.Android.Bcl_Tests/xamarin.android.bcltests.NUnitInstrumentation

  1. Alternatively, a smaller repro which just contains the relevant test source could likely be built and installed with AOT+LLVM.

Details

Link to .apk file - https://microsoft-my.sharepoint.com/:u:/p/pecolli/EYrN-tuwhJFJmkrnwj5vAgIBzEQFPGZkCUcmSkNMJUYMUg?e=LBt3gv
Link to obj output - https://microsoft-my.sharepoint.com/:u:/p/pecolli/EXGoMM2LZURMhg8mPY8IUyoBgDudDiDsjXrLA86zaPjHSQ?e=3YL4a8

Version Information

Windows 10 w/ VS 15.7
Xamarin.Android SDK 8.3.0.5 (HEAD/1a8ed5388)

Log File

System.NullReferenceException : Object reference not set to an instance of an object

    at System.Data.SqlClient.SqlParameter.set_Value (System.Object value) <0x763708cd20 + 0x0004c> in <7b546157567a403bad73e2a4238d041e>:0 
    at System.Data.SqlClient.SqlParameter..ctor (System.String parameterName, System.Data.SqlDbType dbType, System.Int32 size, System.Data.ParameterDirection direction, System.Byte precision, System.Byte scale, System.String sourceColumn, System.Data.DataRowVersion sourceVersion, System.Boolean sourceColumnNullMapping, System.Object value, System.String xmlSchemaCollectionDatabase, System.String xmlSchemaCollectionOwningSchema, System.String xmlSchemaCollectionName) <0x763708b7f4 + 0x00133> in <7b546157567a403bad73e2a4238d041e>:0 
    at (wrapper remoting-invoke-with-check) System.Data.SqlClient.SqlParameter..ctor(string,System.Data.SqlDbType,int,System.Data.ParameterDirection,byte,byte,string,System.Data.DataRowVersion,bool,object,string,string,string)
    at MonoTests.System.Data.SqlClient.SqlParameterTest.Constructor7 () <0x7636c3b1a8 + 0x000b3> in <7a9a7aabf2b04126b651ba32a599a0a1>:0 
    at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7638ed4800 + 0x00093> in <0981d6c38e4b427ab133461cb4d9b459>:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions