From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74383: 29.4; Emacs PGTK crashes on Void Linux Date: Sun, 17 Nov 2024 08:12:39 +0800 Message-ID: <87o72ehg5k.fsf@yahoo.com> References: <875xonl58g.fsf@gmail.com> <86r07bf77f.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17562"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Taha Aziz Ben Ali , 74383@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 17 01:13:23 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 1tCSup-0004RP-C7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Nov 2024 01:13:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCSuV-0000LX-To; Sat, 16 Nov 2024 19:13:04 -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 1tCSuU-0000L3-HM for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 19:13: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 1tCSuU-0004qE-90 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 19:13:02 -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:Date:References:In-Reply-To:From:To:Subject; bh=l9WjDaKnhAy5TPP20e/edS6sNem+os0NMAO9eU6hkdY=; b=EzpIxjixFGlLAzk711isaH8SaQzQwdrVaKLavlK4DBSFwsZdngR4OQZgLO0V/maFI6A6sBRee/BIgNoYu+U4ZPk0IvwdVAfSz7tWY3cZBUpjXx8P368xB0WVzJ5xey3/ACmgAS9NmkwzcQic+RSYVUF5wJYEXcwa1YHC+CxF0HaS0FBBrRtC3nXVpqA+UY1pBN+22YBCvCNllJqnPMmd+WumQ+Zi9VXYPWNGTfYvsPSWrkMV5pL7I4cLS1duPjiflFizYNXTmmXMMFVDxGxqYEu6GX8uTCxS9aGDTauuiCj+gym6a2uaFW1UmMX0F1g4VWnSZMaPFAOLUnwRV4uUVg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCSuT-0007RW-TI for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 19:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Nov 2024 00:13: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.173180238028603 (code B ref 74383); Sun, 17 Nov 2024 00:13:01 +0000 Original-Received: (at 74383) by debbugs.gnu.org; 17 Nov 2024 00:13:00 +0000 Original-Received: from localhost ([127.0.0.1]:55202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCSuS-0007RH-8D for submit@debbugs.gnu.org; Sat, 16 Nov 2024 19:13:00 -0500 Original-Received: from sonic301-30.consmr.mail.ne1.yahoo.com ([66.163.184.199]:39751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCSuO-0007R1-Qz for 74383@debbugs.gnu.org; Sat, 16 Nov 2024 19:12:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1731802371; bh=l9WjDaKnhAy5TPP20e/edS6sNem+os0NMAO9eU6hkdY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=EdFkCkwCOMrcNxELd25N0edKvwtPCEZyTguyS5Q9wNBSAShDakKxt09G+yI93s67sA5z/tAWGZ6s8uxp9LIuaWOgHPLZReb6Wr4N4VN/sTntnhfPBNRgKRhMqVzibb6pps9i/zQTRo0Xd3G+Qw3VLVw0IDAz5z7QKKSa9PRJVpHkSXmuTFx7eri0vqVm+Ggd1vHeg8n1QsB47sfc0OGvM+TfbOmXrJ4ZRlmsv6gs95VGXUpt1obdyBEmhY56WPpqowBbfcegq+1uQEqXrBsRR9FC/NiM3KWpPGN+Q38xfiNYcx7zL4ehPwPxzOgXJVz3br5P0fPGH/jMcH1SlecvfA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1731802371; bh=mMwfVBz1AFME2KJ1zFKCashdeSrV8UIQuTSQJ9WqDCm=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=NObojZJSlRoBwRtgxqXwPuTr+Q12A0htiGZoA5/d6NZUxMDdfeFOW1Onnw1m5LUdROGB/+P8nE9HAum4YXtiCmBePwCYHwCFOliUJ/px05GguqInPjPRdibwSzY467B+bE1yGyqVvVRDmEoHr2hANMl7tEfypCx6YBUchRn0XDUSuPdv6FBDDbqxrqcykcg36RZDwBPRMxXNpmlS5jvd8bVUHVLUcVNt8HPuN2gOeNSG1yK1wI7RXPzyy8NdJJEsdKYl2aEOjy0pFLzHfcG/z5VscKfebqANv42hoy7+SgYImtyzTQ4O16R/Z01R6vF0aOdAJviAmqYeeR8v2RB+UQ== X-YMail-OSG: pv4ckEQVM1m2rDn7Gvt_PxEh5DJ2yz_gwPCe03f5kwP5hxXcLjQEsksi38hK.fL l69lSEuF8L29bLa5nsXAc7BuULEAJcrrvK0ZkEJVy8fHZf9FXXQ07I6yeIx39cd5q2cw7Madz.YY z8ZhK1Y7pjGKXWLzE4os.C_rRE500NWFZeEVVl5z_oSc7QuCFY2.lTkh4tHDMMbt08K978f30Jrw VybRo.nrhWWbqHzp5Mp7gt4e4uSBunTbgoyZUnKF0UncVJeD_qKWD7fmK08TbLSux2KaqlJjGh7N iVYPUegdb0_z1rHdCGspBr94uot5Z8r8RHyPpdIH1Tn2dJVn_SX.Of12l_VcKeD.s_M1T58Cz3cz UgKIl9Z5WPuuuSD2.2n2wIKrrBHLETJjrZN6PLno_SmVPelWNsI8lneUBzHET52PXdFpRrNZLiDl vSxYgZUUxdbjUdJ2ejq63bc_30ASJ7uVixl1bdbvexOskyLBuMlgqf6MOnVBFrv8V6050TQu0N.d wnxdmGnAdiVDVWq6_fjsqDvJ3BHyApiHVtUOdyd_18x01uRORMY8Q6RzNGTVNRMCa01PhlMFrdM1 tSglHXNP57uh04WpeAsV_KLnLRYv86TZ4qpdGeHCRz4_hv2hNR0MU3EwNb.OiY2gW6Mmk9WraUd_ veyXEXK4pQDaIGh0mF81dRvfvDpe5Nwvum9PdZiyH.Yp5gIfj9wF5vWQHUdAp6EA25AZLFJ2RUiX 1t8zWxE7xYezF673tiVOFjAAkgtOQti6o4MW21fYUg8l6fHdOmKfsVMlcuq7MjajWay4bwIfmw5n .FzGE3bPmmypAA2mTDNKJp_IxaAwW6rhfutPD15ZKQ X-Sonic-MF: X-Sonic-ID: da25d1a3-3bbd-4df8-8cdf-1e5ef9f3956a Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Sun, 17 Nov 2024 00:12:51 +0000 Original-Received: by hermes--production-sg3-5b7954b588-8q7pl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 19677de73a5f5004b807deeaf0b085dc; Sun, 17 Nov 2024 00:12:44 +0000 (UTC) In-Reply-To: <86r07bf77f.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 16 Nov 2024 18:56:36 +0200") X-Mailer: WebService/1.1.22876 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:295502 Archived-At: Eli Zaretskii writes: >> From: Taha Aziz Ben Ali >> Date: Sat, 16 Nov 2024 13:42:39 +0100 >>=20 >> 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. >>=20 >> You can find the backtrace leading up to this error in this paste: >>=20 >> https://paste.sr.ht/~grtcdr/c39dad4913262557228d1158680f52613b728c6a >>=20 >> I tracked the issue down to a cairo_surface_create_similar_image() call >> that results in the crash. >>=20 >> Before the program crashes, a warning about the "xpm" image type not >> being supported is shown which may be relevant: >>=20 >> (emacs:8670): GdkPixbuf-WARNING **: 13:38:44.606: Error loading XPM >> image loader: Image type =E2=80=9Cxpm=E2=80=9D 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=3D/usr --sysconfdir=3D/etc >> --sbindir=3D/usr/bin --bindir=3D/usr/bin --mandir=3D/usr/share/man >> --infodir=3D/usr/share/info --localstatedir=3D/var >> --host=3Dx86_64-unknown-linux-musl --build=3Dx86_64-unknown-linux-musl >> '--libdir=3D${exec_prefix}/lib64' --with-file-notification=3Dinotify >> --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=3Daot 'CFLAGS=3D-fno-PIE -mtune=3Dgeneric -O2= -pipe >> -g -ffile-prefix-map=3D/builddir/emacs-29.4=3D.' 'CPPFLAGS=3D ' >> 'LDFLAGS=3D-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.