From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Troy Hinckley Newsgroups: gmane.emacs.bugs Subject: bug#60842: 29.0.50; Crash when printing sqlite object Date: Sun, 15 Jan 2023 16:38:52 -0700 Message-ID: <24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="63c48e93_327b23c6_4fe" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26795"; mail-complaints-to="usenet@ciao.gmane.io" To: 60842@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 16 00:40:21 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pHCbt-0006nm-Bn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Jan 2023 00:40:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHCbb-0002P2-41; Sun, 15 Jan 2023 18:40:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHCba-0002OX-2N for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 18:40:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHCbZ-0005iM-Od for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 18:40:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHCbZ-0001hc-KG for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 18:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Troy Hinckley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Jan 2023 23:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60842 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16738259506461 (code B ref -1); Sun, 15 Jan 2023 23:40:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jan 2023 23:39:10 +0000 Original-Received: from localhost ([127.0.0.1]:59906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHCaj-0001g8-I0 for submit@debbugs.gnu.org; Sun, 15 Jan 2023 18:39:10 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHCag-0001fx-C2 for submit@debbugs.gnu.org; Sun, 15 Jan 2023 18:39:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHCag-0001oH-0H for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 18:39:06 -0500 Original-Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHCac-0005aO-V0 for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 18:39:05 -0500 Original-Received: by mail-il1-x133.google.com with SMTP id d10so13332748ilc.12 for ; Sun, 15 Jan 2023 15:39:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=zhjh+vyuY8jhd/tapZ967XxgbI/qdwDVlpworrQBZtA=; b=AuXQyDxYLgqHULa1fkel2hfgyFTkr56mAjoyLL3KOp/DFOaBa8aLkK3nQeaFEhRB9C Lijr9ikfhEZNTD0arMEF1u2Ce+xqFqffFB4ZYH0OxNrItcImffN8wn5qKyOquJi/cp15 D0eX0yWyAPei6tH8CE1YmhkrlvMCvhQoDEKW36xJQZK4bUjLA4a0yY73nKD4TOeLDeD3 rxLVLwcSPQRuEG3u552l+wGwUK5btl3k+H790p5V6sTZT+CPl95LsxzaeKlEyw0NUhLa req0w5WadFEtsTtH1ysG8m+Q6JfEbMigxbrxmXoVddVXVfae7nxZsg4MvUzCK3LDOPh6 4lvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:subject:message-id:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zhjh+vyuY8jhd/tapZ967XxgbI/qdwDVlpworrQBZtA=; b=rnwlRFDBK4k7aoF1ci/kEk5OCsGeGuNufz+xb1+b/kYZxolQ3OsBSoTd2Frg5Hygtl AwIEi/aDuhdXGmXVibp2LTfcUBNEWMWOcur8T3A3zyonx6GQ+UcPbich6GghrRRTFOou IILSEc50JfawnhKwlrG+Q5+1iN45SDPuuTtDcMUzALeFKwnY9+kLMjgr9S1l8WIhYT2v 3b6ZD689T7xuvQqLKNW0o1JLNGkOP71RjAy2iv6UHQrFeRdf0EIi6iND7VpBjxxPuYnz KSmvZ6mZyyHVYK7DfWPsANNMKywzTtvgP8x9+Ef45snNp5M7/iAPQIiAM+VR+N+jEwgF 3RWw== X-Gm-Message-State: AFqh2krAY9bskYdNqwvMdkKOvkYHp3dNBpSH5OOLupoQHqhJ+faB+uk6 i9MnrJJNDBER8Mh1IeNji81sISeG4AQ= X-Google-Smtp-Source: AMrXdXtCVvvlVpgNYzTVJzcEGjHplXM39TmgoWW5EYY2rmTZkPbaahdcyWrhbPauM5BdFzu9PQ64KQ== X-Received: by 2002:a92:dc8a:0:b0:30c:41:558 with SMTP id c10-20020a92dc8a000000b0030c00410558mr11057798iln.18.1673825940628; Sun, 15 Jan 2023 15:39:00 -0800 (PST) Original-Received: from [192.168.1.121] (h24-54-181-16.ftcmco.broadband.dynamic.tds.net. [24.54.181.16]) by smtp.gmail.com with ESMTPSA id x17-20020a029711000000b0039ea3e0a3easm4166938jai.35.2023.01.15.15.38.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jan 2023 15:39:00 -0800 (PST) X-Readdle-Message-ID: 24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark Received-SPF: pass client-ip=2607:f8b0:4864:20::133; envelope-from=t.macman@gmail.com; helo=mail-il1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253454 Archived-At: --63c48e93_327b23c6_4fe Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline I have run into a reproducible crash when trying to print a sqlite object on Emacs 29. This is the code that will lead to the crash with emacs -Q: (prin1-to-string (sqlite-open "/Users/troyhinckley/.emacs.d/var/org/org-roam.db")) Iterestingly it will only happen when using something that matches that path. Creating sqlite db anywhere else does not cause an issue. The path passed to sqlite-open has to start with /Users/troyhinckley/.emacs.d/var/org/org-roam Will crash when printed: /Users/troyhinckley/.emacs.d/var/org/org-roam.db /Users/troyhinckley/.emacs.d/var/org/org-roams.db /Users/troyhinckley/.emacs.d/var/org/org-roam-foo.db /Users/troyhinckley/.emacs.d/var/org/org-roam.xz Will not crash when printed: /Users/troyhinckley/.emacs.d/var/org/org-roa.db /Users/troyhinckley/.emacs.d/var/org-roam.db /Users/troyhinckley/.emacs.d/var/org/org-roa so it requires that prefix text. This happens even when I delete the db at that path. Also it is not the sqlite-open that crashes. That works fine. It is the call to prin1-to-string that crashes (you can see this in the backtrace as well). My best guess is that the sqlite library is caching some information about different databases somewhere on the system, and that has become corrupted, leading it to return something invalid when asked to print the object. That would explain why only things starting with that path will crash. I have no idea where that might be. BACKTRACE: (lldb) bt all * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT * frame #0: 0x00000001974ce1b0 libsystem_kernel.dylib`__pthread_kill + 8 frame #1: 0x0000000197504cec libsystem_pthread.dylib`pthread_kill + 288 frame #2: 0x000000019743e354 libsystem_c.dylib`__abort + 128 frame #3: 0x000000019742fd34 libsystem_c.dylib`__stack_chk_fail + 96 frame #4: 0x000000010476e528 Emacs`print_object + 5496 frame #5: 0x0000000104770308 Emacs`Fprin1_to_string + 132 frame #6: 0x000000010b9d77a0 elisp-mode-90dbfe40-11c86ede.eln`F656c6973702d2d6576616c2d6c6173742d736578702d7072696e742d76616c7565_elisp__eval_last_sexp_print_value_0 + 112 frame #7: 0x000000010474aa34 Emacs`Ffuncall + 316 frame #8: 0x000000010b9d7714 elisp-mode-90dbfe40-11c86ede.eln`F656c6973702d2d6576616c2d6c6173742d73657870_elisp__eval_last_sexp_0 + 368 frame #9: 0x000000010474aa34 Emacs`Ffuncall + 316 frame #10: 0x000000010b9d7bf0 elisp-mode-90dbfe40-11c86ede.eln`F6576616c2d6c6173742d73657870_eval_last_sexp_0 + 112 frame #11: 0x000000010474aa34 Emacs`Ffuncall + 316 frame #12: 0x0000000104747bc8 Emacs`Ffuncall_interactively + 68 frame #13: 0x000000010474aa34 Emacs`Ffuncall + 316 frame #14: 0x0000000104748c40 Emacs`Fcall_interactively + 4192 frame #15: 0x00000001090d55bc simple-fab5b0cf-76628045.eln`F636f6d6d616e642d65786563757465_command_execute_0 + 652 frame #16: 0x000000010474aa34 Emacs`Ffuncall + 316 frame #17: 0x00000001046d2268 Emacs`command_loop_1 + 1232 frame #18: 0x000000010474cd8c Emacs`internal_condition_case + 96 frame #19: 0x00000001046d1534 Emacs`command_loop_2 + 52 frame #20: 0x000000010474c7b0 Emacs`internal_catch + 88 frame #21: 0x000000010481487c Emacs`command_loop.cold.1 + 80 frame #22: 0x00000001046d1500 Emacs`command_loop + 152 frame #23: 0x00000001046d13bc Emacs`recursive_edit_1 + 148 frame #24: 0x00000001046d1960 Emacs`Frecursive_edit + 264 frame #25: 0x00000001046d099c Emacs`main + 7480 frame #26: 0x00000001971dbe50 dyld`start + 2544 thread #2 frame #0: 0x00000001974cbfa4 libsystem_kernel.dylib`__pselect + 8 frame #1: 0x00000001974cbe7c libsystem_kernel.dylib`pselect$DARWIN_EXTSN + 64 frame #2: 0x00000001047a7470 Emacs`process_output_producer_thread + 1380 frame #3: 0x000000019750506c libsystem_pthread.dylib`_pthread_start + 148 thread #3 frame #0: 0x00000001974cbfa4 libsystem_kernel.dylib`__pselect + 8 frame #1: 0x00000001974cbe7c libsystem_kernel.dylib`pselect$DARWIN_EXTSN + 64 frame #2: 0x00000001047a7590 Emacs`process_writer_thread + 268 frame #3: 0x000000019750506c libsystem_pthread.dylib`_pthread_start + 148 thread #4, name = 'gmain' frame #0: 0x00000001974d0a00 libsystem_kernel.dylib`__select + 8 frame #1: 0x000000010588bb20 libglib-2.0.0.dylib`g_poll + 424 frame #2: 0x000000010587ecc4 libglib-2.0.0.dylib`g_main_context_iterate + 340 frame #3: 0x000000010587ed8c libglib-2.0.0.dylib`g_main_context_iteration + 60 frame #4: 0x0000000105880124 libglib-2.0.0.dylib`glib_worker_main + 48 frame #5: 0x00000001058a33a8 libglib-2.0.0.dylib`g_thread_proxy + 68 frame #6: 0x000000019750506c libsystem_pthread.dylib`_pthread_start + 148 thread #5 frame #0: 0x00000001974cbfa4 libsystem_kernel.dylib`__pselect + 8 frame #1: 0x00000001974cbe7c libsystem_kernel.dylib`pselect$DARWIN_EXTSN + 64 frame #2: 0x00000001047e0c30 Emacs`-[EmacsApp fd_handler:] + 184 frame #3: 0x00000001984e5470 Foundation`__NSThread__start__ + 716 frame #4: 0x000000019750506c libsystem_pthread.dylib`_pthread_start + 148 thread #6, name = 'com.apple.NSEventThread' frame #0: 0x00000001974c5d70 libsystem_kernel.dylib`mach_msg2_trap + 8 frame #1: 0x00000001974d78a4 libsystem_kernel.dylib`mach_msg2_internal + 80 frame #2: 0x00000001974ce5c4 libsystem_kernel.dylib`mach_msg_overwrite + 540 frame #3: 0x00000001974c60ec libsystem_kernel.dylib`mach_msg + 24 frame #4: 0x00000001975e4bc0 CoreFoundation`__CFRunLoopServiceMachPort + 160 frame #5: 0x00000001975e34ac CoreFoundation`__CFRunLoopRun + 1232 frame #6: 0x00000001975e2888 CoreFoundation`CFRunLoopRunSpecific + 612 frame #7: 0x000000019a98e410 AppKit`_NSEventThread + 172 frame #8: 0x000000019750506c libsystem_pthread.dylib`_pthread_start + 148 thread #8 frame #0: 0x00000001974c7a1c libsystem_kernel.dylib`__workq_kernreturn + 8 thread #9 frame #0: 0x00000001974c7a1c libsystem_kernel.dylib`__workq_kernreturn + 8 thread #10 frame #0: 0x00000001974c7a1c libsystem_kernel.dylib`__workq_kernreturn + 8 LAST INSTRUCTIONS FROM DEBUGGER SESSION: (lldb) n Process 8086 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = instruction step over frame #0: 0x00000001023a4304 Emacs`Fprin1_to_string + 128 Emacs`Fprin1_to_string: -> 0x1023a4304 <+128>: bl 0x1023a0a20 ; print 0x1023a4308 <+132>: add x0, sp, #0x8 0x1023a430c <+136>: bl 0x10239fde4 ; print_finish 0x1023a4310 <+140>: ldr x8, [x24] Target 0: (Emacs) stopped. (lldb) n Process 8086 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT frame #0: 0x00000001974ce1b0 libsystem_kernel.dylib`__pthread_kill + 8 libsystem_kernel.dylib`: -> 0x1974ce1b0 <+8>: b.lo 0x1974ce1d0 ; <+40> 0x1974ce1b4 <+12>: pacibsp 0x1974ce1b8 <+16>: stp x29, x30, [sp, #-0x10]! 0x1974ce1bc <+20>: mov x29, sp Target 0: (Emacs) stopped. (lldb) n Process 8086 exited with status = 6 (0x00000006) Terminated due to signal 6 In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin22.1.0, NS appkit-2299.00 Version 13.0 (Build 22A380)) of 2022-12-05 built on Troys-MacBook-Pro.local Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.1 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp --infodir=/opt/homebrew/Cellar/emacs-plus@29/29.0.50/share/info/emacs --prefix=/opt/homebrew/Cellar/emacs-plus@29/29.0.50 --with-xml2 --with-gnutls --with-native-compilation --without-compress-install --without-dbus --with-imagemagick --with-modules --with-rsvg --with-xwidgets --with-ns --disable-ns-self-contained 'CFLAGS=-Os -w -pipe -mmacosx-version-min=13 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' 'CPPFLAGS=-I/opt/homebrew/opt/zlib/include -I/opt/homebrew/opt/jpeg/include -I/opt/homebrew/opt/libomp/include -I/opt/homebrew/opt/icu4c/include -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -isystem/opt/homebrew/include -F/opt/homebrew/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk' 'LDFLAGS=-L/opt/homebrew/opt/zlib/lib -L/opt/homebrew/opt/jpeg/lib -L/opt/homebrew/opt/libomp/lib -L/opt/homebrew/opt/icu4c/lib -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/lib -F/opt/homebrew/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'' Configured features: ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM XWIDGETS ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 77340 8688) (symbols 48 7009 0) (strings 32 19124 2266) (string-bytes 1 590662) (vectors 16 16275) (vector-slots 8 329701 12255) (floats 8 27 46) (intervals 56 305 0) (buffers 984 10)) --63c48e93_327b23c6_4fe Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I have run into a reproducible crash when trying to= print a sqlite
object on Emacs 29. This is the code that will lead to the crash with
emacs -Q:

