From unknown Sun Jun 22 04:02:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42694 <42694@debbugs.gnu.org> To: bug#42694 <42694@debbugs.gnu.org> Subject: Status: 26.3; Emacs crashes when linked against newer libx11 Reply-To: bug#42694 <42694@debbugs.gnu.org> Date: Sun, 22 Jun 2025 11:02:59 +0000 retitle 42694 26.3; Emacs crashes when linked against newer libx11 reassign 42694 emacs submitter 42694 Leo Prikler severity 42694 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 03 05:32:06 2020 Received: (at submit) by debbugs.gnu.org; 3 Aug 2020 09:32:06 +0000 Received: from localhost ([127.0.0.1]:44343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2WpB-0001DN-VW for submit@debbugs.gnu.org; Mon, 03 Aug 2020 05:32:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:55144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2Wp9-0001DF-Np for submit@debbugs.gnu.org; Mon, 03 Aug 2020 05:32:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k2Wp6-0007vJ-FB for bug-gnu-emacs@gnu.org; Mon, 03 Aug 2020 05:32:02 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:1955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k2Wp3-0006go-Jl for bug-gnu-emacs@gnu.org; Mon, 03 Aug 2020 05:31:59 -0400 Received: from nijino.local (213-147-177-210.hdsl.highway.telekom.at [213.147.177.210]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4BKt1y68Rnz1LXsV for ; Mon, 3 Aug 2020 11:31:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4BKt1y68Rnz1LXsV DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1596447110; bh=IWieMaTRSkz9sYas6oq6N+vAisjHsZelE4Nc8aoi8Ss=; h=Subject:From:To:Date:From; b=XoxBlVuBZ4PowkRpfXj88nxV2/xszKyEFc+hY9IXwrDQhOdXZCpwGC7GOFiI42uMp ffGEOHgIUOrWr46XRNFL7pnpx2tmuNAkBP2sI41ZRaocT3qr1+wpv/668cT1nb0Z8T 4tLyTm05wV/5pXMKoh6CI/bppvPL1ptcmzpj0QTc= Message-ID: <66a57c1d0278d1e1117d2a81097635bfd63a9ebd.camel@student.tugraz.at> Subject: 26.3; Emacs crashes when linked against newer libx11 From: Leo Prikler To: bug-gnu-emacs@gnu.org Date: Mon, 03 Aug 2020 11:31:49 +0200 Content-Type: multipart/mixed; boundary="=-eIsOvSQXE15W3PP+bSBu" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 Received-SPF: pass client-ip=129.27.2.202; envelope-from=leo.prikler@student.tugraz.at; helo=mailrelay.tugraz.at X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/03 05:31:52 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-eIsOvSQXE15W3PP+bSBu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Two days ago, a patch was sent to Guix updating libx11 to a newer version in order to fix CVE-2020-14344. This causes a segmentation fault in Emacs when trying to start an X window. After invoking GDB, I found the offending line to be: /* Determine XIC style */ xic_style = best_xim_style (FRAME_X_XIM_STYLES (f)); For some reason, FRAME_X_XIM_STYLES (f) returns NULL here and best_xim_style fails when ARRAYELTS is called on it. I've attached a patch, that checks for this case. Regards, Leo --=-eIsOvSQXE15W3PP+bSBu Content-Disposition: attachment; filename="emacs-ignore-empty-xim-styles.patch" Content-Type: text/x-patch; name="emacs-ignore-empty-xim-styles.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 SW5kZXg6IGVtYWNzLTI2LjMvc3JjL3hmbnMuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBlbWFjcy0yNi4zLm9y aWcvc3JjL3hmbnMuYworKysgZW1hY3MtMjYuMy9zcmMveGZucy5jCkBAIC0yNTMzLDYgKzI1MzMs OCBAQCB4aWNfZnJlZV94Zm9udHNldCAoc3RydWN0IGZyYW1lICpmKQogc3RhdGljIFhJTVN0eWxl CiBiZXN0X3hpbV9zdHlsZSAoWElNU3R5bGVzICp4aW0pCiB7CisgIGlmICh4aW0gPT0gTlVMTCkg Z290byBvdXQ7CisKICAgaW50IGksIGo7CiAgIGludCBucl9zdXBwb3J0ZWQgPSBBUlJBWUVMVFMg KHN1cHBvcnRlZF94aW1fc3R5bGVzKTsKIApAQCAtMjU0MSw2ICsyNTQzLDcgQEAgYmVzdF94aW1f c3R5bGUgKFhJTVN0eWxlcyAqeGltKQogICAgICAgaWYgKHN1cHBvcnRlZF94aW1fc3R5bGVzW2ld ID09IHhpbS0+c3VwcG9ydGVkX3N0eWxlc1tqXSkKIAlyZXR1cm4gc3VwcG9ydGVkX3hpbV9zdHls ZXNbaV07CiAKKyBvdXQ6CiAgIC8qIFJldHVybiB0aGUgZGVmYXVsdCBzdHlsZS4gICovCiAgIHJl dHVybiBYSU1QcmVlZGl0Tm90aGluZyB8IFhJTVN0YXR1c05vdGhpbmc7CiB9Cg== --=-eIsOvSQXE15W3PP+bSBu-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 03 10:41:16 2020 Received: (at 42694) by debbugs.gnu.org; 3 Aug 2020 14:41:16 +0000 Received: from localhost ([127.0.0.1]:45792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2beL-0007WD-Mk for submit@debbugs.gnu.org; Mon, 03 Aug 2020 10:41:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2beA-0007VT-7t for 42694@debbugs.gnu.org; Mon, 03 Aug 2020 10:41:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42986) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k2be3-0005uu-6Z; Mon, 03 Aug 2020 10:40:55 -0400 Received: from [176.228.60.248] (port=3597 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k2be2-0006rR-KX; Mon, 03 Aug 2020 10:40:54 -0400 Date: Mon, 03 Aug 2020 17:40:41 +0300 Message-Id: <837dufbxna.fsf@gnu.org> From: Eli Zaretskii To: Leo Prikler In-Reply-To: <66a57c1d0278d1e1117d2a81097635bfd63a9ebd.camel@student.tugraz.at> (message from Leo Prikler on Mon, 03 Aug 2020 11:31:49 +0200) Subject: Re: bug#42694: 26.3; Emacs crashes when linked against newer libx11 References: <66a57c1d0278d1e1117d2a81097635bfd63a9ebd.camel@student.tugraz.at> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42694 Cc: 42694@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Leo Prikler > Date: Mon, 03 Aug 2020 11:31:49 +0200 > > Two days ago, a patch was sent to Guix updating libx11 to a newer > version in order to fix CVE-2020-14344. This causes a segmentation > fault in Emacs when trying to start an X window. After invoking GDB, I > found the offending line to be: > > /* Determine XIC style */ > xic_style = best_xim_style (FRAME_X_XIM_STYLES (f)); > > For some reason, FRAME_X_XIM_STYLES (f) returns NULL here and > best_xim_style fails when ARRAYELTS is called on it. I've attached a > patch, that checks for this case. Thanks, this is bug#42676, which was solved yesterday. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 04 06:13:50 2020 Received: (at control) by debbugs.gnu.org; 4 Aug 2020 10:13:50 +0000 Received: from localhost ([127.0.0.1]:46909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2tx7-0007Uv-UQ for submit@debbugs.gnu.org; Tue, 04 Aug 2020 06:13:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2tx6-0007Ui-Kk for control@debbugs.gnu.org; Tue, 04 Aug 2020 06:13:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yG9KjJE/Q5fnkJWdEkPq7B3oVUe6lYzRKYssJV+FlLo=; b=FTUqpmLuT34uWSssajj5k1EZjF dSpftvUti25+peF58le6uYDPNIKQcgFOL9ZJT4oeCT0F3dCQ6ULUH3Xqlh9WZyQzzbTbmZ2adXpXi g4kXi4nonEuzXBejMv9GnXw2GTmb5RV/pdCwIFMYg9epVpa8Paof/xotym0xTKgjrizk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2twz-0006bd-1M for control@debbugs.gnu.org; Tue, 04 Aug 2020 12:13:43 +0200 Date: Tue, 04 Aug 2020 12:13:39 +0200 Message-Id: <87sgd2pvl8.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42694 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 42694 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 42694 27.1 quit From unknown Sun Jun 22 04:02:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 01 Sep 2020 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator