test on macOS Sierra 10.12.6, with SQLite 3.20.0. Detail:
% /tmp/crashes cat crash.sql
PRAGMA empty_result_callbacks=1;
.dump
% /tmp/crashes cat crash.sql |/usr/local/Cellar/sqlite/3.20.0/bin/sqlite3
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
[1]4726 donecat crash.sql |
4727 segmentation fault /usr/local/Cellar/sqlite/3.20.0/bin/sqlite3
% /tmp/crashes lldb /usr/local/Cellar/sqlite/3.20.0/bin/sqlite3
(lldb) target create "/usr/local/Cellar/sqlite/3.20.0/bin/sqlite3"
Current executable set to '/usr/local/Cellar/sqlite/3.20.0/bin/sqlite3'
(x86_64).
(lldb) r --init crash.sql
Process 4736 launched: '/usr/local/Cellar/sqlite/3.20.0/bin/sqlite3' (x86_64)
-- Loading resources from crash.sql
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
Process 4736 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=1, address=0x0)
frame #0: 0x0001eb6a sqlite3`dump_callback + 34
sqlite3`dump_callback:
-> 0x1eb6a <+34>: movq (%rdx), %r15
0x1eb6d <+37>: movq 0x8(%rdx), %r14
0x1eb71 <+41>: movq 0x10(%rdx), %r13
0x1eb75 <+45>: leaq 0x9b4bd(%rip), %rsi ; "sqlite_sequence"
(lldb) register read rdx
rdx = 0x
(lldb) register read r15
r15 = 0x000100016dea sqlite3`sqlite3_value_text
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=1, address=0x0)
* frame #0: 0x0001eb6a sqlite3`dump_callback + 34
frame #1: 0x00010001be40 sqlite3`sqlite3_exec + 653
frame #2: 0x0001d66a sqlite3`run_schema_dump_query + 50
frame #3: 0x0001653b sqlite3`do_meta_command + 10564
frame #4: 0x0001af8c sqlite3`process_input + 534
frame #5: 0x00012f65 sqlite3`main + 1656
frame #6: 0x7fffafbf3235 libdyld.dylib`start + 1
frame #7: 0x7fffafbf3235 libdyld.dylib`start + 1
(lldb)
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users