From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.bugs Subject: bug#57751: 29.0.50; crash in GC Date: Tue, 13 Sep 2022 10:51:12 -0400 Message-ID: References: Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20304"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: 57751@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 13 16:57:36 2022 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 1oY7Lz-00058Z-Ua for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 16:57:36 +0200 Original-Received: from localhost ([::1]:46960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY7Lz-0006U1-0r for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 10:57:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY7Gd-0000yN-6e for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 10:52:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oY7Gc-0002lo-GD for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 10:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oY7Gc-0007Ie-Cc for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 10:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2022 14:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57751 X-GNU-PR-Package: emacs Original-Received: via spool by 57751-submit@debbugs.gnu.org id=B57751.166308068428008 (code B ref 57751); Tue, 13 Sep 2022 14:52:02 +0000 Original-Received: (at 57751) by debbugs.gnu.org; 13 Sep 2022 14:51:24 +0000 Original-Received: from localhost ([127.0.0.1]:52419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY7Fy-0007He-Hh for submit@debbugs.gnu.org; Tue, 13 Sep 2022 10:51:24 -0400 Original-Received: from mail-qv1-f51.google.com ([209.85.219.51]:44669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY7Fv-0007HP-No for 57751@debbugs.gnu.org; Tue, 13 Sep 2022 10:51:21 -0400 Original-Received: by mail-qv1-f51.google.com with SMTP id v15so9342547qvi.11 for <57751@debbugs.gnu.org>; Tue, 13 Sep 2022 07:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:reply-to :return-receipt-to:user-agent:references:in-reply-to:subject:cc:to :from:sender:from:to:cc:subject:date; bh=J0UhBwQOjSciKCtPyMfF11ujKM/8tqgyWm0ziXpUDYs=; b=CqA2R+VVKbX5ITGXm2efzUmx2Cl8YiIfhVTjI4E1CVhWbCl1yu784ULVas8r4Je0Vs ak08LUJv0D0R2fKrr2GXkmCm1cw02RnD/uwRGjwWtpznqBiwcwErbV+w5ah8Vb3N3/Yn /FPHGp5WLZSN78Ou7wiYuKT+DBhCNqsCxFC4pPZGzKUzssMOyqYXKI4Zi0FU8N5yxwWa Qrr0dNV9CLswvpna+/U7xne5CfycjbPkqdb29V6E1olz76Pya6RuHvFIObvoDhF/hYpj igLWc5QRPqMu4WiRBgwLdXWJV/n5n1quTw2KTVbRjIrJYfDx1GSgR+gLQmOtYKjKnaNr DoLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:reply-to :return-receipt-to:user-agent:references:in-reply-to:subject:cc:to :from:sender:x-gm-message-state:from:to:cc:subject:date; bh=J0UhBwQOjSciKCtPyMfF11ujKM/8tqgyWm0ziXpUDYs=; b=MOtrMFQmKLFxJI4VQpNJJAkly8ZJ8r760UvqbvxInLpXAt4UOqQiJR5CPaC5rAuNz6 WlO4eV1SdYMTXjVmF9BDx8WKTVvwVt4+q8//rrU6P1X79QL4Vq5pprtJpcS1IGbe9Tf+ oV8LwS5dzyT+Ya8zLsRdI2sQMqahkugbWeHOyBQ+uMVyPEoxxxGq6AyRoYBij5m5okaN wZ597kXfe3QF4Ix6IfNREfbaF/ZpKJNu6xwexxdBUnrHrxw3HH+ijyLNdDUxLdIXd3Ip gpiEQqayqMsF3dWwQQeaS7/hGtohTFe6/rVffgx+aGl/REP4EG+Vn4B1HHV+TKdXpdFn 2JUA== X-Gm-Message-State: ACgBeo06EoXMvv6x6lH2MBr+PiM/AirlGfG7c0Uo1LrDffgkPFRq91Q7 TD8FL/sf7Ej0U8EvolzNV0pW7c7pjBdx X-Google-Smtp-Source: AA6agR5QoASDkuRmKWT4iyuzZYCmvcurx6fx1TBc7Vy1XbaVYWV75LRJJLq3Eq1aO7qnEDFbGa6Vzw== X-Received: by 2002:a0c:a99c:0:b0:4aa:a0ba:5c88 with SMTP id a28-20020a0ca99c000000b004aaa0ba5c88mr28379731qvb.125.1663080673924; Tue, 13 Sep 2022 07:51:13 -0700 (PDT) Original-Received: from 3c22fb11fdab.ant.amazon.com (pool-71-125-32-130.nycmny.fios.verizon.net. [71.125.32.130]) by smtp.gmail.com with ESMTPSA id z13-20020ac87cad000000b00338ae1f5421sm8585420qtv.0.2022.09.13.07.51.12 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Sep 2022 07:51:13 -0700 (PDT) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Tue, 13 Sep 2022 07:20:58 +0200") X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. 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" Xref: news.gmane.io gmane.emacs.bugs:242389 Archived-At: Hi Gerd, Thank you for such an informative reply. > * Gerd M=C3=B6llmann [2022-09-13 07:20:58 +020= 0]: > > (If you use it for building Emacs, you'll need to "brew install bear", > or remove the call to bear in the script. Also, you might want to use > --elc if you don't use native compilatin.) I think native compilation is disabled on mac by default. > make-emacs --asan I build my normal Emacs out of the tree, so the source tree is already clean, thus I just did --8<---------------cut here---------------start------------->8--- ./autogen.sh=20 ./configure LDFLAGS=3D"-fsanitize=3Daddress -fno-omit-frame-pointer" CFLAGS= =3D"-g -O0 -fsanitize=3Daddress -fno-omit-frame-pointer" --8<---------------cut here---------------end--------------->8--- which produced --8<---------------cut here---------------start------------->8--- Configured for 'x86_64-apple-darwin21.6.0'. Where should the build process find the source code? . What compiler should emacs be built with? gcc -g -O0 -fsani= tize=3Daddress -fno-omit-frame-pointer Should Emacs use the GNU version of malloc? no (The GNU allocators don't work with this system configuration.) Should Emacs use a relocating allocator for buffers? no Should Emacs use mmap(2) for buffer allocation? no What window system should Emacs use? nextstep What toolkit should Emacs use? none Where do we find X Windows header files? NONE Where do we find X Windows libraries? NONE Does Emacs use -lXaw3d? no Does Emacs use -lXpm? no Does Emacs use -ljpeg? yes Does Emacs use -ltiff? yes Does Emacs use a gif library? yes -lgif Does Emacs use a png library? yes -L/usr/local/= Cellar/libpng/1.6.37/lib -lpng16 -lz Does Emacs use -lrsvg-2? no Does Emacs use -lwebp? yes Does Emacs use -lsqlite3? yes Does Emacs use cairo? no Does Emacs use -llcms2? yes Does Emacs use imagemagick? no Does Emacs use native APIs for images? yes (ns) Does Emacs support sound? no Does Emacs use -lgpm? no Does Emacs use -ldbus? no Does Emacs use -lgconf? no Does Emacs use GSettings? no Does Emacs use a file notification library? yes (kqueue) Does Emacs use access control lists? yes=20 Does Emacs use -lselinux? no Does Emacs use -lgnutls? yes Does Emacs use -lxml2? yes Does Emacs use -lfreetype? no Does Emacs use HarfBuzz? no Does Emacs use -lm17n-flt? no Does Emacs use -lotf? no Does Emacs use -lxft? no Does Emacs use -lsystemd? no Does Emacs use -ljansson? yes Does Emacs use the GMP library? yes Does Emacs directly use zlib? yes Does Emacs have dynamic modules support? yes Does Emacs use toolkit scroll bars? yes Does Emacs support Xwidgets? no Does Emacs have threading support in lisp? yes Does Emacs support the portable dumper? yes Does Emacs support legacy unexec dumping? no Which dumping strategy does Emacs use? pdumper Does Emacs have native lisp compiler? no Does Emacs use version 2 of the X Input Extension? no Does Emacs generate a smaller-size Japanese dictionary? no --8<---------------cut here---------------end--------------->8--- and `make' which printed, inter alia, --8<---------------cut here---------------start------------->8--- CCLD temacs ld: warning: dylib (/usr/local/lib/libtiff.dylib) was built for newer macOS= version (12.0) than being linked (11.1) ld: warning: dylib (/usr/local/lib/libjpeg.dylib) was built for newer macOS= version (12.0) than being linked (11.1) ld: warning: dylib (/usr/local/Cellar/webp/1.2.4/lib/libwebpdemux.dylib) wa= s built for newer macOS version (12.0) than being linked (11.1) ld: warning: dylib (/usr/local/Cellar/webp/1.2.4/lib/libwebp.dylib) was bui= lt for newer macOS version (12.0) than being linked (11.1) ld: warning: dylib (/usr/local/Cellar/gnutls/3.7.7/lib/libgnutls.dylib) was= built for newer macOS version (12.0) than being linked (11.1) ld: warning: dylib (/usr/local/Cellar/little-cms2/2.13.1_1/lib/liblcms2.dyl= ib) was built for newer macOS version (12.0) than being linked (11.1) --8<---------------cut here---------------end--------------->8--- > You then run that Emacs in LLDB > > cd src > lldb emacs --8<---------------cut here---------------start------------->8--- lldb) run Process 18589 launched: '/Users/sdsg/src/emacs/trunk/src/emacs' (x86_64) emacs(18589,0x101748600) malloc: nano zone abandoned due to inability to pr= eallocate reserved vm space. 2022-09-13 10:48:24.884165-0400 emacs[18589:5791720] SecTaskLoadEntitlement= s failed error=3D22 cs_flags=3D20, pid=3D18589 2022-09-13 10:48:24.884326-0400 emacs[18589:5791720] SecTaskCopyDebugDescri= ption: emacs[18589]/0#-1 LF=3D0 2022-09-13 10:48:25.535780-0400 emacs[18589:5791720] SecTaskLoadEntitlement= s failed error=3D22 cs_flags=3D20, pid=3D18589 2022-09-13 10:48:25.535931-0400 emacs[18589:5791720] SecTaskCopyDebugDescri= ption: emacs[18589]/0#-1 LF=3D0 2022-09-13 10:48:26.251257-0400 emacs[18589:5791720] SecTaskLoadEntitlement= s failed error=3D22 cs_flags=3D20, pid=3D18589 2022-09-13 10:48:26.251426-0400 emacs[18589:5791720] SecTaskCopyDebugDescri= ption: emacs[18589]/0#-1 LF=3D0 2022-09-13 10:48:26.252541-0400 emacs[18589:5791720] SecTaskLoadEntitlement= s failed error=3D22 cs_flags=3D20, pid=3D18589 2022-09-13 10:48:26.252654-0400 emacs[18589:5791720] SecTaskCopyDebugDescri= ption: emacs[18589]/0#-1 LF=3D0 2022-09-13 10:48:30.932717-0400 emacs[18589:5791720] SecTaskLoadEntitlement= s failed error=3D22 cs_flags=3D20, pid=3D18589 2022-09-13 10:48:30.932872-0400 emacs[18589:5791720] SecTaskCopyDebugDescri= ption: emacs[18589]/0#-1 LF=3D0 2022-09-13 10:48:30.934031-0400 emacs[18589:5791720] SecTaskLoadEntitlement= s failed error=3D22 cs_flags=3D20, pid=3D18589 2022-09-13 10:48:30.934108-0400 emacs[18589:5791720] SecTaskCopyDebugDescri= ption: emacs[18589]/0#-1 LF=3D0 Process 18589 stopped * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D EXC_BAD_ACC= ESS (code=3D1, address=3D0x7ff8c11d6f70) frame #0: 0x00000001006dc4e5 emacs`symbol_marked_p(s=3D0x00007ff8c11d6f= 70) at alloc.c:4020:14 4017 { 4018 return pdumper_object_p (s) 4019 ? pdumper_marked_p (s) -> 4020 : s->u.s.gcmarkbit; 4021 } 4022 4023 static void Target 0: (emacs) stopped. (lldb) bt * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D EXC_BAD_ACC= ESS (code=3D1, address=3D0x7ff8c11d6f70) * frame #0: 0x00000001006dc4e5 emacs`symbol_marked_p(s=3D0x00007ff8c11d6f= 70) at alloc.c:4020:14 frame #1: 0x00000001006db869 emacs`process_mark_stack(base_sp=3D0) at a= lloc.c:6943:10 frame #2: 0x00000001006d9a79 emacs`mark_object(obj=3D0x00007ff7bfee99d0= ) at alloc.c:7035:3 frame #3: 0x000000010052bf20 emacs`mark_kboards at keyboard.c:13266:4 frame #4: 0x00000001006d7adc emacs`garbage_collect at alloc.c:6187:3 frame #5: 0x00000001006d70b6 emacs`maybe_garbage_collect at alloc.c:609= 0:5 frame #6: 0x00000001008a6939 emacs`maybe_gc at lisp.h:5564:5 frame #7: 0x0000000100892632 emacs`exec_byte_code(fun=3D0x0000621001903= 355, args_template=3D257, nargs=3D1, args=3D0x000000010d0023e8) at bytecode= .c:782:6 frame #8: 0x00000001007980e7 emacs`fetch_and_exec_byte_code(fun=3D0x000= 0621001946b15, args_template=3D257, nargs=3D1, args=3D0x000000010d001da8) a= t eval.c:3101:10 frame #9: 0x0000000100790587 emacs`funcall_lambda(fun=3D0x0000621001946= b15, nargs=3D1, arg_vector=3D0x000000010d001da8) at eval.c:3173:9 frame #10: 0x000000010078e703 emacs`funcall_general(fun=3D0x00006210019= 46b15, numargs=3D1, args=3D0x000000010d001da8) at eval.c:2964:12 frame #11: 0x000000010077af9b emacs`Ffuncall(nargs=3D2, args=3D0x000000= 010d001da0) at eval.c:3014:21 frame #12: 0x0000000100785ea5 emacs`Fapply(nargs=3D2, args=3D0x00000001= 0d001da0) at eval.c:2642:14 frame #13: 0x000000010078ff1c emacs`funcall_subr(subr=3D0x0000000100cc3= ca0, numargs=3D2, args=3D0x000000010d001da0) at eval.c:3079:9 frame #14: 0x00000001008928de emacs`exec_byte_code(fun=3D0x00006210018e= b7a5, args_template=3D385, nargs=3D2, args=3D0x000000010d001d10) at bytecod= e.c:809:14 frame #15: 0x00000001007980e7 emacs`fetch_and_exec_byte_code(fun=3D0x00= 006210018eb7a5, args_template=3D385, nargs=3D2, args=3D0x000000010d001d08) = at eval.c:3101:10 frame #16: 0x0000000100790587 emacs`funcall_lambda(fun=3D0x00006210018e= b7a5, nargs=3D2, arg_vector=3D0x000000010d001d08) at eval.c:3173:9 frame #17: 0x000000010078e703 emacs`funcall_general(fun=3D0x00006210018= eb7a5, numargs=3D2, args=3D0x000000010d001d08) at eval.c:2964:12 frame #18: 0x000000010077af9b emacs`Ffuncall(nargs=3D3, args=3D0x000000= 010d001d00) at eval.c:3014:21 frame #19: 0x0000000100785ea5 emacs`Fapply(nargs=3D3, args=3D0x00000001= 0d001d00) at eval.c:2642:14 frame #20: 0x000000010078ff1c emacs`funcall_subr(subr=3D0x0000000100cc3= ca0, numargs=3D3, args=3D0x000000010d001d00) at eval.c:3079:9 frame #21: 0x00000001008928de emacs`exec_byte_code(fun=3D0x000062100192= 9fc5, args_template=3D514, nargs=3D2, args=3D0x000000010d001d08) at bytecod= e.c:809:14 frame #22: 0x00000001007980e7 emacs`fetch_and_exec_byte_code(fun=3D0x00= 000001060419d5, args_template=3D769, nargs=3D1, args=3D0x000000010d001b90) = at eval.c:3101:10 frame #23: 0x0000000100790587 emacs`funcall_lambda(fun=3D0x000000010604= 19d5, nargs=3D1, arg_vector=3D0x000000010d001b90) at eval.c:3173:9 frame #24: 0x000000010078e703 emacs`funcall_general(fun=3D0x00000001060= 419d5, numargs=3D1, args=3D0x000000010d001b90) at eval.c:2964:12 frame #25: 0x000000010077af9b emacs`Ffuncall(nargs=3D2, args=3D0x000000= 010d001b88) at eval.c:3014:21 frame #26: 0x0000000100785ea5 emacs`Fapply(nargs=3D2, args=3D0x00000001= 0d001b88) at eval.c:2642:14 frame #27: 0x000000010078ff1c emacs`funcall_subr(subr=3D0x0000000100cc3= ca0, numargs=3D2, args=3D0x000000010d001b88) at eval.c:3079:9 frame #28: 0x00000001008928de emacs`exec_byte_code(fun=3D0x000000010601= 59ad, args_template=3D770, nargs=3D2, args=3D0x000000010d001be8) at bytecod= e.c:809:14 frame #29: 0x00000001007980e7 emacs`fetch_and_exec_byte_code(fun=3D0x00= 006210018b3575, args_template=3D256, nargs=3D0, args=3D0x000000010d001938) = at eval.c:3101:10 frame #30: 0x0000000100790587 emacs`funcall_lambda(fun=3D0x00006210018b= 3575, nargs=3D0, arg_vector=3D0x000000010d001938) at eval.c:3173:9 frame #31: 0x000000010078e703 emacs`funcall_general(fun=3D0x00006210018= b3575, numargs=3D0, args=3D0x000000010d001938) at eval.c:2964:12 frame #32: 0x0000000100892908 emacs`exec_byte_code(fun=3D0x00000001061f= d5a5, args_template=3D0, nargs=3D0, args=3D0x000000010d001930) at bytecode.= c:811:14 frame #33: 0x00000001007980e7 emacs`fetch_and_exec_byte_code(fun=3D0x00= 000001061bfb75, args_template=3D0, nargs=3D0, args=3D0x00007ff7bfefdac0) at= eval.c:3101:10 frame #34: 0x0000000100790587 emacs`funcall_lambda(fun=3D0x00000001061b= fb75, nargs=3D0, arg_vector=3D0x00007ff7bfefdac0) at eval.c:3173:9 frame #35: 0x00000001007858e2 emacs`apply_lambda(fun=3D0x00000001061bfb= 75, args=3D0x0000000000000000, count=3D(bytes =3D 128)) at eval.c:3123:9 frame #36: 0x0000000100772d3f emacs`eval_sub(form=3D0x0000000106abe8bb)= at eval.c:2564:12 frame #37: 0x0000000100782a67 emacs`Feval(form=3D0x0000000106abe8bb, le= xical=3D0x0000000000000000) at eval.c:2375:28 frame #38: 0x000000010052c40b emacs`top_level_2 at keyboard.c:1141:10 frame #39: 0x000000010077d829 emacs`internal_condition_case(bfun=3D(ema= cs`top_level_2 at keyboard.c:1140), handlers=3D0x0000000000000090, hfun=3D(= emacs`cmd_error at keyboard.c:935)) at eval.c:1497:25 frame #40: 0x000000010052c300 emacs`top_level_1(ignore=3D0x000000000000= 0000) at keyboard.c:1149:5 frame #41: 0x000000010077bb4d emacs`internal_catch(tag=3D0x000000000000= ea00, func=3D(emacs`top_level_1 at keyboard.c:1146), arg=3D0x00000000000000= 00) at eval.c:1220:25 frame #42: 0x00000001004e6984 emacs`command_loop at keyboard.c:1109:2 frame #43: 0x00000001004e6496 emacs`recursive_edit_1 at keyboard.c:719:9 frame #44: 0x00000001004e737f emacs`Frecursive_edit at keyboard.c:802:3 frame #45: 0x00000001004debe6 emacs`main(argc=3D1, argv=3D0x00007ff7bfe= ff220) at emacs.c:2517:3 frame #46: 0x00000001016cd52e dyld`start + 462 --8<---------------cut here---------------end--------------->8--- what do I do next? Would you like to get on the phone to drive my fingers? ;-) --=20 Sam Steingold (https://aphar.dreamwidth.org/) on darwin Ns 10.3.2113 https://lastingimpactpsychology.com https://steingoldpsychology.com https://fairforall.org http://think-israel.org To be popular with ladies one has to be smart, handsome & rich. Or to be a = cat.