(prin1-to-string (sqlite-open
=22/Users/troyhinckley/.emacs.d/var/org/org-roam.db=22))

Iterestingly it will only happen when using something that matches that path. Creating sqlite db anywhere else does not cause an issue. The path<= br /> passed to sqlite-open has to start with
/Users/troyhinckley/.emacs.d/var/org/org-roam

Will crash when printed:
/Users/troyhinckley/.emacs.d/var/org/org-roam.db
/Users/troyhinckley/.emacs.d/var/org/org-roams.db
/Users/troyhinckley/.emacs.d/var/org/org-roam-foo.db
/Users/troyhinckley/.emacs.d/var/org/org-roam.xz

Will not crash when printed:
/Users/troyhinckley/.emacs.d/var/org/org-roa.db
/Users/troyhinckley/.emacs.d/var/org-roam.db
/Users/troyhinckley/.emacs.d/var/org/org-roa

so it requires that prefix text. This happens even when I delete the db at that path. Also it is not the sqlite-open that crashes. That works
fine. It is the call to prin1-to-string that crashes (you can see this in the backtrace as well).

My best guess is that the sqlite library is caching some information
about different databases somewhere on the system, and that has become corrupted, leading it to return something invalid when asked to print
the object. That would explain why only things starting with that path will crash. I have no idea where that might be.



BACKTRACE:



(lldb) bt all
* thread =231, queue =3D 'com.apple.main-thread', stop reason =3D signal = SIGABRT
* frame =230: 0x00000001974ce1b0 libsystem=5Fkernel.dylib=60=5F=5Fpthread= =5Fkill + 8
frame =231: 0x0000000197504cec libsystem=5Fpthread.dylib=60pthread=5Fkill= + 288
frame =232: 0x000000019743e354 libsystem=5Fc.dylib=60=5F=5Fabort + 128 frame =233: 0x000000019742fd34 libsystem=5Fc.dylib=60=5F=5Fstack=5Fchk=5F= fail + 96
frame =234: 0x000000010476e528 Emacs=60print=5Fobject + 5496
frame =235: 0x0000000104770308 Emacs=60=46prin1=5Fto=5Fstring + 132
= frame =236: 0x000000010b9d77a0 elisp-mode-90dbfe40-11c86ede.eln=60=46656c= 6973702d2d6576616c2d6c6173742d736578702d7072696e742d76616c7565=5Felisp=5F= =5Feval=5Flast=5Fsexp=5Fprint=5Fvalue=5F0 + 112
frame =237: 0x000000010474aa34 Emacs=60=46funcall + 316
frame =238: 0x000000010b9d7714 elisp-mode-90dbfe40-11c86ede.eln=60=46656c= 6973702d2d6576616c2d6c6173742d73657870=5Felisp=5F=5Feval=5Flast=5Fsexp=5F= 0 + 368
frame =239: 0x000000010474aa34 Emacs=60=46funcall + 316
frame =2310: 0x000000010b9d7bf0 elisp-mode-90dbfe40-11c86ede.eln=60=46657= 6616c2d6c6173742d73657870=5Feval=5Flast=5Fsexp=5F0 + 112
frame =2311: 0x000000010474aa34 Emacs=60=46funcall + 316
frame =2312: 0x0000000104747bc8 Emacs=60=46funcall=5Finteractively + 68 frame =2313: 0x000000010474aa34 Emacs=60=46funcall + 316
frame =2314: 0x0000000104748c40 Emacs=60=46call=5Finteractively + 4192 frame =2315: 0x00000001090d55bc simple-fab5b0cf-76628045.eln=60=46636f6d6= d616e642d65786563757465=5Fcommand=5Fexecute=5F0 + 652
frame =2316: 0x000000010474aa34 Emacs=60=46funcall + 316
frame =2317: 0x00000001046d2268 Emacs=60command=5Floop=5F1 + 1232
frame =2318: 0x000000010474cd8c Emacs=60internal=5Fcondition=5Fcase + 96<= br /> frame =2319: 0x00000001046d1534 Emacs=60command=5Floop=5F2 + 52
frame =2320: 0x000000010474c7b0 Emacs=60internal=5Fcatch + 88
frame =2321: 0x000000010481487c Emacs=60command=5Floop.cold.1 + 80
frame =2322: 0x00000001046d1500 Emacs=60command=5Floop + 152
frame =2323: 0x00000001046d13bc Emacs=60recursive=5Fedit=5F1 + 148
frame =2324: 0x00000001046d1960 Emacs=60=46recursive=5Fedit + 264
frame =2325: 0x00000001046d099c Emacs=60main + 7480
frame =2326: 0x00000001971dbe50 dyld=60start + 2544
thread =232
frame =230: 0x00000001974cbfa4 libsystem=5Fkernel.dylib=60=5F=5Fpselect += 8
frame =231: 0x00000001974cbe7c libsystem=5Fkernel.dylib=60pselect=24DARWI= N=5FEXTSN + 64
frame =232: 0x00000001047a7470 Emacs=60process=5Foutput=5Fproducer=5Fthre= ad + 1380
frame =233: 0x000000019750506c libsystem=5Fpthread.dylib=60=5Fpthread=5Fs= tart + 148
thread =233
frame =230: 0x00000001974cbfa4 libsystem=5Fkernel.dylib=60=5F=5Fpselect += 8
frame =231: 0x00000001974cbe7c libsystem=5Fkernel.dylib=60pselect=24DARWI= N=5FEXTSN + 64
frame =232: 0x00000001047a7590 Emacs=60process=5Fwriter=5Fthread + 268 frame =233: 0x000000019750506c libsystem=5Fpthread.dylib=60=5Fpthread=5Fs= tart + 148
thread =234, name =3D 'gmain'
frame =230: 0x00000001974d0a00 libsystem=5Fkernel.dylib=60=5F=5Fselect + = 8
frame =231: 0x000000010588bb20 libglib-2.0.0.dylib=60g=5Fpoll + 424
= frame =232: 0x000000010587ecc4 libglib-2.0.0.dylib=60g=5Fmain=5Fcontext=5F= iterate + 340
frame =233: 0x000000010587ed8c libglib-2.0.0.dylib=60g=5Fmain=5Fcontext=5F= iteration + 60
frame =234: 0x0000000105880124 libglib-2.0.0.dylib=60glib=5Fworker=5Fmain= + 48
frame =235: 0x00000001058a33a8 libglib-2.0.0.dylib=60g=5Fthread=5Fproxy += 68
frame =236: 0x000000019750506c libsystem=5Fpthread.dylib=60=5Fpthread=5Fs= tart + 148
thread =235
frame =230: 0x00000001974cbfa4 libsystem=5Fkernel.dylib=60=5F=5Fpselect += 8
frame =231: 0x00000001974cbe7c libsystem=5Fkernel.dylib=60pselect=24DARWI= N=5FEXTSN + 64
frame =232: 0x00000001047e0c30 Emacs=60-=5BEmacsApp fd=5Fhandler:=5D + 18= 4
frame =233: 0x00000001984e5470 =46oundation=60=5F=5FNSThread=5F=5Fstart=5F= =5F + 716
frame =234: 0x000000019750506c libsystem=5Fpthread.dylib=60=5Fpthread=5Fs= tart + 148
thread =236, name =3D 'com.apple.NSEventThread'
frame =230: 0x00000001974c5d70 libsystem=5Fkernel.dylib=60mach=5Fmsg2=5Ft= rap + 8
frame =231: 0x00000001974d78a4 libsystem=5Fkernel.dylib=60mach=5Fmsg2=5Fi= nternal + 80
frame =232: 0x00000001974ce5c4 libsystem=5Fkernel.dylib=60mach=5Fmsg=5Fov= erwrite + 540
frame =233: 0x00000001974c60ec libsystem=5Fkernel.dylib=60mach=5Fmsg + 24=
frame =234: 0x00000001975e4bc0 Core=46oundation=60=5F=5FC=46RunLoopServic= eMachPort + 160
frame =235: 0x00000001975e34ac Core=46oundation=60=5F=5FC=46RunLoopRun + = 1232
frame =236: 0x00000001975e2888 Core=46oundation=60C=46RunLoopRunSpecific = + 612
frame =237: 0x000000019a98e410 AppKit=60=5FNSEventThread + 172
frame =238: 0x000000019750506c libsystem=5Fpthread.dylib=60=5Fpthread=5Fs= tart + 148
thread =238
frame =230: 0x00000001974c7a1c libsystem=5Fkernel.dylib=60=5F=5Fworkq=5Fk= ernreturn + 8
thread =239
frame =230: 0x00000001974c7a1c libsystem=5Fkernel.dylib=60=5F=5Fworkq=5Fk= ernreturn + 8
thread =2310
frame =230: 0x00000001974c7a1c libsystem=5Fkernel.dylib=60=5F=5Fworkq=5Fk= ernreturn + 8



LAST INSTRUCTIONS =46ROM DEBUGGER SESSION:

(lldb) n
Process 8086 stopped
* thread =231, queue =3D 'com.apple.main-thread', stop reason =3D instruc= tion step over
frame =230: 0x00000001023a4304 Emacs=60=46prin1=5Fto=5Fstring + 128
= Emacs=60=46prin1=5Fto=5Fstring:
-> 0x1023a4304 <+128>: bl 0x1023a0a20 ; print
0x1023a4308 <+132>: add x0, sp, =230x8
0x1023a430c <+136>: bl 0x10239fde4 ; print=5Ffinish
0x1023a4310 <+140>: ldr x8, =5Bx24=5D
Target 0: (Emacs) stopped.
(lldb) n
Process 8086 stopped
* thread =231, queue =3D 'com.apple.main-thread', stop reason =3D signal = SIGABRT
frame =230: 0x00000001974ce1b0 libsystem=5Fkernel.dylib=60=5F=5Fpthread=5F= kill + 8
libsystem=5Fkernel.dylib=60:
-> 0x1974ce1b0 <+8>: b.lo 0x1974ce1d0 ; <+40>
0x1974ce1b4 <+12>: pacibsp
0x1974ce1b8 <+16>: stp x29, x30, =5Bsp, =23-0x10=5D=21
0x1974ce1bc <+20>: mov x29, sp
Target 0: (Emacs) stopped.
(lldb) n
Process 8086 exited with status =3D 6 (0x00000006) Terminated due to sign= al 6




