emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#78762: closed ([PATCH] Fix segfault in profiler-cpu-log and profiler


From: GNU bug Tracking System
Subject: bug#78762: closed ([PATCH] Fix segfault in profiler-cpu-log and profiler-memory-log)
Date: Sat, 14 Jun 2025 14:58:02 +0000

Your message dated Sat, 14 Jun 2025 17:56:58 +0300
with message-id <86v7oyqslh.fsf@gnu.org>
and subject line Re: bug#78762: [PATCH] Fix segfault in profiler-cpu-log and 
profiler-memory-log
has caused the debbugs.gnu.org bug report #78762,
regarding [PATCH] Fix segfault in profiler-cpu-log and profiler-memory-log
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
78762: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78762
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Fix segfault in profiler-cpu-log and profiler-memory-log Date: Wed, 11 Jun 2025 16:03:12 -0400 User-agent: mu4e 1.12.10; emacs 31.0.50
Tags: patch

a simple NULL dereference fix. the profiler log would be null if
profiler-*-log is called without a profiler-*-start before it, or if a
previous profiler-*-log call had flushed the log and the profiler wasn't
restarted since then. then export_log would try to read the NULL log and
segfault.

to reproduce the bug:
emacs --batch -f profiler-cpu-log

this patch causes profiler-cpu-log and profiler-memory-log to just
return nil if the log is null.


In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.49, cairo version 1.18.4) of 2025-06-04 built on bigbox
Repository revision: 680fa61b5989b84c0e19ac568be012afd8345f0c
Repository branch: master
System Description: Arch Linux

Configured using:
 'configure --with-modules --without-xwidgets --with-native-compilation
 --with-tree-sitter --without-gsettings --without-gconf --without-gpm
 --with-pgtk --without-compress-install 'CFLAGS=-mtune=native
 -march=native -O2 -g -fuse-ld=mold''

Attachment: 0001-Fix-segfault-in-profiler-cpu-log-and-profiler-memory.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#78762: [PATCH] Fix segfault in profiler-cpu-log and profiler-memory-log Date: Sat, 14 Jun 2025 17:56:58 +0300
> From: zach shaftel <zach@shaf.tel>
> Cc: 78762@debbugs.gnu.org
> Date: Thu, 12 Jun 2025 22:11:36 -0400
> 
> thank you for the feedback, a new patch is attached. let me know if i
> missed anything.

Thanks, installed on master, and closing the bug.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]