Subject: Re: bug#78763: 30.0.50; Calling (profiler-cpu-log) segfaults Emacs if profiler is not running

From: Eli Zaretskii <[email-masked]>
Date: Thu, 12 Jun 2025 08:07:32 +0300

merge 78763 78762
thanks

> Cc: [email-masked]
> 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" <[email-masked]>
> 
> 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.