GNU bug report logs - #78762
[PATCH] Fix segfault in profiler-cpu-log and profiler-memory-log

Previous Next

Package: emacs;

Reported by: Zach Shaftel <zach <at> shaf.tel>

Date: Wed, 11 Jun 2025 20:04:01 UTC

Severity: normal

Tags: patch

Merged with 78763

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


Message #10 received at control <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Aaron Zeng <azeng <at> janestreet.com>, Zach Shaftel <zach <at> shaf.tel>
Cc: app-emacs-dev <at> janestreet.com, 78763 <at> debbugs.gnu.org
Subject: Re: bug#78763: 30.0.50;
 Calling (profiler-cpu-log) segfaults Emacs if profiler is not running
Date: Thu, 12 Jun 2025 08:07:32 +0300
merge 78763 78762
thanks

> Cc: app-emacs-dev <at> janestreet.com
> Date: Wed, 11 Jun 2025 17:03:04 -0400
> From:  Aaron Zeng via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> As of commit 22201dde773e5404f80baa1f59768e88d97a322a, calling
> (profiler-cpu-log) while the CPU profiler is not running causes Emacs to
> crash with a segfault.  I have confirmed this issue also appears at
> f69b822fb0e804a13ff7a4eb55fc2ae618e0de72, which was the tip of the
> master branch at the time of writing.
> 
> To reproduce, simply run:
> $ emacs -Q --batch --eval '(profiler-cpu-log)'
> 
> The gdb backtrace is attached to this email.

Thanks, this is the same problem as in bug#78762, so I've merged them.




This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.