From: Eli Zaretskii <eliz@gnu.org>
To: Pip Cet <pipcet@protonmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: scratch/igc 90e80a9a53e 6/6: Adjust igc.c code to header changes
Date: Sun, 21 Jul 2024 13:47:26 +0300 [thread overview]
Message-ID: <8634o3c98h.fsf@gnu.org> (raw)
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=<optimized out>, buf=<optimized out>,
ctx=<optimized out>) 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=<optimized out>, out=<optimized out>,
ctx=<optimized out>) at pdumper.c:1000
#8 dump_float (lfloat=<optimized out>, ctx=<optimized out>) 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=<optimized out>,
track_referrers=<optimized out>) 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=<optimized out>) 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=<optimized out>) 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=<optimized out>) 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=<optimized out>, end@entry=XIL(0)) at lread.c:2537
#29 0x007b797b in Fload (file=<optimized out>, noerror=XIL(0),
nomessage=XIL(0), nosuffix=XIL(0), must_suffix=<optimized out>)
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 <top_level_2>, handlers=handlers@entry=XIL(0x60),
hfun=hfun@entry=0x6df806 <cmd_error>) 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 <top_level_1>, 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=<optimized out>, argv=<optimized out>)
at emacs.c:2646
next reply other threads:[~2024-07-21 10:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-21 10:47 Eli Zaretskii [this message]
2024-07-21 11:42 ` scratch/igc 90e80a9a53e 6/6: Adjust igc.c code to header changes Pip Cet
2024-07-21 12:07 ` Eli Zaretskii
2024-07-21 14:11 ` Pip Cet
2024-07-21 14:25 ` Eli Zaretskii
2024-07-21 16:20 ` Pip Cet
2024-07-21 16:27 ` Eli Zaretskii
2024-07-22 14:35 ` Pip Cet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8634o3c98h.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=pipcet@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).