Skip to content

Android 16KB: Crash on ISQLite3Provider.sqlite3_open_v2 #621

@phillippschmedt

Description

@phillippschmedt

We are using .NET 9 MAUI with the following packages:

        <PackageReference Include="SQLitePCLRaw.provider.sqlite3" Version="2.1.10" />
        <PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.10" />
        <PackageReference Include="SQLitePCLRaw.provider.dynamic_cdecl" Version="2.1.10" />
        <PackageReference Include="SQLitePCLRaw.bundle_e_sqlcipher" Version="2.1.10" />

I am using SQLitePCL.Batteries_V2.Init() and then a call to ISQLite3Provider.sqlite3_open_v2 will crash on an Android Device (Pixel 8a, Pixel 8, Android 15) with page size set to 16kb. Crashes won't happen if 16kb is not enabled.


=================================================================
	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.
=================================================================

No native Android stacktrace (see debuggerd output).

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x75cf786456e0):0x75cf786456d0  00 81 c1 3c 49 01 00 d0 4a 01 00 d0 29 e1 21 91  ...<I...J...).!.
0x75cf786456e0  a0 42 87 3c 00 81 c2 3c 4a 21 29 91 49 01 89 9a  .B.<...<J!).I...
0x75cf786456f0  a9 c2 05 f8 a0 42 88 3c 00 81 c3 3c 0a a1 40 a9  .....B.<...<..@.
0x75cf78645700  a0 42 89 3c aa 42 06 f8 bf 3b 03 d5 a8 c2 06 f8  .B.<.B...;......

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at NativeMethods:sqlite3_open_v2 <0x000ba>
	  at SQLitePCL.SQLite3Provider_e_sqlcipher:SQLitePCL.ISQLite3Provider.sqlite3_open_v2 <0x0007c>
	  at SQLitePCL.raw:sqlite3_open_v2 <0x0005a>
	  at SQLitePCL.raw:sqlite3_open_v2 <0x00058>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions