Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948535 - app-editors/xemacs-21.5.35-r6: Segfault when calling #'center-to-window-pos and friends in batch mode
Summary: app-editors/xemacs-21.5.35-r6: Segfault when calling #'center-to-window-pos a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: XEmacs team
URL:
Whiteboard:
Keywords: PATCH, UPSTREAM
Depends on:
Blocks:
 
Reported: 2025-01-22 08:25 UTC by Ulrich Müller
Modified: 2025-01-22 16:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
xemacs-21.5.35-batch-segfault.patch (xemacs-21.5.35-batch-segfault.patch,5.62 KB, patch)
2025-01-22 08:28 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)