From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74383: 29.4; Emacs PGTK crashes on Void Linux Date: Sun, 17 Nov 2024 08:06:16 +0200 Message-ID: <86r07awg13.fsf@gnu.org> References: <875xonl58g.fsf@gmail.com> <86r07bf77f.fsf@gnu.org> <87o72ehg5k.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25209"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ba.tahaaziz@gmail.com, 74383@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 17 07:09:29 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tCYTQ-0006QH-8b for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Nov 2024 07:09:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCYT1-0001o3-IG; Sun, 17 Nov 2024 01:09:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tCYT0-0001nt-3E for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 01:09:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCYSz-0005Nj-PU for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 01:09:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=cwJpJQ/oaqDhynrgrhLeaRNyPr97arvEk9hqh54ZeuI=; b=M4156Y20SM59wRAJikmU+0tq5ZA7pUl+i3hNnjxGlpfPzooquOhpDbgACaGfM0do42eGGBSm8soJ9RH42dYbXIHtOtvkwyz7F+cl5PtEAsep+yVDRMd2pUsJa5W3Oo3CzjzT7s4EHfeNHFeiAUlF7LsuM6kaC1LkARsIThkiz3RBkmCVq1Ai5JqxaB9aCLtjTCKKR0j8bVqCHZHiUM1UZsqSwt+LmH83KL+eUhf7uxbX1d5ZuXimQODbXBIs+R5mWYIfQEXHURRcqjVP4vfKxnv71Xp5GHaropD9Xg51AQdQ0C1fRE8zanFvZf6xOUbpgpXbykED1p/oOE8t02sP+Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCYSz-0006xk-Km for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 01:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Nov 2024 06:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74383 X-GNU-PR-Package: emacs Original-Received: via spool by 74383-submit@debbugs.gnu.org id=B74383.173182371826716 (code B ref 74383); Sun, 17 Nov 2024 06:09:01 +0000 Original-Received: (at 74383) by debbugs.gnu.org; 17 Nov 2024 06:08:38 +0000 Original-Received: from localhost ([127.0.0.1]:55655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCYSc-0006wp-5e for submit@debbugs.gnu.org; Sun, 17 Nov 2024 01:08:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCYSZ-0006wa-L7 for 74383@debbugs.gnu.org; Sun, 17 Nov 2024 01:08:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tCYQN-0005Hc-AZ; Sun, 17 Nov 2024 01:06:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=cwJpJQ/oaqDhynrgrhLeaRNyPr97arvEk9hqh54ZeuI=; b=ioasxlvwApehBi4lDJTK F6BO1G8M39o4bC7aY3hJT53gKHQJIlGfBuwm2xMBGfPOXFm5fZ3pWLTNLMr5Lc8YHAjEhBcbIh5mS e5N4S9m77a8Lum9E3mb6M+jv8yuQY394rZH0J52owID3pReCgYI9icpduZ9GhwoGcLFZwjcNGws8X u7R0IMIaiqWoPn3MaMaRmHD2Vemp6Fo+uaL9q28J8TDtNRpc4fn/YNnWYHYVuBc2ljitMVR5gRYA1 X2NoKItbwxckTy0AQMLewNbaGMQQJkZyFzlLYEDB+VgY3S9jdIm57stsRiUOjyBgCNp70Szb5ztk+ agRgfag3Qpa7PQ==; In-Reply-To: <87o72ehg5k.fsf@yahoo.com> (message from Po Lu on Sun, 17 Nov 2024 08:12:39 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295508 Archived-At: > From: Po Lu > Cc: Taha Aziz Ben Ali , 74383@debbugs.gnu.org > Date: Sun, 17 Nov 2024 08:12:39 +0800 > > Eli Zaretskii writes: > > >> From: Taha Aziz Ben Ali > >> Date: Sat, 16 Nov 2024 13:42:39 +0100 > >> > >> I've been failing to get Emacs to launch under Sway on Void Linux, the > >> configuration I'm using was working fine on Arch Linux (using the same > >> Emacs version). Note that `emacs -Q' also segfaults, but `emacs -nw' is > >> able to launch emacs with all of my configuration without a single > >> warning. > >> > >> You can find the backtrace leading up to this error in this paste: > >> > >> https://paste.sr.ht/~grtcdr/c39dad4913262557228d1158680f52613b728c6a > >> > >> I tracked the issue down to a cairo_surface_create_similar_image() call > >> that results in the crash. > >> > >> Before the program crashes, a warning about the "xpm" image type not > >> being supported is shown which may be relevant: > >> > >> (emacs:8670): GdkPixbuf-WARNING **: 13:38:44.606: Error loading XPM > >> image loader: Image type “xpm” is not supported > > > > Do you have the XPM library installed and available to Emacs? > > > > Your build details indicate that Emacs was configured to be built with > > XPM: > > > >> Configured using: > >> 'configure --with-pgtk --prefix=/usr --sysconfdir=/etc > >> --sbindir=/usr/bin --bindir=/usr/bin --mandir=/usr/share/man > >> --infodir=/usr/share/info --localstatedir=/var > >> --host=x86_64-unknown-linux-musl --build=x86_64-unknown-linux-musl > >> '--libdir=${exec_prefix}/lib64' --with-file-notification=inotify > >> --with-modules --with-jpeg --with-tiff --with-gif --with-png > >> --with-webp --with-xpm --with-rsvg --without-imagemagick --with-xml2 > > ^^^^^^^^^^ > >> --with-gnutls --with-sound --with-m17n-flt --with-json --with-harfbuzz > >> --with-cairo --with-libgmp --with-sqlite3 --with-tree-sitter > >> --with-native-compilation=aot 'CFLAGS=-fno-PIE -mtune=generic -O2 -pipe > >> -g -ffile-prefix-map=/builddir/emacs-29.4=.' 'CPPFLAGS= ' > >> 'LDFLAGS=-no-pie -Wl,--as-needed '' > > > > But the features actually available to Emacs don't include XPM: > > > >> Configured features: > >> ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON > >> LCMS2 LIBOTF LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG > >> RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER > >> WEBP XIM GTK3 ZLIB > > > > So I wonder how this happened. > > > > Did you build Emacs yourself, or was it installed from some distro? > > The PGTK configuration always enables Emacs's built-in XPM library (in > image.c). > > All the same, the OP's problem is that the gdk-pixbuf library invoked by > the toolkit to load tool-bar images no longer enables XPM support by > default, because, in their words, it was "not being used." Someone must > volunteer to enable loading tool-bar images with Emacs's image system > instead. Which GTK versions dropped XPM support? We should probably reject those versions at configure time, if they lead to Emacs that crashes on startup.