Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 948535

Summary: app-editors/xemacs-21.5.35-r6: Segfault when calling #'center-to-window-pos and friends in batch mode
Product: Gentoo Linux Reporter: Ulrich Müller <ulm>
Component: Current packagesAssignee: XEmacs team <xemacs>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH, UPSTREAM
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://foss.heptapod.net/xemacs/xemacs/-/issues/6
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: xemacs-21.5.35-batch-segfault.patch

Description Ulrich Müller gentoo-dev 2025-01-22 08:25:59 UTC
XEmacs segfaults when trying to use window commands like "pos-visible-in-window-p" or "recenter" in batch mode:

$ xemacs -batch -q -f pos-visible-in-window-p
Segmentation fault
$ xemacs -batch -q -f recenter
Segmentation fault
Comment 1 Ulrich Müller gentoo-dev 2025-01-22 08:28:20 UTC
Created attachment 917307 [details, diff]
xemacs-21.5.35-batch-segfault.patch

This is the upstream fix from https://foss.heptapod.net/xemacs/xemacs/-/commit/578daa839db83c84fc7ebbc4bf809ff66fd492f5 backported to XEmacs 21.5.35. (I had to fix one conflict in window.c.)
Comment 2 Larry the Git Cow gentoo-dev 2025-01-22 16:01:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fcbadfedce4432586e158dc810bf3a3d922d8c1

commit 1fcbadfedce4432586e158dc810bf3a3d922d8c1
Author:     Mats Lidell <matsl@gentoo.org>
AuthorDate: 2025-01-22 15:20:45 +0000
Commit:     Mats Lidell <matsl@gentoo.org>
CommitDate: 2025-01-22 15:56:32 +0000

    app-editors/xemacs: Fix segfault calling center-to-window-pos
    
    Thanks to Ulrich Müller.
    
    Closes: https://bugs.gentoo.org/948535
    
    Signed-off-by: Mats Lidell <matsl@gentoo.org>

 .../files/xemacs-21.5.35-batch-segfault.patch      | 191 +++++++++++++++
 app-editors/xemacs/xemacs-21.5.35-r7.ebuild        | 264 +++++++++++++++++++++
 2 files changed, 455 insertions(+)