From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: execvy@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#72692: Emacs 31.05 (40eecd594ac) get SIGSEGV on Linux (Linux 6.6.45 Kde Wayland) Date: Sun, 18 Aug 2024 17:36:14 +0800 Message-ID: <7be3359e-4389-4bc6-bf98-b46a2a8a711c@gmail.com> References: <8b1c8e1f-e0b9-4049-888c-3f723e0008a9@gmail.com> <87sev2gqc7.fsf@protonmail.com> <51a90b68-3958-4d6e-bfb1-1ea5a0e8ab11@gmail.com> <87le0ugp6i.fsf@protonmail.com> <6d4a3b17-a177-4b3b-8873-50662f56e304@gmail.com> <87h6bigoo5.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26435"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Pip Cet , 72692@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 18 11:38:32 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 1sfcMp-0006i7-V2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Aug 2024 11:38:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfcMg-0001Zf-QT; Sun, 18 Aug 2024 05:38:22 -0400 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 1sfcMg-0001ZX-7B for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 05:38:22 -0400 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 1sfcMf-0001ea-UY for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 05:38:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:References:From:MIME-Version:Date:To:Subject; bh=nswSet9wRj944RauzMexHxcMGZHr8UMGgv5ba85jKEQ=; b=GdYwSyF7PHnHLrUh/7daPUO1nb3NWglWjfYcOHIPMyD7mqJyTEVa0t74kxKZSsKdNhkox8nJ//4/U37Qqz/XcQm9mg9G8d1jxxmyOapRsQE5LoEErc13cbLgZ5ciUJnaDgt4h5438ztp/Wu4JeSvparKiicJOB+mrazy6kfYxf0lbdVbpzNYAZsiq9SWwRw0Se5P07QJfsSNNpW7ww8Z1uHcMZjmcyrzp6QDQL4zemjPB+0GiRIcPPgy3zHcVNFHgdQ4C7VvYIlMqSTQRgxgh2l8qQ+RjtODKsWnmjJDSB984oMYO8fKAGQCuI/v+/p4GpwFct3Xbo51pr+zcZ/BSA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfcNJ-0000C3-VP for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 05:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: execvy@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Aug 2024 09:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72692 X-GNU-PR-Package: emacs Original-Received: via spool by 72692-submit@debbugs.gnu.org id=B72692.1723973887676 (code B ref 72692); Sun, 18 Aug 2024 09:39:01 +0000 Original-Received: (at 72692) by debbugs.gnu.org; 18 Aug 2024 09:38:07 +0000 Original-Received: from localhost ([127.0.0.1]:55449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfcMR-0000Ap-0B for submit@debbugs.gnu.org; Sun, 18 Aug 2024 05:38:07 -0400 Original-Received: from mail-pl1-f195.google.com ([209.85.214.195]:47488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfcMO-0000AJ-UX for 72692@debbugs.gnu.org; Sun, 18 Aug 2024 05:38:05 -0400 Original-Received: by mail-pl1-f195.google.com with SMTP id d9443c01a7336-201e52ca0caso24939065ad.3 for <72692@debbugs.gnu.org>; Sun, 18 Aug 2024 02:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723973779; x=1724578579; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=nswSet9wRj944RauzMexHxcMGZHr8UMGgv5ba85jKEQ=; b=FzRkqanrG8RSCkMtmwH5NW0Jf2qtet5/q58tqOAPSJ7pG9Y8KhGbXiMfCYpOb5AezV hHk4XzNePOLY8r41eB6yTb3Aa5eVZ/rTD74+73lUHXTaXJxNEtcSzlRQ5fdxovoB88Y+ trsStIY9tb2Fb9Jt92oDeLKC8NN2loCqaqVFyD4BfD7UAYmnlkkFPhoY/UJq+/cMxWoT xoNJe7sXIaSI71xqvvFtGQpsw2LA/zmFcLmhgaXf1MmJ9bt+aZfrOqilv68z4wC+tD6O 4qlMTDutaIK6G89mxEDxPgH6h+6n/aTsM/cWfqoE8pndBxPO7GejAPLQyAxQkui9gbk+ rKrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723973779; x=1724578579; h=content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=nswSet9wRj944RauzMexHxcMGZHr8UMGgv5ba85jKEQ=; b=dQ9BzbZ37/TgN6cIzlYDzV4PTuD3dxgI2OSHGLTMtsWPHg7oqO+rtFR3OypTU2inEK e7Nx8DWqK4EWjiPCizS2kGd8jTbVPuwiDQs64xTRstAGAFnki/dSK5QcYV7Spvtk2LWs BOJ37nPcUWlXx/HvauEk2aI/QoxiQLnQGpclcj9db4+8xOWJ99OzPh03y3bGsaZTCwTP q8F0kvQKQoACIG8pCvRvZp4QsPn6O0YTlHz6Q30lAV6QKd2wVSJ5LgquP90tuk9sW1bT q6sAbr77yHjZ1p35YcG6SwroifxLTUqo+wQZIq2reNfVojyPYXC8f9RhV1vwoRcttEuw 31Ew== X-Forwarded-Encrypted: i=1; AJvYcCWUWAA9AbtrRF+9rjtZcIiz6ztxihyJlmPdaUwpzdYwuSUnw3PgSmRTinvnX9/i1EsV96K+oWqPN+EOj4/Q6k42wQssJho= X-Gm-Message-State: AOJu0Ywb4sguiulnt9/BHzI3KllanCBexobUMsEOysi0TvtKAs/jpWQ8 lv7YCODHz72zYrJ2y5JltK5mZs4rGZDb0k93r1X7YoC4ZYhvqRn/tdw8tQwbihKn9A== X-Google-Smtp-Source: AGHT+IHEMQOpvchL95u4fHnjH3h1yYmyxPePXH6XhE/nyVXj/3Wklxv9O0jWeeYxzdrlBW1ONjES9A== X-Received: by 2002:a17:902:c943:b0:1fd:9269:72f0 with SMTP id d9443c01a7336-20203f315e3mr75703205ad.47.1723973778803; Sun, 18 Aug 2024 02:36:18 -0700 (PDT) Original-Received: from [28.0.0.1] (144.34.182.14.16clouds.com. [144.34.182.14]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-201f038b455sm48186385ad.214.2024.08.18.02.36.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Aug 2024 02:36:18 -0700 (PDT) In-Reply-To: <87h6bigoo5.fsf@protonmail.com> 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:290309 Archived-At: It's ``` Redefine command "xbacktrace"? (y or n) [answered Y; input not from terminal] Redefine command "xprintbytestr"? (y or n) [answered Y; input not from terminal] Redefine command "xwhichsymbols"? (y or n) [answered Y; input not from terminal] Redefine command "hookpost-backtrace"? (y or n) [answered Y; input not from terminal] Redefine command "ff"? (y or n) [answered Y; input not from terminal] DISPLAY = :0 TERM = tmux-256color Breakpoint 3 at 0x4736d9: file emacs.c, line 431. Breakpoint 4 at 0x562640: file xterm.c, line 27093. (gdb) frame 9 #9 0x00000000006dd64d in fontset_font (fontset=fontset@entry=XIL(0), c=c@entry=127802, face=face@entry=0x13fec610, id=-1) at fontset.c:793 793 rfont_def = fontset_find_font (fontset, c, face, id, 0); (gdb) p *face->ascii_face $1 = { lface = {XIL(0x8220), XIL(0x28bdef4), XIL(0x28bdf34), XIL(0xe340), make_fixnum(90), XIL(0xe340), XIL(0xe340), XIL(0), XIL(0), XIL(0x4417994), XIL(0x233c9c4), XIL(0), XIL(0), XIL(0), XIL(0x7f9ea6b05d63), XIL(0x765a8285), XIL(0), XIL(0x2aabee4), XIL(0x13500), XIL(0)}, id = 2, gc = 0x0, stipple = 0, foreground = 4288059542, background = 4278190080, underline_color = 0, overline_color = 0, strike_through_color = 0, box_color = 4281545523, font = 0x1e4370d0, fontset = 5, box_vertical_line_width = -1, box_horizontal_line_width = -1, underline_pixels_above_descent_line = 0, box = FACE_SIMPLE_BOX, underline = FACE_NO_UNDERLINE, use_box_color_for_shadows_p = true, overline_p = false, strike_through_p = false, foreground_defaulted_p = false, background_defaulted_p = false, underline_defaulted_p = false, overline_color_defaulted_p = false, strike_through_color_defaulted_p = false, box_color_defaulted_p = true, underline_at_descent_line_p = false, tty_bold_p = false, tty_italic_p = false, tty_reverse_p = false, tty_strike_through_p = false, colors_copied_bitwise_p = false, overstrike = false, hash = 322003229, next = 0x13fec610, prev = 0x0, ascii_face = 0x4d7343a0, extra = 0x0 } (gdb) ``` Eval Exec On 8/18/24 5:34 PM, Pip Cet wrote: > writes: > > > It's > > ``` > > (gdb) x/32gx (*(long *)&Vfontset_table - 5) > > 0x4de32f40: 0x00000000000000f3 0x00007f9ea734b695 > > 0x4de32f50: 0x00000000028b8c65 0x00000000028bee1d > > 0x4de32f60: 0x00000000765a7d45 0x00000000765a7fad > > 0x4de32f70: 0x00000000765a83d5 0x00000000765a863d > > 0x4de32f80: 0x00000000765a88a5 0x00000000765a8d55 > > 0x4de32f90: 0x00000000765a8fbd 0x00000000765a9225 > > 0x4de32fa0: 0x00000000765a948d 0x00000000765a96f5 > > 0x4de32fb0: 0x00000000765a995d 0x00000000765a9d65 > > 0x4de32fc0: 0x00000000765a9fcd 0x00000000765aa235 > > 0x4de32fd0: 0x00000000765aa49d 0x00000000765aa705 > > 0x4de32fe0: 0x00000000765aa96d 0x00000000765aad75 > > 0x4de32ff0: 0x00000000765aafdd 0x00000000765c2ce5 > > 0x4de33000: 0x0000000002ab84d5 0x00000000765c4e15 > > 0x4de33010: 0x00000000765dbf75 0x0000000000000000 > > 0x4de33020: 0x0000000000000000 0x0000000000000000 > > 0x4de33030: 0x0000000000000000 0x0000000000000000 > > (gdb) > > ``` > > Thanks. It looks like the entry in the fontset table has been freed > (that's entry 26, which is Qnil), but is still referenced by > face->fontset. Can you go back to the same stack frame in which you > printed face and "p *face->ascii_face"? > > Pip > >