From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mitchell Newsgroups: gmane.emacs.bugs Subject: bug#71644: 30.0.50; Severe slowdown in larger files with markers beginning in emacs 29+ Date: Mon, 24 Jun 2024 01:09:29 -0600 Message-ID: References: <86ed8tozub.fsf@gnu.org> <86jzijmo5a.fsf@gnu.org> <86y16ylrj9.fsf@gnu.org> <86ed8pjwgc.fsf@gnu.org> <86wmmgg7un.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000092fd60061b9d78f3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34011"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 71644@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 24 09:12:27 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 1sLdsJ-0008hX-0v for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jun 2024 09:12:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLdrw-0000Fh-Jq; Mon, 24 Jun 2024 03:12:04 -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 1sLdru-0000FI-R4 for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 03:12:03 -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 1sLdru-0005BD-JF for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 03:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLdru-0000yd-E0 for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 03:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mitchell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2024 07:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71644 X-GNU-PR-Package: emacs Original-Received: via spool by 71644-submit@debbugs.gnu.org id=B71644.17192130783660 (code B ref 71644); Mon, 24 Jun 2024 07:12:02 +0000 Original-Received: (at 71644) by debbugs.gnu.org; 24 Jun 2024 07:11:18 +0000 Original-Received: from localhost ([127.0.0.1]:43440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLdrB-0000wy-Ms for submit@debbugs.gnu.org; Mon, 24 Jun 2024 03:11:18 -0400 Original-Received: from mail-ed1-f50.google.com ([209.85.208.50]:49198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLdr8-0000wh-0f for 71644@debbugs.gnu.org; Mon, 24 Jun 2024 03:11:15 -0400 Original-Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-57d331cc9feso1920843a12.2 for <71644@debbugs.gnu.org>; Mon, 24 Jun 2024 00:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719213007; x=1719817807; 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=8p2nwWUC5Pl56S26kG3wVnRsAREcVHm63OpBNtR8AbU=; b=Y0E+JcQLuKp+riiAud0e/7shUVq7ii3GtLswskmOv5JmTP221HH43sE7JJA0A90lev ZnM4k/nsWKInVxhE6yS0yY85Bho5d5txSfdDUBXiOE9KcgnI2RjIvjCnv61ITW6ZAPk5 WMKU8MAY96R70UFTAIoQf3LCFxL/fGQ57mSpNHq6Oac6H2U4KyGaYb6g173pvfkQc9bY BigSp2UP5/nRbXcSiC7aoRHge6vPCag6CH6Xwc0k52yelSKaSJ3SvrZJl8i7ttpbgsqi NwoRhNmApbVwGislavXd4LP1lWPCYlK7YXXL/e9GET+3OBOaMht3cn5Yy3E2Gqgiiy9P wbFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719213007; x=1719817807; 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=8p2nwWUC5Pl56S26kG3wVnRsAREcVHm63OpBNtR8AbU=; b=JmWDJIYOhLweAOv2Rv73U3jBW4W46aZ7o1p8DHVwHIYULq1pquaJoqxh5VDezSI+Ip l126SOj14+VER2+jZCYqvuF0XS//DzXirNN5bhm8B082zDLPj1eLrs2OcYnmnl9Z5owR EGc5GH65T1xTdbB2Qb2rgVtnPznI3NTn4XcFtjRGNCHVX7lYcStg+iXrelurSH1hb12r 2hIhPemAb8Oot6gVLTODZiGg3Q8/hqV8ZHWqvKye2eyJh6Yu3c2ILDMvlTCFrH05Yogm CFZ59O3X5xQJkUspnR6yUnXlZh+ndDwRzMsoo7FVz7JixaaCM1W6exqdyT1SEP+J4UJB LLuw== X-Forwarded-Encrypted: i=1; AJvYcCWHEwEx+d8wa/R7GX6H3rxHzjLSjvM50XNp5fu+TSW4AClDQIlHxYgCfiA0EB5PQWcReb5VEoViyh14lLF4sYFtM+szMaI= X-Gm-Message-State: AOJu0YxhuY0IksuDJYKWi+Eh4pV6nbUgi+CBbsMlkNm/Ns5AitNMDzbI skv5Fysc5VHF6Pn6CaUuoFi6WmSC1a3DuaqYOKOUB/Sr9upNMDm+diupW3efKh4MDQEjqkrR38D l0dOtisSevnv9VvCQR76z8z4bMWM= X-Google-Smtp-Source: AGHT+IGTKAKkNLy6a6Akixhu2h9dy/g5ZLnrTx0xEha9XhrwZGWYAtu4uekaJu1ehmU4mKhuv+ew3gQ4TGHljwFkY4w= X-Received: by 2002:aa7:d98d:0:b0:57d:6326:c658 with SMTP id 4fb4d7f45d1cf-57d6326cb46mr619601a12.0.1719213006975; Mon, 24 Jun 2024 00:10:06 -0700 (PDT) In-Reply-To: <86wmmgg7un.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:287824 Archived-At: --00000000000092fd60061b9d78f3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am not a programmer by trade. I did previously manage to build the latest version of emacs on Windows as explained at https://readingworldmagazine.com/emacs/2022-02-24-compiling-emacs-29-from-s= ource-on-windows/ , but after several hours trying to compile a version of emacs rolled back to just before that commit, I haven=E2=80=99t had luck. I git-cloned emacs = master to my machine, used `git checkout 8783700b23e70874c4996908bf02c010ae6f3fe1^= ` to narrow down to the parent of the commit in question, ran `./autogen.sh` and then `./configure`, and finally tried `make`, but it keeps raising errors. ChatGPT diagnoses the errors like this: Warnings: calloc Argument Order: Multiple warnings about the incorrect order of arguments in calloc calls. The first argument should specify the number of elements, and the second argument should specify the size of each element. For example: c newstate =3D (re_dfastate_t *) calloc(1, sizeof(re_dfastate_t)); These warnings alone should not cause the build to fail but should be corrected for code correctness and stability. Errors in sysdep.c: Implicit Declaration of waitpid: sysdep.c:472:13: error: implicit declaration of function 'waitpid' [-Wimplicit-function-declaration] 472 | pid =3D waitpid(child, status, options); This error indicates that waitpid is being used without including the proper header file that declares it. Undeclared Identifier WNOHANG: sysdep.c:518:43: error: 'WNOHANG' undeclared (first use in this function) 518 | return get_child_status(child, status, WNOHANG | options, 0); This suggests that WNOHANG is not defined, likely because the appropriate headers are not included. Control Reaches End of Non-Void Function: sysdep.c:519:1: warning: control reaches end of non-void function [-Wreturn-type] 519 | } This means the function is expected to return a value but doesn't in all code paths. Error in print.c: Storing the Address of Local Variable: process.c:7419:53: error: storing the address of local variable 'buf' in 'current_thread->stack_top' [-Wdangling-pointer=3D] This indicates a potential issue with a dangling pointer, where the address of a local variable is being assigned to a global or long-lived structure. If you have any advice I=E2=80=99m happy to try compiling it again. Or perh= aps Ihor or Stefan would have more luck rolling back emacs to just before that commit to confirm that=E2=80=99s the issue? Sorry! --00000000000092fd60061b9d78f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am not a programmer by trade. I did previously mana= ge to build the latest version of emacs on Windows as explained at https://readingworldmagazine.com/emacs/2022-02-24-co= mpiling-emacs-29-from-source-on-windows/ , but after several hours tryi= ng to compile a version of emacs rolled back to just before that commit, I = haven=E2=80=99t had luck. I git-cloned emacs master to my machine, used `git checko= ut 8783700b23e70874c4996908bf02c010ae6f3fe1^` to narrow down to the = parent of the commit in question, ran `./autogen.sh` and then `./configure`= , and finally tried `make`, but it keeps raising errors. ChatGPT diagnoses = the errors like this:

Warnings:
=C2=A0 =C2= =A0 calloc Argument Order: Multiple warnings about the incorrect order of a= rguments in calloc calls. The first argument should specify the number of e= lements, and the second argument should specify the size of each element. F= or example:
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 c
=C2=A0 =C2=A0 = =C2=A0 =C2=A0=C2=A0 =C2=A0 newstate =3D (re_dfastate_t *) calloc(1, sizeof(= re_dfastate_t));
=C2=A0 =C2=A0 These warnings alone should not cause the= build to fail but should be corrected for code correctness and stability.<= br>Errors in sysdep.c:
=C2=A0 =C2=A0 Implicit Declaration of waitpid:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 s= ysdep.c:472:13: error: implicit declaration of function 'waitpid' [= -Wimplicit-function-declaration]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 472 | pid =3D waitpid(child, status, options);<= br>This error indicates that waitpid is being used without including the pr= oper header file that declares it.
Undeclared Identifier WNOHANG:
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sysdep.c:518:43: = error: 'WNOHANG' undeclared (first use in this function)
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 518 | return get_chi= ld_status(child, status, WNOHANG | options, 0);
This suggests that WNOHA= NG is not defined, likely because the appropriate headers are not included.=
Control Reaches End of Non-Void Function:
=C2=A0 =C2=A0 =C2=A0 =C2= =A0=C2=A0 =C2=A0 sysdep.c:519:1: warning: control reaches end of non-void f= unction [-Wreturn-type]
=C2=A0 =C2=A0 519 | }
=C2=A0 =C2=A0 This mean= s the function is expected to return a value but doesn't in all code pa= ths.
Error in print.c:
=C2=A0 =C2=A0 Storing the Address of Local Var= iable:
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 process.c:7419:53: err= or: storing the address of local variable 'buf' in 'current_thr= ead->stack_top' [-Wdangling-pointer=3D]
This indicates a potentia= l issue with a dangling pointer, where the address of a local variable is b= eing assigned to a global or long-lived structure.

If you have any advice I=E2=80=99m happy to try compiling it again. Or per= haps Ihor or Stefan would have more luck rolling back emacs to just before = that commit to confirm that=E2=80=99s the issue? Sorry!
--00000000000092fd60061b9d78f3--