Skip to content

Electron 9: crash in SQLite 5.x on shutdown #8

@bpasero

Description

@bpasero

To reproduce:

  • be on macOS
  • in VSCode open the ben/sqlite-5.x branch
  • yarn && yarn watch
  • start VSCode and quit

Dump:

Operating system: Mac OS X
                  10.15.6 19G73
CPU: amd64
     family 6 model 158 stepping 13
     16 CPUs
GPU: UNKNOWN
Crash reason:  0x00000000 / 0x00000000
Crash address: 0x7fff6890733a
Process uptime: 5 seconds
Thread 0 (crashed)
 0  libsystem_kernel.dylib!__pthread_kill + 0xa
    rax = 0x0000000000000000   rdx = 0x0000000000000000
    rcx = 0x00007ffee5202e48   rbx = 0x000000010f3b0dc0
    rsi = 0x0000000000000006   rdi = 0x0000000000000307
    rbp = 0x00007ffee5202e70   rsp = 0x00007ffee5202e48
     r8 = 0x0000000000000000    r9 = 0x0000000000989680
    r10 = 0x000000010f3b0dc0   r11 = 0x0000000000000246
    r12 = 0x0000000000000307   r13 = 0x0000000000000050
    r14 = 0x0000000000000006   r15 = 0x0000000000000016
    rip = 0x00007fff6890733a
    Found by: given as instruction pointer in context
 1  libsystem_c.dylib!__abort + 0x8b
    rbp = 0x00007ffee5202ec0   rsp = 0x00007ffee5202e80
    rip = 0x00007fff6888e8a2
    Found by: previous frame's frame pointer
 2  libsystem_c.dylib!abort + 0x87
    rbp = 0x00007ffee5202f00   rsp = 0x00007ffee5202ed0
    rip = 0x00007fff6888e817
    Found by: previous frame's frame pointer
 3  libsystem_malloc.dylib!malloc_vreport + 0x224
    rbp = 0x00007ffee5202f60   rsp = 0x00007ffee5202f10
    rip = 0x00007fff6898450b
    Found by: previous frame's frame pointer
 4  libsystem_malloc.dylib!malloc_report + 0x97
    rbp = 0x00007ffee5203040   rsp = 0x00007ffee5202f70
    rip = 0x00007fff6898740f
    Found by: previous frame's frame pointer
 5  Electron Framework + 0x5fb060c
    rbp = 0x00007ffee5203060   rsp = 0x00007ffee5203050
    rip = 0x000000011539b60c
    Found by: previous frame's frame pointer
 6  sqlite.node + 0x123a5
    rbp = 0x00007ffee5203080   rsp = 0x00007ffee5203070
    rip = 0x000000011a2203a5
    Found by: previous frame's frame pointer
 7  Electron Framework + 0x5fc84f9
    rbp = 0x00007ffee52030b0   rsp = 0x00007ffee5203090
    rip = 0x00000001153b34f9
    Found by: previous frame's frame pointer
 8  Electron Framework + 0x5fc8482
    rbp = 0x00007ffee52030e0   rsp = 0x00007ffee52030c0
    rip = 0x00000001153b3482
    Found by: previous frame's frame pointer
 9  Electron Framework + 0x5fc830e
    rbp = 0x00007ffee5203100   rsp = 0x00007ffee52030f0
    rip = 0x00000001153b330e
    Found by: previous frame's frame pointer
10  Electron Framework + 0x5f9cbaf
    rbp = 0x00007ffee5203170   rsp = 0x00007ffee5203110
    rip = 0x0000000115387baf
    Found by: previous frame's frame pointer
11  Electron Framework + 0x5f6a28e
    rbp = 0x00007ffee5203190   rsp = 0x00007ffee5203180
    rip = 0x000000011535528e
    Found by: previous frame's frame pointer
12  Electron Framework + 0xd769f
    rbp = 0x00007ffee52031e0   rsp = 0x00007ffee52031a0
    rip = 0x000000010f4c269f
    Found by: previous frame's frame pointer
13  Electron Framework + 0x1c0d5d1
    rbp = 0x00007ffee5203270   rsp = 0x00007ffee52031f0
    rip = 0x0000000110ff85d1
    Found by: previous frame's frame pointer
14  Electron Framework + 0x1c0ee74
    rbp = 0x00007ffee52032b0   rsp = 0x00007ffee5203280
    rip = 0x0000000110ff9e74
    Found by: previous frame's frame pointer
15  Electron Framework + 0x1c0abf4
    rbp = 0x00007ffee5203300   rsp = 0x00007ffee52032c0
    rip = 0x0000000110ff5bf4
    Found by: previous frame's frame pointer
16  Electron Framework + 0x1ab3f66
    rbp = 0x00007ffee5203380   rsp = 0x00007ffee5203310
    rip = 0x0000000110e9ef66
    Found by: previous frame's frame pointer
17  Electron Framework + 0x1ab3bbb
    rbp = 0x00007ffee52033f0   rsp = 0x00007ffee5203390
    rip = 0x0000000110e9ebbb
    Found by: previous frame's frame pointer
18  Electron Framework + 0x40392c8
    rbp = 0x00007ffee5203740   rsp = 0x00007ffee5203400
    rip = 0x00000001134242c8
    Found by: previous frame's frame pointer
19  Electron Framework + 0xd32d54
    rbp = 0x00007ffee52037d0   rsp = 0x00007ffee5203750
    rip = 0x000000011011dd54
    Found by: previous frame's frame pointer
20  Electron Framework + 0x2bd4
    rbp = 0x00007ffee5203860   rsp = 0x00007ffee52037e0
    rip = 0x000000010f3edbd4
    Found by: previous frame's frame pointer
21  Electron!main [electron_main.cc : 274 + 0xa]
    rbp = 0x00007ffee5203910   rsp = 0x00007ffee5203870
    rip = 0x000000010a9fd110
    Found by: previous frame's frame pointer
22  libdyld.dylib!start + 0x1
    rbp = 0x00007ffee5203928   rsp = 0x00007ffee5203920
    rip = 0x00007fff687bfcc9
    Found by: previous frame's frame pointer
23  libdyld.dylib!start + 0x1
    rbp = 0x00007ffee5203928   rsp = 0x00007ffee5203928
    rip = 0x00007fff687bfcc9
    Found by: stack scanning

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions