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#54859: Crash in marking of input events with devices Date: Tue, 12 Apr 2022 08:00:37 +0800 Message-ID: <87pmlnxja2.fsf@yahoo.com> References: <92678974-2fa2-db44-8ae3-69fbb8265168@gmx.at> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6111"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 54859@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 12 02:01:12 2022 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 1ne3y3-0001PO-MY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 02:01:11 +0200 Original-Received: from localhost ([::1]:59876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne3y2-0007lp-C7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Apr 2022 20:01:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne3xu-0007lh-DC for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2022 20:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ne3xu-0005Kt-3F for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2022 20:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ne3xt-0001BF-VB for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2022 20:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Apr 2022 00:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54859 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.16497216504509 (code B ref -1); Tue, 12 Apr 2022 00:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Apr 2022 00:00:50 +0000 Original-Received: from localhost ([127.0.0.1]:46454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne3xi-0001Af-55 for submit@debbugs.gnu.org; Mon, 11 Apr 2022 20:00:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne3xh-0001AY-9e for submit@debbugs.gnu.org; Mon, 11 Apr 2022 20:00:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne3xh-0007lH-1h for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2022 20:00:49 -0400 Original-Received: from sonic315-21.consmr.mail.ne1.yahoo.com ([66.163.190.147]:43875) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ne3xf-0005In-7M for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2022 20:00:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649721645; bh=+pdMJPJiikAwPwqucXfqV2WA8q62tyAf1DY4X89zg2I=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=OC5T3njgqbTI3v1Qltodn1IpBavpDF17JjyrOhMn9dY3trKmxI0WPOb2Ldk0g+MKXjYNxev5hOVPNOD0Vq6WhZsQ62UZOT2w7H/+NZK22mB2GKPGzQh7xMVLvV51mfkRfTLC3zhOLvdaGvEdTI0UyyjiQX2OqOWwbknchRIunuYY5NTLH5tUr4sbhvpXuvvYCsduGP7WZuwdCWB0/X6bi8XSYGq7Yjtv7N7+tNe1Hahzx03TiBmTbHCHjzwNsc5pX8qp4jshAylZ8mRAKoG4R404hqaCqs23bQ0VxifSc1QRIGNUUWaquAmoYmXA2fv/k2gRNGW2NutskyfMEdgX3w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649721645; bh=RrhQbevAnU+wA3rFUnaPCw5MLqDAVr3z3tT36rOWTql=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=B7xI6flwEbD2/HgYRoEOGBWs6IjwVau5KPvXZ/4oViGqOZbvl8d8uZxvpTbuluyWdrrzjSYxmjNy5VnwSy8y7EV/tw7o5lbplWt8M/CGwXHItC3dzrC1uGZBDhJfwXrXlk4AbXDQCEbI2XbTWfj/06TJzGwwMwYgVYY6s4rirIdonZ5WVlCBmucNHUuF5u6Vn4X1SVhPtv6BLz/1paLviiYB60dF+kRznFZ+jDCVEEiO67OtmXKQpbPQtTELDedxR+4E7Fs35JJpG3Vf0rcsgVgaY/Jreh9oPYm15pItPLQJvylt1KTdsR1RqVH2LHpB7YmdJB7cG7RBPnrWkc3J2w== X-YMail-OSG: sCwb6AUVM1l2i_joqYsy5QpLmgPlS7vexhz_G.Due2WJ_lgZwv_pF5EAUGa3e2g ZYsNdZVKgiro7oCsjthBV3_doHQb4cqMpgF6YUlskf83G_qrVtJchBckIc0WZayUpI61dsV.Bm8g CAUpfai3ryUonqcW5m29POFzfneft6cXGTC021Wdwd1MMoGGn8cVXNCu2fVVMmVLWOVnv88ozVys sXJyDa34.GS2bGxFL90FGE.31cjqncfYPD9uuBoNPaj_HTCQdEam9btx.FmzVicbSYRnsqIYNZAB WudyHC71CxVGKOZTKAmgZsflq3x1W2QjQaL2f53dsu2JOuiNnYXq7qNri2j0lVd1_oedeByASve6 aXXhpng_aoMVqaEyC1TZfSlnCeACz8TP8ws.0xrP8hNokI_JShulf2v44eiw2I84CLY6Z4z.054n cVhuK0POimtld09aI9bNC7ao_jFGa5zfXf53T9GfX5umE4gGtzO1P8OMuDzKfHsuHOnwoLfCw9LK VSun3fD0jl6Tvr5kKjekQkCwoIfO3jk2RR034iaio.cjW1Aqv2O6u6OzdT0wQn5I2MNpIzoRuiCo 0nPWzfWVKMU2Sji1D3g78QSfP5VDVd6ztU94q0yC0nybRUyyEVuVn82YMY1OMsA._b8UFnDboGiW Qk0V3HLsN9jY9x374pHhb7J8QzJZNQD.8_NWkngP368SnUE5LbkkEjSXOas0xNSKTwd62QcWvAvr gPWw6sXWPscysBNoB4M801L83wl_e1_Rllc6LT065DbuAZg7Lkup9TmWjavPVV81dUbG9iUswssp gdwnxkMD.5OJqlZ_bLR8nPaCFkrglwYoPx08ueepDV X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Tue, 12 Apr 2022 00:00:45 +0000 Original-Received: by hermes--canary-production-sg3-65d7bd97b5-srcdp (VZM Hermes SMTP Server) with ESMTPA ID 5072d83cf24a31b4006eab723621fa5f; Tue, 12 Apr 2022 00:00:41 +0000 (UTC) In-Reply-To: <92678974-2fa2-db44-8ae3-69fbb8265168@gmx.at> (martin rudalics's message of "Mon, 11 Apr 2022 18:50:07 +0200") X-Mailer: WebService/1.1.20048 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.147; envelope-from=luangruo@yahoo.com; helo=sonic315-21.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:229741 Archived-At: martin rudalics writes: > commit c4921d1157a2e3e15b1d779a6bdf768e307275dd > Author: Po Lu > Date: Fri Apr 8 17:00:37 2022 +0800 > > Fix GC marking of input events with devices > > * src/keyboard.c (mark_kboards): > * src/pgtkterm.c (mark_pgtkterm): Mark `device' as well. > > reliably segfaults my patched version of Emacs. Note that the line > numbers of backtraces are not those of master since I have made local > changes to many of the involved files. I have not tried to reproduce > the crashes on master itself because the program to produce the crashes > uses too many constructs that are not available on master. > > A typical crash produced the backtrace below in an -Og -g3 build (-O0 > builds hardly crash that way, if ever). Note that in my keyboard.c line > 13102 actually is > > mark_object (event->ie.device); > > The associated event is always a HELP_EVENT. If you need further > information, please tell me. That was fixed a while back, would you please try with a newer revision? The problem was that the code to store help events didn't call EVENT_INIT, so device was left uninitialised. Thanks.