In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin22.1.0, NS
appkit-2299.00 Version 13.0 (Build 22A380)) of 2022-12-05 built on
Troys-MacBook-Pro.local
Windowing system distributor 'Apple', version 10.3.2299
System Description: macOS 13.1

Configured using:
'configure --disable-dependency-tracking --disable-silent-rules
--enable-locallisppath=3D/opt/homebrew/share/emacs/site-lisp
--infodir=3D/opt/homebrew/Cellar/emacs-plus=4029/29.0.50/share/info/emacs=
--prefix=3D/opt/homebrew/Cellar/emacs-plus=4029/29.0.50 --with-xml2
= --with-gnutls --with-native-compilation --without-compress-install
--without-dbus --with-imagemagick --with-modules --with-rsvg
--with-xwidgets --with-ns --disable-ns-self-contained 'C=46LAGS=3D-Os -w<= br /> -pipe -mmacosx-version-min=3D13
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
-D=46D=5FSETSIZE=3D10000 -DDARWIN=5FUNLIMITED=5FSELECT'
'CPP=46LAGS=3D-I/opt/homebrew/opt/zlib/include
-I/opt/homebrew/opt/jpeg/include -I/opt/homebrew/opt/libomp/include
= -I/opt/homebrew/opt/icu4c/include
-I/opt/homebrew/opt/openssl=401.1/include
-I/opt/homebrew/opt/readline/include -isystem/opt/homebrew/include
-=46/opt/homebrew/=46rameworks
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
'LD=46LAGS=3D-L/opt/homebrew/opt/zlib/lib -L/opt/homebrew/opt/jpeg/lib -L/opt/homebrew/opt/libomp/lib -L/opt/homebrew/opt/icu4c/lib
-L/opt/homebrew/opt/openssl=401.1/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/lib -=46/opt/homebrew/=46rameworks
-Wl,-headerpad=5Fmax=5Finstall=5Fnames
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk''

Configured features:
ACL GI=46 GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES
NATIVE=5FCOMP NOTI=46Y KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TI=46=46=
TOOLKIT=5FSCROLL=5FBARS WEBP XIM XWIDGETS ZLIB

Important settings:
value of =24LC=5FALL: en=5FUS.UT=46-8
locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t

Load-path shadows:
None found.

=46eatures:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068<= br /> epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs<= br /> comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra
help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register<= br /> page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
= european ethiopic indian cyrillic chinese composite emoji-zwj charscript<= br /> charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
= files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal kqueue cocoa ns lcms2 multi-tty
make-network-process native-compile emacs)

Memory information:
((conses 16 77340 8688)
(symbols 48 7009 0)
(strings 32 19124 2266)
(string-bytes 1 590662)
(vectors 16 16275)
(vector-slots 8 329701 12255)
(floats 8 27 46)
(intervals 56 305 0)
(buffers 984 10))
--63c48e93_327b23c6_4fe--