Signal 4 (SIGILL), code 1 (ILL_ILLOPC) crash

We’re having a crash from sqlcipher library when insert record, the detail for the crash is below, the crash happens for any sqlcipher library with version higher than 4.0.1, 4.0.1 works fine, any thoughts about this issue? Thanks.

01-03 16:06:11.024 10259 32340 32340 F DEBUG : signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x70da53d0f8 (*pc=0xcec08230)
01-03 16:06:11.024 10259 32340 32340 F DEBUG : x0 000000716ccfe9e0 x1 0000007ff72e19c0 x2 0000000000000000 x3 00000070da53cda0
01-03 16:06:11.024 1000 6502 6534 D SecContentProvider2: isCopyContactToSimAllowed = true
01-03 16:06:11.024 10259 32340 32340 F DEBUG : x4 0000007ff72e19c0 x5 00000070df36467c x6 3261346955327158 x7 4b5a352f74386356
01-03 16:06:11.024 10259 32340 32340 F DEBUG : x8 0000000000000400 x9 0000000000000000 x10 0000000000000000 x11 00000071fb6dc68c
01-03 16:06:11.024 10259 32340 32340 F DEBUG : x12 4736367674705052 x13 4667366f352f6e67 x14 0000000000000030 x15 0000020000000000
01-03 16:06:11.024 10259 32340 32340 F DEBUG : x16 000000000000007f x17 00000070da53d008 x18 0000007160a38771 x19 0000000000000080
01-03 16:06:11.024 10259 32340 32340 F DEBUG : x20 000000716ccfe9e0 x21 0000007ff72e19c0 x22 000000716ccfea30 x23 00000071609c0ba8
01-03 16:06:11.024 10259 32340 32340 F DEBUG : x24 00000071fb8dc020 x25 00000071fb8dc020 x26 0000000000000001 x27 00000071609c0ba8
01-03 16:06:11.024 10259 32340 32340 F DEBUG : x28 0000000000000058 x29 0000007ff72e18f0
01-03 16:06:11.024 10259 32340 32340 F DEBUG : sp 0000007ff72e18f0 lr 00000070da4f0680 pc 00000070da53d0f8
01-03 16:06:11.025 10259 32340 32340 F DEBUG :
01-03 16:06:11.025 10259 32340 32340 F DEBUG : backtrace:
01-03 16:06:11.025 10259 32340 32340 F DEBUG : #00 pc 000000000021f0f8 /data/app/test.sqlcipher.app-_iOQA9WZMLbZiXghluo2DQ==/lib/arm64/libsqlcipher.so (BuildId: 20e57623a947520624c177b74a89b4798ae9d338)

Hi @AlbertWangCa

When using any version of SQLCipher for Android above 4.0.1 crash on all devices, or a specific subset? Are you able to reproduce the crash when using the SQLCipher for Android test suite?

Any version above 4.0.1 crashes, test suite also crashes.

Hi @AlbertWangCa

Yes, but on what devices is it crashing on? You’re stack trace lists an arm64_v8a device. Do you have other devices with different ABI’s?

So far it only happens on this type of devices, we tested on a few other devices, no crashes have been found.

Yes, this type of device is Android 10, arm64_v8a

By the way the crashes happens in the native_execute method from https://github.com/sqlcipher/android-database-sqlcipher/blob/e18ea7b2bc7ee2604636dacbe943bbc918580d96/android-database-sqlcipher/src/main/cpp/net_sqlcipher_database_SQLiteStatement.cpp,

That’s what we can debug into so far.

Hi @AlbertWangCa,

What is the make and model (i.e., Samsung Galaxy 5) of the device the crash is occurring on? Would you also mind sharing what devices you are testing on where it does not crash?

Hi Nick,

Unfortunately I can’t expose that details, we will see if the vendor can contact Zetetic directly.

Thanks

Hello Nick,

Do you have email address that we can contact with you directly about the issue?

Thanks,
Albert

Hello @AlbertWangCa

Please feel free to reach out to us at support@zetetic.net to discuss support options. Thanks!

Hello Nick,

Could you please let me know if sqlcipher library uses openssl library? and what version of openssl in sqlcipher library 4.0.1 and 4.2?

Thanks!

Hi @AlbertWangCa

SQLCipher for Android does use OpenSSL. The 4.0.1 release used 1.1.1 while the 4.2.0 release uses 1.1.1b.

Thanks Nick for the quick reply!