Skip to content

Crash in Prepare #977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Conversation

RameshBachiraju
Copy link

There is a crash observed in prepare, changed the code to use statement.failableNext and modified AnyIterator appropriately

Crash Log
0 libswiftCore.dylib 0x10c23a1a4 specialized assertionFailure(::file:line🎏) + 42360
1 libswiftCore.dylib 0x10c28fc48 swift_unexpectedError + 280
2 SQLite 0x10b1f0b5c $S6SQLite10ConnectionC7prepareys11AnySequenceVyAA3RowVGAA9QueryType_pKFs0D8IteratorVyAHGycfU_AHSgycfU
+ 204
3 SQLite 0x10b1fbcd0 $S6SQLite3RowVSgIego_ADIegr_TRTA + 24
4 libswiftCore.dylib 0x10c21e320 _ClosureBasedIterator.next() + 93472
5 libswiftCore.dylib 0x10c21e4ac _IteratorBox.next() + 93868
6 libswiftCore.dylib 0x10c0e0050 AnyIterator.next() + 237412
7 libswiftCore.dylib 0x10c21e4ac _IteratorBox.next() + 93868

Fixing the prepare method to avoid crash
Fixed AnyIterator for crash in prepare statement
@0xced
Copy link
Contributor

0xced commented Jan 22, 2020

I think this issue would be better fixed by #785.

sergeymild added a commit to sergeymild/SQLite.swift that referenced this pull request Jun 9, 2020
@nathanfallet
Copy link
Collaborator

This was fixed by another pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants