From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: scratch/igc 90e80a9a53e 6/6: Adjust igc.c code to header changes Date: Sun, 21 Jul 2024 13:47:26 +0300 Message-ID: <8634o3c98h.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13884"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 21 12:48:32 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sVU7D-0003Lc-MV for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Jul 2024 12:48:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVU6M-0002CW-G3; Sun, 21 Jul 2024 06:47:38 -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 1sVU6F-0002AU-Ji for emacs-devel@gnu.org; Sun, 21 Jul 2024 06:47:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVU6B-0003F1-St; Sun, 21 Jul 2024 06:47:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to: references; bh=ak4yhg8feiusY5tLwY26XSIB1P2/fA+K3jTGufeiHfk=; b=HaWPdEL4IIlW90 zIrO5fIkKLS/rdHnCV5tAuCkaiMlgqftZChMDFCos/CuDHIDwRuIIKCx8nLcuqXXgSQ6Sdo3Is4af qVBBXse/ncRlDd4cN9Y1Oi1XSHM8hIwjEnl88ZdpfzxrRCkSNZQzcFj7k6WQf1Ec1b4hwQ3UR83B3 tAL9EmeEb6V44FQ2WT1LYmu+eesRSERlDDgvam0DtB/WNiazEidek67byf3SGwQ7hgKXg+FLHwW8X 62TAgOCbaQqqpGRgKKnAwHPwjeJf0Jejhc7sOH7EijLoxO9WDSnfNWuUfyiPjDJE9y8oaJsRdpjka FeSGfwCLf/SanB88HXxw==; X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321864 Archived-At: Hi, This commit, or the few ones preceding it, broke the build for me: Loading d:/gnu/git/emacs/feature/lisp/leim/leim-list.el (source)... Finding pointers to doc strings... Finding pointers to doc strings...done Dumping under the name bootstrap-emacs.pdmp Dumping fingerprint: a1fe182420f021f394b12a862c4306fde3b9547d4943b4f87b1e36e1e602a4f1 Error: error ("Memory exhausted--use M-x save-some-buffers then exit and restart Emacs") dump-emacs-portable("d:/gnu/git/emacs/feature/src/bootstrap-emacs.pdmp") The last commit that did build was 55670e0. The backtrace from the call to memory_full is below. The reason seems to be the recent changes in igc_dump_finish_obj: the result is that dump_igc_finish_obj wants to write a preposterously large amount of zeros into the dump: 744MB in the backtrace below, but I've seen much larger numbers there, like 1.2GB(!). This causes dump_grow_buffer requests 2GB from the OS, which rightfully fails. Dumping under the name bootstrap-emacs.pdmp Dumping fingerprint: a1fe182420f021f394b12a862c4306fde3b9547d4943b4f87b1e36e1e602a4f1 Thread 1 hit Breakpoint 2, memory_full (nbytes=nbytes@entry=1073741824) at alloc.c:4532 4532 { (gdb) bt #0 memory_full (nbytes=nbytes@entry=1073741824) at alloc.c:4532 #1 0x0074a65e in xrealloc (block=0x3a320020, size=1073741824) at alloc.c:829 #2 0x0074fb1d in dump_grow_buffer (ctx=0x724eb38, ctx=0x724eb38) at pdumper.c:627 #3 dump_write (nbyte=, buf=, ctx=) at pdumper.c:798 #4 dump_write (ctx=0x724eb38, buf=0x724e848, nbyte=8) at pdumper.c:792 #5 0x0074fc61 in dump_write_zero (ctx=ctx@entry=0x724eb38, nbytes=744574048) at pdumper.c:876 #6 0x0074fdca in dump_igc_finish_obj (ctx=ctx@entry=0x724eb38) at pdumper.c:937 #7 0x0075319c in dump_object_finish (sz=, out=, ctx=) at pdumper.c:1000 #8 dump_float (lfloat=, ctx=) at pdumper.c:2381 #9 dump_object (ctx=0x724eb38, ctx@entry=0x724eb3c, object=XIL(0xcbf005)) at pdumper.c:3306 #10 0x0075571a in dump_drain_copied_objects (ctx=0x724eb3c) at pdumper.c:3518 #11 Fdump_emacs_portable (filename=, track_referrers=) at pdumper.c:4502 #12 0x0077ae26 in eval_sub (form=XIL(0xbb30653)) at eval.c:2630 #13 0x0077ac31 in eval_sub (form=XIL(0xbb30593)) at eval.c:2578 #14 0x0077afb3 in Fprogn (body=XIL(0xbb3084b)) at eval.c:452 #15 0x0077c058 in Flet (args=) at lisp.h:1545 #16 0x0077ac31 in eval_sub (form=XIL(0xbb304ab)) at eval.c:2578 #17 0x0077c906 in Funwind_protect (args=XIL(0xbb3085b)) at lisp.h:1545 #18 0x0077ac31 in eval_sub (form=XIL(0xbb3049b)) at eval.c:2578 #19 0x0077afb3 in Fprogn (body=XIL(0)) at eval.c:452 #20 0x0077c058 in Flet (args=) at lisp.h:1545 #21 0x0077ac31 in eval_sub (form=XIL(0xbb3046b)) at eval.c:2578 #22 0x0077afb3 in Fprogn (body=XIL(0xbb3131b)) at eval.c:452 #23 0x0077c058 in Flet (args=) at lisp.h:1545 #24 0x0077ac31 in eval_sub (form=XIL(0xbb2ff0b)) at eval.c:2578 #25 0x0077ac31 in eval_sub (form=XIL(0xbb2feeb)) at eval.c:2578 #26 0x0077afb3 in Fprogn (body=XIL(0)) at eval.c:452 #27 0x0077ac31 in eval_sub (form=form@entry=XIL(0xbb2f9d3)) at eval.c:2578 #28 0x007b6f24 in readevalloop (readcharfun=readcharfun@entry=XIL(0x60c0), infile0=infile0@entry=0x724f638, sourcename=sourcename@entry=XIL(0xa848184), printflag=printflag@entry=false, unibyte=unibyte@entry=XIL(0), readfun=readfun@entry=XIL(0), start=start@entry=XIL(0), end=, end@entry=XIL(0)) at lread.c:2537 #29 0x007b797b in Fload (file=, noerror=XIL(0), nomessage=XIL(0), nosuffix=XIL(0), must_suffix=) at lisp.h:1213 #30 0x0077adc3 in eval_sub (form=form@entry=XIL(0xa847e4b)) at eval.c:2641 #31 0x0077cefd in Feval (form=XIL(0xa847e4b), lexical=lexical@entry=XIL(0x20)) at eval.c:2486 #32 0x006d5d51 in top_level_2 () at lisp.h:1213 #33 0x0077527c in internal_condition_case ( bfun=bfun@entry=0x6d5cf3 , handlers=handlers@entry=XIL(0x60), hfun=hfun@entry=0x6df806 ) at eval.c:1633 #34 0x006d6460 in top_level_1 (ignore=XIL(0)) at lisp.h:1213 #35 0x00775196 in internal_catch (tag=tag@entry=XIL(0xc520), func=func@entry=0x6d6437 , arg=arg@entry=XIL(0)) at eval.c:1312 #36 0x006d5b0f in command_loop () at lisp.h:1213 #37 0x006df3c4 in recursive_edit_1 () at keyboard.c:765 #38 0x006df6b2 in Frecursive_edit () at keyboard.c:848 #39 0x00921485 in main (argc=, argv=) at emacs.c:2646