SQLite concurrency crash on iOS 12

Originator:pablom
Number:rdar://44599864 Date Originated:September 19 2018, 9:25 AM
Status:Open Resolved:
Product:SQlite Product Version:
Classification:Crash/Hang/Data Loss Reproducible:Sometimes
 
Area:
Something not on this list

Summary: Sometimes, on iOS 12, SQLite will crash when multiple libraries try to access it concurrently.


Steps to Reproduce: There are no easy steps to reproduce it. We have multiple 3rd party libraries accessing SQLite, and this was not resulting in a crash on iOS 11 and older. But on iOS 12, our users are experiencing crashes, usually on application launch.


Expected Results: The app does not crash, and all 3rd party libraries can access SQLite successfully.


Actual Results: The app is crashing.


Version/Build:  iOS 12.0


Configuration: All devices and configurations.

Comments

Do you get 'database is locked' as an error from sqlite3_errmsg? If so, I have the same problem.

By larsrolfludvigeriksson at Dec. 11, 2018, 9:17 p.m. (reply...)

Eager to know if there's any update on this.

By rao.chethan.p at Oct. 26, 2018, 11:59 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!