From unknown Wed Jun 18 23:07:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60842 <60842@debbugs.gnu.org> To: bug#60842 <60842@debbugs.gnu.org> Subject: Status: 29.0.50; Crash when printing sqlite object Reply-To: bug#60842 <60842@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:07:03 +0000 retitle 60842 29.0.50; Crash when printing sqlite object reassign 60842 emacs submitter 60842 Troy Hinckley severity 60842 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 15 18:39:10 2023 Received: (at submit) by debbugs.gnu.org; 15 Jan 2023 23:39:10 +0000 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 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 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 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 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) 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) Date: Sun, 15 Jan 2023 16:38:52 -0700 From: Troy Hinckley To: bug-gnu-emacs@gnu.org Message-ID: <24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark> Subject: 29.0.50; Crash when printing sqlite object X-Readdle-Message-ID: 24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="63c48e93_327b23c6_4fe" 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --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-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 16 08:16:15 2023 Received: (at 60842) by debbugs.gnu.org; 16 Jan 2023 13:16:16 +0000 Received: from localhost ([127.0.0.1]:60795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHPLT-0001mP-FJ for submit@debbugs.gnu.org; Mon, 16 Jan 2023 08:16:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHPLO-0001m9-W8 for 60842@debbugs.gnu.org; Mon, 16 Jan 2023 08:16:14 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHPLI-00066w-I4; Mon, 16 Jan 2023 08:16:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=3YN/5x6K1+5Uu7eWvZoaYKjt/DgZorgNvHAFpKmuHxk=; b=UbzqaFlZxj3E 0+u93xj8ba6JIzShar47mrSBD7sPYMVcL3Nd42KtkDdjNdiUZVyov0CL2+ZgkxosjR9rdLFC+iQdD M8zJPTchFr3RXVpyLudgS/jdlr09xivN7xHgNfTvwebkg6Y8CAULi3w3ICI9O6kHQQ/bcLaR6KfCR QShUif5Zl4t90LWr80gFawZc1ZJAxlXyuWMH3mwP86a/YIhXVoLmULfjaJ6yT2ukSn9k3oE4GiU8o FL5SFxC+8cT/d2QQHe5ZZOP0I5W9ZtgWUG/bn+nWYa5ppD9AZrgWsYllYuSgLfIsHx4yzILAuCDa8 M58HEzySxoOrL112tQA43A==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHPLI-00039k-0U; Mon, 16 Jan 2023 08:16:04 -0500 Date: Mon, 16 Jan 2023 15:16:12 +0200 Message-Id: <83y1q24o2r.fsf@gnu.org> From: Eli Zaretskii To: Troy Hinckley , Paul Eggert In-Reply-To: <24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark> (message from Troy Hinckley on Sun, 15 Jan 2023 16:38:52 -0700) Subject: Re: bug#60842: 29.0.50; Crash when printing sqlite object References: <24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60842 Cc: 60842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 15 Jan 2023 16:38:52 -0700 > From: Troy Hinckley > > 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 Given that the abort is inside what sounds like the macOS run-time stack-checking function, crystal ball says this is related to what print_object does at the get-go: print_object (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag) { ptrdiff_t base_depth = print_depth; ptrdiff_t base_sp = prstack.sp; char buf[max (sizeof "from..to..in " + 2 * INT_STRLEN_BOUND (EMACS_INT), max (sizeof " . #" + INT_STRLEN_BOUND (intmax_t), max ((sizeof " with data 0x" + (sizeof (uintmax_t) * CHAR_BIT + 4 - 1) / 4), 40)))]; current_thread->stack_top = buf; <<<<<<<<<<<<<<<<<<<<<<<<<< If you remove the indicated line, does the crash go away? If removing that line doesn't help, please tell the dimension of the buf[] array that the code above calculates? In GDB, this is possible with the command 'ptype'; I don't know what is the lldb equivalent. > 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 This is a month-old build -- could you try with the latest emacs-29 branch of the Emacs Git repository? Paul, any ideas or suggestions? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 17 15:45:09 2023 Received: (at 60842) by debbugs.gnu.org; 17 Jan 2023 20:45:09 +0000 Received: from localhost ([127.0.0.1]:38398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHspR-0008ED-2J for submit@debbugs.gnu.org; Tue, 17 Jan 2023 15:45:09 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:33496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHspM-0008Cr-Ew for 60842@debbugs.gnu.org; Tue, 17 Jan 2023 15:45:07 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 36E7E16004F; Tue, 17 Jan 2023 12:44:58 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id qxQO0Frt0rdI; Tue, 17 Jan 2023 12:44:57 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8041D16005E; Tue, 17 Jan 2023 12:44:57 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 8041D16005E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1673988297; bh=xxA7yC9hMBlBKyGRlrMnH8Qx53hg632CX/5hm627dYs=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type: Content-Transfer-Encoding; b=iAo1po+EUXcy+xaIKjuUVlCuHC+CvUvgFUHGllqDZcS8tZipr64vBGk9DYRVRtjcn dKAOQtuNNpkcBS0MONfFjokQChexAheVFx5Y3Dxr0Ng8gPatKIofqIE3PHJoWge3MN R8zYfUMba2EpLWetFUTFoRB4qgDkTdWONsjC6064= X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id aVwYjRGrYHXE; Tue, 17 Jan 2023 12:44:57 -0800 (PST) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 61E1E16004F; Tue, 17 Jan 2023 12:44:57 -0800 (PST) Message-ID: <28e8c678-6769-b4e3-93c4-54dc19475c11@cs.ucla.edu> Date: Tue, 17 Jan 2023 12:44:57 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: bug#60842: 29.0.50; Crash when printing sqlite object Content-Language: en-US To: Eli Zaretskii , Troy Hinckley References: <24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark> <83y1q24o2r.fsf@gnu.org> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <83y1q24o2r.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: 60842 Cc: 60842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) On 1/16/23 05:16, Eli Zaretskii wrote: > char buf[max (sizeof "from..to..in " + 2 * INT_STRLEN_BOUND (EMACS_INT), > max (sizeof " . #" + INT_STRLEN_BOUND (intmax_t), > max ((sizeof " with data 0x" > + (sizeof (uintmax_t) * CHAR_BIT + 4 - 1) / 4), > 40)))]; > current_thread->stack_top = buf; <<<<<<<<<<<<<<<<<<<<<<<<<< > > If you remove the indicated line, does the crash go away? > > If removing that line doesn't help, please tell the dimension of the > buf[] array that the code above calculates? In GDB, this is possible > with the command 'ptype'; I don't know what is the lldb equivalent. sizeof buf should be 54 on his platform, which I assume has 64-bit addresses and 64-bit u?intmax_t. > Paul, any ideas or suggestions? Unfortunately not. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 29 02:36:57 2023 Received: (at 60842) by debbugs.gnu.org; 29 Jan 2023 07:36:57 +0000 Received: from localhost ([127.0.0.1]:42186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM2FF-0000Kq-2Q for submit@debbugs.gnu.org; Sun, 29 Jan 2023 02:36:57 -0500 Received: from mail-il1-f172.google.com ([209.85.166.172]:46932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM2FB-0000KV-Ay for 60842@debbugs.gnu.org; Sun, 29 Jan 2023 02:36:55 -0500 Received: by mail-il1-f172.google.com with SMTP id u8so4016452ilq.13 for <60842@debbugs.gnu.org>; Sat, 28 Jan 2023 23:36:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=5slo9i56uh+UwRrREmiDUrETN8SB50ShodYO3xl/fDQ=; b=L3MvfZvCMeH8Osj2km3U5GHtJclM8AwTp57kRjRd6U6S3r/rd2RhFk3MRlP9Ye5p7B gSAn1VFj9MZASqKwxPboJXcPZQA4S+pvtdIZKO9kF+8rL+5igyzaK0j7Dh/iPlcGH+7Q jZRlZPDqnzBYi3dXVjS2hm1TsExRABMxGSGksyYMvfSju/H83PgvjS6SBZLS/XxW7FHw jCNOVVAlWr+XNO5Iw272rzRrdHmjhKsGfgjTmgl8EPHl8l7Qu2cmmKEaSMvTqO2BcGhB bgXZZ5CbwE+Cf9fL30G0KB6KzvMqWFl/WeUw4opsfLGUtxK9/vWCOItMpcziB6DYDbo8 vTXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5slo9i56uh+UwRrREmiDUrETN8SB50ShodYO3xl/fDQ=; b=PHYsRdtCboAC7q7UHFzLKpcIxpNmvWp0evIO1aT6L5uy1QggJiRgCBrVkKsfFuQDz/ d8pny/X02QQtzGXZNNqb4PpFlNKPaSFth1y1sEOGywMtiWhRFLPPRBg7XTdYSCM02KPk FoUsciFrEuWQ7xArBiGQH+7pMH1vRiQMpdo2BRQ6/hLWMrBY6Ru6TYP02uZ1VFwVwPDr 6nyCuMh34voq9wo1tbqKUJLpOH1cSFWtgEyM27rDOFVIHoGc4KpHKspbI6SUW2bWZF+H LDtrQX1H2XO5fKyOOu6Qqhi+P2f1TxkDqiLYufIFWOgcRYPIJbavHCq3rzMkVx2DoBnw CVJg== X-Gm-Message-State: AO0yUKUnzDr17GzLK53JuED5MHEbNUKzXbMbd55pxv9gj7qXdH5slQ6Y KL81ZvPq03UzUP8URl+P7vA= X-Google-Smtp-Source: AK7set8q4KP4x2A2p+WLQUR298xXLJQVmiBIVWHY8DDjNP4oMrS2p8XVEi26nGzx0qpHIr5ghADiiw== X-Received: by 2002:a05:6e02:1bae:b0:30f:8a3b:6c04 with SMTP id n14-20020a056e021bae00b0030f8a3b6c04mr18981989ili.17.1674977807723; Sat, 28 Jan 2023 23:36:47 -0800 (PST) Received: from [192.168.1.122] (h24-54-181-16.ftcmco.broadband.dynamic.tds.net. [24.54.181.16]) by smtp.gmail.com with ESMTPSA id y8-20020a92c988000000b00310a798fce0sm2938778iln.1.2023.01.28.23.36.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Jan 2023 23:36:47 -0800 (PST) Date: Sun, 29 Jan 2023 00:36:40 -0700 From: Troy Hinckley To: Eli Zaretskii , Paul Eggert Message-ID: <2c09e4d8-1fa6-4838-b7e8-180818c0f7f8@Spark> In-Reply-To: <28e8c678-6769-b4e3-93c4-54dc19475c11@cs.ucla.edu> References: <24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark> <83y1q24o2r.fsf@gnu.org> <28e8c678-6769-b4e3-93c4-54dc19475c11@cs.ucla.edu> Subject: Re: bug#60842: 29.0.50; Crash when printing sqlite object X-Readdle-Message-ID: 2c09e4d8-1fa6-4838-b7e8-180818c0f7f8@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="63d6220e_2b0d8dbe_4fe" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60842 Cc: 60842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --63d6220e_2b0d8dbe_4fe Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry for the long delay. I updated my Emacs version to the latest 29 commit and the issue went away. I am no longer able to reproduce it. Thank you for the quick reply and debug though! On Jan 17, 2023 at 1:44 PM -0700, Paul Eggert , wrote: > On 1/16/23 05:16, Eli Zaretskii wrote: > > > char buf[max (sizeof "from..to..in " + 2 * INT_STRLEN_BOUND (EMACS_INT), > > max (sizeof " . #" + INT_STRLEN_BOUND (intmax_t), > > max ((sizeof " with data 0x" > > + (sizeof (uintmax_t) * CHAR_BIT + 4 - 1) / 4), > > 40)))]; > > current_thread->stack_top = buf; <<<<<<<<<<<<<<<<<<<<<<<<<< > > > > If you remove the indicated line, does the crash go away? > > > > If removing that line doesn't help, please tell the dimension of the > > buf[] array that the code above calculates? In GDB, this is possible > > with the command 'ptype'; I don't know what is the lldb equivalent. > > sizeof buf should be 54 on his platform, which I assume has 64-bit > addresses and 64-bit u?intmax_t. > > > > Paul, any ideas or suggestions? > > Unfortunately not. > --63d6220e_2b0d8dbe_4fe Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Sorry for the long delay. I updated my Emacs versio= n to the latest 29 commit and the issue went away. I am no longer able to= reproduce it. Thank you for the quick reply and debug though=21
On Jan 17, 2023 at 1:44 PM -0700, P= aul Eggert <eggert=40cs.ucla.edu>, wrote:
On 1/16/23 05:16, Eli Zaretskii wrote:

