From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Clemente Newsgroups: gmane.emacs.bugs Subject: bug#71176: 30.0.50; Segmentation fault (SIGSEGV) in TTY+emacsclient, default_face is nil Date: Mon, 27 May 2024 11:04:50 +0000 Message-ID: References: <86r0dr106n.fsf@gnu.org> <867cfiyset.fsf@gnu.org> <86r0dpyfa8.fsf@gnu.org> <86plt9ye94.fsf@gnu.org> <86o78tyddh.fsf@gnu.org> <865xv0wmjd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000c3ce106196d7e1f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12957"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71176@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 27 13:07:05 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 1sBYC1-0003B0-1A for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 May 2024 13:07:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBYBq-0002ri-Rr; Mon, 27 May 2024 07:06:54 -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 1sBYBp-0002rC-Cr for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 07:06:53 -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 1sBYBp-0004jR-4d for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 07:06:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBYBx-0000QZ-Ou for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 07:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Clemente Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 May 2024 11:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71176 X-GNU-PR-Package: emacs Original-Received: via spool by 71176-submit@debbugs.gnu.org id=B71176.17168079951593 (code B ref 71176); Mon, 27 May 2024 11:07:01 +0000 Original-Received: (at 71176) by debbugs.gnu.org; 27 May 2024 11:06:35 +0000 Original-Received: from localhost ([127.0.0.1]:43171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBYBW-0000Pc-9V for submit@debbugs.gnu.org; Mon, 27 May 2024 07:06:34 -0400 Original-Received: from mail-ot1-f46.google.com ([209.85.210.46]:59747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBYBT-0000PJ-L3 for 71176@debbugs.gnu.org; Mon, 27 May 2024 07:06:32 -0400 Original-Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-6f361af4cb6so2591051a34.3 for <71176@debbugs.gnu.org>; Mon, 27 May 2024 04:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716807917; x=1717412717; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=og2I2qTF8q7i2BzymKMmRUFP9hKYhaYRKsm/hjDYbO8=; b=bo93bEVIIit8i5IewwKot5rWTb1PHX9azB4rVgQLgNhL7jrLrzygLOKyQHUTwD+RY3 fDlv4RrUxHVoK0mv+62bdyBUnxVcQyoK3h4jWwOnRzJznWBn7F/Qk1g9L6z8aibH0Yur WHFbCbQRrImp2YRsiAsUR4Mxj5bMK1w24aiSOsBuqRiuvY5tYvKgnXVJ7lal81pVVDjP f2Fv9NMRsEgj9/261rtlXsu8jXr462fK9jfP3YXEhzp2bNMxVUWFDmN441bfv86iGqXN AL2Pix/d1whV4jwst/BmX6Wne4G0xxdlgRY8XyGNeFw7H3ybuP/WoI8eHRSDa1vWL6em sAYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716807917; x=1717412717; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=og2I2qTF8q7i2BzymKMmRUFP9hKYhaYRKsm/hjDYbO8=; b=JdVUMHPKUUkSQ/71YU/Iohnm0pO4k+JbuKZcEsKyl/nDRNpmoZfuF7E2QP79Xd/TrD b7GkkY7p0B9/W+i+F2lkrRsfb5+yr5X1l7dEC7y8bunpogxlioO3dgEFIf2sjxY7Z7OK Nv8iO3QkwNLg8kCQqxHdHeO9sPSY00TVy2xgDtZlChl0N+ocBAdr99+sYhxlvc5lOOIm wXrTfiYNBeUSblyVcfbogcgqZpkfbED10BoHfGksk3Rf5pGeopSAwk7IRnJBE9hqqCxY 1auj5HlxwdJaiHQ2Rer1XvRKg2iPUorvQhu6eB6kWkahBsW4t9514B9JJo10aHYLF6MD C6EQ== X-Gm-Message-State: AOJu0Yz1sNnjdPpjLnThrpC0HMqwKkvvUju3H0b3PZG5Yl22BHboUpTw GQryM4l0jkSJd4FCPiSZzq//oTGvF/hbrg/rZWg4aeXo/daLB7DinddVWybC6bnBi86h3jR5R97 lXbPjMvjLYcdB2HCZj40wznAbHZU= X-Google-Smtp-Source: AGHT+IGJH6c7X2b8BWkk76OX4Ye+vv1+Kxuu8PLSE1uR1A1xFU7DF4zbPR8ga9cG8WShuQ9n2Dv4DVjz1TXgW4RNyNY= X-Received: by 2002:a05:6830:1352:b0:6f1:2ff2:d89b with SMTP id 46e09a7af769-6f8d0a7b945mr12641986a34.21.1716807917121; Mon, 27 May 2024 04:05:17 -0700 (PDT) In-Reply-To: <865xv0wmjd.fsf@gnu.org> 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:286016 Archived-At: --0000000000000c3ce106196d7e1f Content-Type: text/plain; charset="UTF-8" > I've now installed the necessary changes on the master branch, so > please from now on use only the latest master branch for testing this > issue, to avoid the possibility of some wild goose chase. I'm using the master branch now, and it works as expected, and fixes this bug. Thanks. On Sun, 26 May 2024 at 16:44, Eli Zaretskii wrote: > > From: Daniel Clemente > > Date: Sun, 26 May 2024 11:04:30 +0000 > > Cc: 71176@debbugs.gnu.org > > > > Wait, it just crashed on me, seconds after my last message. I just > opened 1 normal frame (not a loop) and > > this happened. > > > > Program received signal SIGSEGV, Segmentation fault. > > 0x00005555556693a0 in face_at_buffer_position (w=0x555556aa7860, pos=1, > endptr=0x7fffffff7668, > > limit=101, mouse=false, base_face_id=0, attr_filter=0) at xfaces.c:6827 > > 6827 return default_face->id; > > (gdb) bt > > #0 0x00005555556693a0 in face_at_buffer_position (w=0x555556aa7860, > pos=1, endptr=0x7fffffff7668, > > limit=101, mouse=false, base_face_id=0, attr_filter=0) at xfaces.c:6827 > > #1 0x00005555555a9452 in face_at_pos (it=0x7fffffff7810, attr_filter=0) > at xdisp.c:4670 > > #2 0x00005555555a9749 in handle_face_prop (it=0x7fffffff7810) at > xdisp.c:4771 > > #3 0x00005555555a7f3a in handle_stop (it=0x7fffffff7810) at xdisp.c:4136 > > #4 0x00005555555b0f73 in reseat (it=0x7fffffff7810, pos=..., > force_p=true) at xdisp.c:7813 > > #5 0x00005555555a6d33 in init_iterator (it=0x7fffffff7810, > w=0x555556aa7860, charpos=1, bytepos=1, > > row=0x0, base_face_id=DEFAULT_FACE_ID) at xdisp.c:3507 > > #6 0x00005555555bed38 in resize_mini_window (w=0x555556aa7860, > exact_p=false) at xdisp.c:12987 > > #7 0x00005555555be3a9 in display_echo_area_1 (a1=0x555556aa7860, > a2=XIL(0)) at xdisp.c:12874 > > #8 0x00005555555bda95 in with_echo_area_buffer (w=0x555556aa7860, > which=0, fn=0x5555555be37b > > , a1=0x555556aa7860, a2=XIL(0)) at xdisp.c:12646 > > #9 0x00005555555be328 in display_echo_area (w=0x555556aa7860) at > xdisp.c:12842 > > #10 0x00005555555c00cb in echo_area_display (update_frame_p=true) at > xdisp.c:13400 > > #11 0x00005555555bcfcd in message3_nolog (m=XIL(0x5555566175f4)) at > xdisp.c:12348 > > #12 0x00005555555bd079 in message1_nolog (m=0x55555580f792 "Garbage > collecting...") at xdisp.c:12376 > > #13 0x00005555557011e5 in garbage_collect () at alloc.c:6587 > > #14 0x0000555555700fe3 in maybe_garbage_collect () at alloc.c:6507 > > #15 0x000055555572fb69 in maybe_gc () at /w/emacs/src/lisp.h:5929 > > #16 0x00005555557368cd in Ffuncall (nargs=3, args=0x7fffffff8f30) at > eval.c:3088 > > #17 0x000055555565ef76 in tty_lookup_color (f=0x5555563d2718, > color=XIL(0x5555566175b4), > > tty_color=0x7fffffff9070, std_color=0x0) at xfaces.c:1050 > > #18 0x000055555565f204 in tty_defined_color (f=0x5555563d2718, > color_name=0x7ffff24627a0 > > "unspecified-bg", color_def=0x7fffffff9070, alloc=true, _makeIndex=true) > at xfaces.c:1113 > > #19 0x000055555565f681 in load_color2 (f=0x5555563d2718, > face=0x55555656e3c0, name=XIL > > (0x7ffff1ea5b44), target_index=LFACE_BACKGROUND_INDEX, > color=0x7fffffff9070) at xfaces.c:1260 > > #20 0x000055555565f815 in load_color (f=0x5555563d2718, > face=0x55555656e3c0, name=XIL > > (0x7ffff1ea5b44), target_index=LFACE_BACKGROUND_INDEX) at xfaces.c:1323 > > #21 0x000055555566883e in map_tty_color (f=0x5555563d2718, > face=0x55555656e3c0, color=XIL > > (0x7ffff1ea5b44), idx=LFACE_BACKGROUND_INDEX, defaulted=0x7fffffff9147) > at xfaces.c:6510 > > #22 0x0000555555668d59 in realize_tty_face (cache=0x555556a643c0, > attrs=0x7fffffff91f0) at xfaces.c:6660 > > #23 0x0000555555668688 in realize_face (cache=0x555556a643c0, > attrs=0x7fffffff91f0, former_face_id=0) > > at xfaces.c:6062 > > #24 0x000055555566842d in realize_default_face (f=0x5555563d2718) at > xfaces.c:5970 > > It's another call to realize_face which realizes the default face, so > it needs the same protection. > > I've now installed the necessary changes on the master branch, so > please from now on use only the latest master branch for testing this > issue, to avoid the possibility of some wild goose chase. > > Thanks. > --0000000000000c3ce106196d7e1f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> I've now installed the necessary changes on the m= aster branch, so
> please from now on use only the latest master branch for testing this<= br>
> issue, to avoid the possibility of some wild goose chase.
I'm using the master branch now, and it works as expected,= and fixes this bug. Thanks.


On Sun, 26 May 2024 at 16:44, Eli= Zaretskii <eliz@gnu.org> wrote:<= br>
> From: Danie= l Clemente <n1428= 57@gmail.com>
> Date: Sun, 26 May 2024 11:04:30 +0000
> Cc: 71176@d= ebbugs.gnu.org
>
> Wait, it just crashed on me, seconds after my last message.=C2=A0 I ju= st opened 1 normal frame (not a loop) and
> this happened.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00005555556693a0 in face_at_buffer_position (w=3D0x555556aa7860, pos= =3D1, endptr=3D0x7fffffff7668,
> limit=3D101, mouse=3Dfalse, base_face_id=3D0, attr_filter=3D0) at xfac= es.c:6827
> 6827=C2=A0 =C2=A0 =C2=A0 return default_face->id;
> (gdb) bt
> #0=C2=A0 0x00005555556693a0 in face_at_buffer_position (w=3D0x555556aa= 7860, pos=3D1, endptr=3D0x7fffffff7668,
> limit=3D101, mouse=3Dfalse, base_face_id=3D0, attr_filter=3D0) at xfac= es.c:6827
> #1=C2=A0 0x00005555555a9452 in face_at_pos (it=3D0x7fffffff7810, attr_= filter=3D0) at xdisp.c:4670
> #2=C2=A0 0x00005555555a9749 in handle_face_prop (it=3D0x7fffffff7810) = at xdisp.c:4771
> #3=C2=A0 0x00005555555a7f3a in handle_stop (it=3D0x7fffffff7810) at xd= isp.c:4136
> #4=C2=A0 0x00005555555b0f73 in reseat (it=3D0x7fffffff7810, pos=3D...,= force_p=3Dtrue) at xdisp.c:7813
> #5=C2=A0 0x00005555555a6d33 in init_iterator (it=3D0x7fffffff7810, w= =3D0x555556aa7860, charpos=3D1, bytepos=3D1,
> row=3D0x0, base_face_id=3DDEFAULT_FACE_ID) at xdisp.c:3507
> #6=C2=A0 0x00005555555bed38 in resize_mini_window (w=3D0x555556aa7860,= exact_p=3Dfalse) at xdisp.c:12987
> #7=C2=A0 0x00005555555be3a9 in display_echo_area_1 (a1=3D0x555556aa786= 0, a2=3DXIL(0)) at xdisp.c:12874
> #8=C2=A0 0x00005555555bda95 in with_echo_area_buffer (w=3D0x555556aa78= 60, which=3D0, fn=3D0x5555555be37b
> <display_echo_area_1>, a1=3D0x555556aa7860, a2=3DXIL(0)) at xdis= p.c:12646
> #9=C2=A0 0x00005555555be328 in display_echo_area (w=3D0x555556aa7860) = at xdisp.c:12842
> #10 0x00005555555c00cb in echo_area_display (update_frame_p=3Dtrue) at= xdisp.c:13400
> #11 0x00005555555bcfcd in message3_nolog (m=3DXIL(0x5555566175f4)) at = xdisp.c:12348
> #12 0x00005555555bd079 in message1_nolog (m=3D0x55555580f792 "Gar= bage collecting...") at xdisp.c:12376
> #13 0x00005555557011e5 in garbage_collect () at alloc.c:6587
> #14 0x0000555555700fe3 in maybe_garbage_collect () at alloc.c:6507
> #15 0x000055555572fb69 in maybe_gc () at /w/emacs/src/lisp.h:5929
> #16 0x00005555557368cd in Ffuncall (nargs=3D3, args=3D0x7fffffff8f30) = at eval.c:3088
> #17 0x000055555565ef76 in tty_lookup_color (f=3D0x5555563d2718, color= =3DXIL(0x5555566175b4),
> tty_color=3D0x7fffffff9070, std_color=3D0x0) at xfaces.c:1050
> #18 0x000055555565f204 in tty_defined_color (f=3D0x5555563d2718, color= _name=3D0x7ffff24627a0
> "unspecified-bg", color_def=3D0x7fffffff9070, alloc=3Dtrue, = _makeIndex=3Dtrue) at xfaces.c:1113
> #19 0x000055555565f681 in load_color2 (f=3D0x5555563d2718, face=3D0x55= 555656e3c0, name=3DXIL
> (0x7ffff1ea5b44), target_index=3DLFACE_BACKGROUND_INDEX, color=3D0x7ff= fffff9070) at xfaces.c:1260
> #20 0x000055555565f815 in load_color (f=3D0x5555563d2718, face=3D0x555= 55656e3c0, name=3DXIL
> (0x7ffff1ea5b44), target_index=3DLFACE_BACKGROUND_INDEX) at xfaces.c:1= 323
> #21 0x000055555566883e in map_tty_color (f=3D0x5555563d2718, face=3D0x= 55555656e3c0, color=3DXIL
> (0x7ffff1ea5b44), idx=3DLFACE_BACKGROUND_INDEX, defaulted=3D0x7fffffff= 9147) at xfaces.c:6510
> #22 0x0000555555668d59 in realize_tty_face (cache=3D0x555556a643c0, at= trs=3D0x7fffffff91f0) at xfaces.c:6660
> #23 0x0000555555668688 in realize_face (cache=3D0x555556a643c0, attrs= =3D0x7fffffff91f0, former_face_id=3D0)
> at xfaces.c:6062
> #24 0x000055555566842d in realize_default_face (f=3D0x5555563d2718) at= xfaces.c:5970

It's another call to realize_face which realizes the default face, so it needs the same protection.

I've now installed the necessary changes on the master branch, so
please from now on use only the latest master branch for testing this
issue, to avoid the possibility of some wild goose chase.

Thanks.
--0000000000000c3ce106196d7e1f--