unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master c0bb1aac10: Fix reader memory leak upon error (bug#56623)
       [not found] ` <20220829155029.5B5EEC0088A@vcs2.savannah.gnu.org>
@ 2022-08-29 21:21   ` Lars Ingebrigtsen
  2022-08-30  9:31     ` Mattias Engdegård
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-29 21:21 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: emacs-devel

Mattias Engdegård <mattiase@acm.org> writes:

>     Fix reader memory leak upon error (bug#56623)
>
>     Reported by Tom Gillespie; error found by Greg Hendershott.
>
>     * src/lread.c (read_stack_reset): New.
>     (read0): Reset read stack when unwinding from an error.

I have no idea whether it's this commit or not, but fns-tests.el is
segfaulting now (and it didn't yesterday).

I haven't tried to debug any further; perhaps it's obvious what the
problem may be.

double free or corruption (!prev)
Backtrace:
../src/emacs(+0x18e2b1)[0x5556c76b12b1]
../src/emacs(+0x4846c)[0x5556c756b46c]
../src/emacs(+0x48999)[0x5556c756b999]
../src/emacs(+0x18c79d)[0x5556c76af79d]
../src/emacs(+0x18c889)[0x5556c76af889]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7f7457a41140]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7f74576d5ce1]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7f74576bf537]
/lib/x86_64-linux-gnu/libc.so.6(+0x7e768)[0x7f7457718768]
/lib/x86_64-linux-gnu/libc.so.6(+0x85a5a)[0x7f745771fa5a]
/lib/x86_64-linux-gnu/libc.so.6(+0x8709c)[0x7f745772109c]
../src/emacs(+0x2a0719)[0x5556c77c3719]
../src/emacs(+0x1f7978)[0x5556c771a978]
../src/emacs(+0x228525)[0x5556c774b525]
../src/emacs(+0x229a20)[0x5556c774ca20]
../src/emacs(+0x1f8473)[0x5556c771b473]
../src/emacs(+0x22a380)[0x5556c774d380]
../src/emacs(+0x22af7e)[0x5556c774df7e]
../src/emacs(+0x23d645)[0x5556c7760645]
../src/emacs(+0x1fd737)[0x5556c7720737]
../src/emacs(+0x1fc18d)[0x5556c771f18d]
../src/emacs(+0x1fe767)[0x5556c7721767]
../src/emacs(+0x1f6cf7)[0x5556c7719cf7]
../src/emacs(+0x16d6d6)[0x5556c76906d6]
../src/emacs(+0x1f6c51)[0x5556c7719c51]
../src/emacs(+0x16cce8)[0x5556c768fce8]
../src/emacs(+0x173bb3)[0x5556c7696bb3]
../src/emacs(+0x173f2c)[0x5556c7696f2c]
../src/emacs(+0x51190)[0x5556c7574190]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7f74576c0d0a]
../src/emacs(+0x516ba)[0x5556c75746ba]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: master c0bb1aac10: Fix reader memory leak upon error (bug#56623)
  2022-08-29 21:21   ` master c0bb1aac10: Fix reader memory leak upon error (bug#56623) Lars Ingebrigtsen
@ 2022-08-30  9:31     ` Mattias Engdegård
  2022-08-30 10:08       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Mattias Engdegård @ 2022-08-30  9:31 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: emacs-devel

29 aug. 2022 kl. 23.21 skrev Lars Ingebrigtsen <larsi@gnus.org>:

> double free or corruption (!prev)

Thank you for noticing this! Corrective action was taken.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: master c0bb1aac10: Fix reader memory leak upon error (bug#56623)
  2022-08-30  9:31     ` Mattias Engdegård
@ 2022-08-30 10:08       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-30 10:08 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: emacs-devel

Mattias Engdegård <mattiase@acm.org> writes:

> Thank you for noticing this! Corrective action was taken.

Thanks; I can confirm that this fixes the crash.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-30 10:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <166178822896.15485.13175695435610050790@vcs2.savannah.gnu.org>
     [not found] ` <20220829155029.5B5EEC0088A@vcs2.savannah.gnu.org>
2022-08-29 21:21   ` master c0bb1aac10: Fix reader memory leak upon error (bug#56623) Lars Ingebrigtsen
2022-08-30  9:31     ` Mattias Engdegård
2022-08-30 10:08       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).