char buf=5Bmax (sizeof =22from..to..in =22 = + 2 * INT=5FSTRLEN=5FBOUND (EMACS=5FINT),
max (sizeof =22 . =23=22 + INT=5FSTRLEN=5FBOUND (intmax=5Ft),
max ((sizeof =22 with data 0x=22
+ (sizeof (uintmax=5Ft) * CHAR=5FBIT + 4 - 1) / 4),
40)))=5D;
current=5Fthread->stack=5Ftop =3D buf; <<<<<<<<= ;<<<<<<<<<<<<<<<<<<=

If you remove the indicated line, does the crash go away=3F

If removing that line doesn't help, please tell the dimension of the
buf=5B=5D array that the code above calculates=3F In GDB, this is possibl= e
with the command 'ptype'; I don't know what is the lldb equivalent.
=

sizeof buf should be 54 on his platform, which I assume has 64-bit
addresses and 64-bit u=3Fintmax=5Ft.


Paul, any ideas or suggestions=3F

Unfortunately not.

--63d6220e_2b0d8dbe_4fe-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 29 02:55:23 2023 Received: (at 60842-done) by debbugs.gnu.org; 29 Jan 2023 07:55:23 +0000 Received: from localhost ([127.0.0.1]:42212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM2X5-0000rr-CA for submit@debbugs.gnu.org; Sun, 29 Jan 2023 02:55:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM2X3-0000rc-Tf for 60842-done@debbugs.gnu.org; Sun, 29 Jan 2023 02:55:22 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM2Wx-0002rm-IO; Sun, 29 Jan 2023 02:55:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=KsTqrFReJDpN8Q/rdutquGbBB31wfhbjHrWQgIiiRpY=; b=VJqGEXhhULbf 07DD+lP0qVAKFPDSLZ8qJ/ZS6YvFxloL3n6gtuPgz+sXiN8CRh1+e0U32XyE/GruNsWsIRucmkEg/ 7hlVs4vjDAOSsk+Plw2i/KsWiiI2CJhRE+LdSCUpcbQK//r16L9c5TQAcA8QuSrNDmF9LVMPdyDYi //YzKzDV4q8En/F2kbrwE7Xz+98GcARS9mpv6Y6OWuO9H+CxSgl0CyeheCuR6rGjrshO38u1TIEEG AX2iEXKGdlDCnpZ94mrmJlxa9N2lDUDLNch9U9k7OY+u8Amnlqq/kDgMlpaNFWXZ4dvgAQ6/ftW10 w5TWmZw91OnadMgi1o3jdg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM2Wv-0003zk-UU; Sun, 29 Jan 2023 02:55:15 -0500 Date: Sun, 29 Jan 2023 09:55:04 +0200 Message-Id: <83357t93mv.fsf@gnu.org> From: Eli Zaretskii To: Troy Hinckley In-Reply-To: <2c09e4d8-1fa6-4838-b7e8-180818c0f7f8@Spark> (message from Troy Hinckley on Sun, 29 Jan 2023 00:36:40 -0700) Subject: Re: bug#60842: 29.0.50; Crash when printing sqlite object References: <24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark> <83y1q24o2r.fsf@gnu.org> <28e8c678-6769-b4e3-93c4-54dc19475c11@cs.ucla.edu> <2c09e4d8-1fa6-4838-b7e8-180818c0f7f8@Spark> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60842-done Cc: 60842-done@debbugs.gnu.org, eggert@cs.ucla.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 29 Jan 2023 00:36:40 -0700 > From: Troy Hinckley > Cc: 60842@debbugs.gnu.org > > Sorry for the long delay. I updated my Emacs version to the latest 29 commit and the issue went away. I am > no longer able to reproduce it. Thank you for the quick reply and debug though! Thanks, I'm therefore closing the bug. From unknown Wed Jun 18 23:07:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 26 Feb 2023 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator