all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Andrew Hyatt <ahyatt@gmail.com>
Cc: 58850@debbugs.gnu.org
Subject: bug#58850: 29.0.50; sqlite crashes on error
Date: Tue, 01 Nov 2022 09:45:37 +0200	[thread overview]
Message-ID: <83o7trce3i.fsf@gnu.org> (raw)
In-Reply-To: <CAM6wYYKp4Kd3tEJsUmuEenmZR3TSbj8MP0EqO_XBz3ooY_TmFA@mail.gmail.com> (message from Andrew Hyatt on Tue, 1 Nov 2022 00:28:36 -0400)

> From: Andrew Hyatt <ahyatt@gmail.com>
> Date: Tue, 1 Nov 2022 00:28:36 -0400
> Cc: 58850@debbugs.gnu.org
> 
> Right now, I narrowed the problem down to the sqlite connection name creation, since it is the printing of the
> sqlite object's name that causes the crash.

This is not at all clear from the backtrace you posted; see below.

> The creation of the name is on sqlite.c line 269
> (https://git.savannah.gnu.org/cgit/emacs.git/tree/src/sqlite.c#n269).  I can make the crash go away by
> substituting that line with my own filename:  name = build_string("/tmp/test.db");

That line just encodes the file name.  I have hard time believing it
could cause a problem like this.  What do you see in the value of
'name' after line 269 is executed?

For starters, please rebuild Emacs without optimizations and with
"--enable-checking=yes" at configure time, and then post a full
backtrace when running the recipe you posted.  The original backtrace
you posted seems to come from an optimized build (so line numbers
don't tell the whole story), and includes multiple references to ERT
functions, from which I conclude it was not obtained by running the
recipe, but by running something much more complex.

Armed with the accurate backtrace, we might have a different picture
of what causes this problem.





  reply	other threads:[~2022-11-01  7:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-29  0:47 bug#58850: 29.0.50; sqlite crashes on error Andrew Hyatt
2022-10-29  7:40 ` Eli Zaretskii
2022-10-29 23:44   ` Andrew Hyatt
2022-10-30  6:35     ` Eli Zaretskii
2022-11-01  4:28       ` Andrew Hyatt
2022-11-01  7:45         ` Eli Zaretskii [this message]
2022-11-01  9:03           ` Gerd Möllmann
2022-11-01  9:16             ` Gerd Möllmann
2022-11-02  3:33               ` Andrew Hyatt
2022-11-02  5:00                 ` Gerd Möllmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83o7trce3i.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=58850@debbugs.gnu.org \
    --cc=ahyatt@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.