Skip to content
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

ncorrect checksum for freed object #1252

Open
GitNirajHub opened this issue Mar 28, 2024 · 1 comment
Open

ncorrect checksum for freed object #1252

GitNirajHub opened this issue Mar 28, 2024 · 1 comment

Comments

@GitNirajHub
Copy link

Build Information

  • SQLite.swift 0.15.0
  • Xcode 15.2 (macOS 14.1.2)
  • Swift Package Manager

Issue

We are observing an crash caused while executing insert(_:userInfo:otherSetters:)

OS Version: macOS 14.1.2 (23B92)
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Crashed Thread: 12

Application Specific Information:
AppName(56319,0x16d5bf000) malloc: Incorrect checksum for freed object 0x119899400: probably modified after being freed.
Corrupt value: 0x0
 >
Rogue memory write has corrupted memory.

Thread 12 Crashed:
0   libsystem_kernel.dylib          0x30687011c         __pthread_kill
1   libsystem_pthread.dylib         0x3068e2cbc         pthread_kill
2   libsystem_c.dylib               0x306692a3c         abort
3   libsystem_malloc.dylib          0x306528b04         malloc_vreport
4   libsystem_malloc.dylib          0x306548248         malloc_zone_error
5   libsystem_malloc.dylib          0x306534234         free_list_checksum_botch
6   libsystem_malloc.dylib          0x306521798         small_free_list_remove_ptr_no_clear
7   libsystem_malloc.dylib          0x30651cd5c         small_malloc_from_free_list
8   libsystem_malloc.dylib          0x30651c4b8         small_malloc_should_clear
9   libsystem_malloc.dylib          0x30651c2e8         szone_malloc_should_clear
10  libswiftCore.dylib              0x325d5663c         swift_slowAlloc
11  libswiftCore.dylib              0x325d56838         swift_allocObject
12  libswiftCore.dylib              0x3259d9e14         _ArrayBuffer._consumeAndCreateNew
13  libswiftCore.dylib              0x3259e6040         Array._createNewBuffer
14  Foundation                      0x308e30b50         _JSONUnkeyedEncodingContainer.encode<T>
15  Foundation                      0x308e31340         _JSONUnkeyedEncodingContainer
16  libswiftCore.dylib              0x325a38278         Array<T>.encode
17  libswiftCore.dylib              0x325a383b4         [A]
18  libswiftCore.dylib              0x325d15898         Encodable.encode
19  Foundation                      0x308e358f8         __JSONEncoder.wrapGeneric<T>
20  Foundation                      0x308e39130         __JSONEncoder.wrapGeneric<T>
21  Foundation                      0x308e35afc         __JSONEncoder._wrapGeneric<T>
22  Foundation                      0x308e28be0         __JSONEncoder.wrapGeneric<T>
23  Foundation                      0x308e283d8         JSONEncoder.encode<T>
24  Foundation                      0x308e29a78         JSONEncoder._encode<T>
25  Foundation                      0x308e28394         JSONEncoder.encode<T>
26  Foundation                      0x308e379d0         JSONEncoder.encode<T>
27  AppName                           0x202f9046c         SQLiteEncoder.SQLiteKeyedEncodingContainer.encode<T> (Coding.swift:266)
28  AppName                           0x202f90e78         SQLiteEncoder.SQLiteKeyedEncodingContainer<T>
29  libswiftCore.dylib              0x325a23734         _KeyedEncodingContainerBox.encode<T>
30  libswiftCore.dylib              0x325a17790         KeyedEncodingContainer.encode<T>
31  AppName                           0x202f63b78         Document.encode
32  AppName                           0x202f63d0c         Document
33  libswiftCore.dylib              0x325d15898         Encodable.encode
34  AppName                           0x202f8ec60         QueryType.insert
35  AppName                           0x202f8e674         QueryType.insert

@GitNirajHub
Copy link
Author

Hi Guys, any update on thsi?

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

No branches or pull requests

1 participant