From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Abou Samra Newsgroups: gmane.comp.gnu.lilypond.devel,gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: Mysterious crash in BDWGC on Windows Date: Sun, 19 Jun 2022 21:36:47 +0200 Message-ID: References: <922fa43a-882d-b763-3b8b-4a440f02cb04@abou-samra.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27199"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: lilypond-devel To: guile-devel@gnu.org, guile-user@gnu.org Original-X-From: lilypond-devel-bounces+gnu-lilypond-devel=m.gmane-mx.org@gnu.org Sun Jun 19 21:36:59 2022 Return-path: Envelope-to: gnu-lilypond-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 1o30jC-0006sG-Gk for gnu-lilypond-devel@m.gmane-mx.org; Sun, 19 Jun 2022 21:36:58 +0200 Original-Received: from localhost ([::1]:39070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o30jA-0002Zd-U8 for gnu-lilypond-devel@m.gmane-mx.org; Sun, 19 Jun 2022 15:36:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o30j7-0002Z0-Df; Sun, 19 Jun 2022 15:36:53 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.133]:54395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o30j5-0005GL-FQ; Sun, 19 Jun 2022 15:36:53 -0400 Original-Received: from [192.168.1.44] ([82.65.251.18]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.168]) with ESMTPSA (Nemesis) id 1MV2Sk-1oA3jK20AA-00S3l0; Sun, 19 Jun 2022 21:36:48 +0200 Content-Language: en-US In-Reply-To: <922fa43a-882d-b763-3b8b-4a440f02cb04@abou-samra.fr> X-Provags-ID: V03:K1:6Em0HkY7YCSP2hOB755cljSYq2MJvmZT60lLgcbE6WS989ute9B x/L0JzQ/nNpm/u7OMP6GNox2bC5Zout0VOM6HMDXNy+0d7lsp5XB1ZjIZ2lLN8lia9UniJV nsuIDCuLYce0lVUAoQ6Zh4qX1qsif9ImRQ/j49hQ+TfYVY1SfRiUiQ6M5IJFCdLLvsEOja4 DMB1iVoHcosDdtyeUxiOA== X-UI-Out-Filterresults: notjunk:1;V03:K0:rZbPz5LOAPA=:CIMCXXqz/PvGBUgu7OwOhI GkLdQDPNOlwhpHqw6MPgwqQ/34OQ7papiVj05c/KF6p28KXnjX2otjffqHEDsZZ+7xKaV0J/j w1/P6Z9ysw9eszox8v8dZHVyU1mTc1TlR8O8olh4u4nk1og/ZzRFoqNG2md4xNtp+mGdcE39Q 4EqBb1pbIpEQPck9TR3aD80e6g9FU7/mSlRKqa8axbLTRlQ8MUJMPnozFMkzS09s6Y1acdQu7 1HFPGTlUAwWqkaFY527MmpOStX+rNS1wNoYrCtRNnmM0c4GlnI5VPTpaxghQ9Ao7bHHIx3+5L K7ZOsxYSzJUqTSpIO2sFxe357sqf2BbZekTb9qPHgxJydyIJKwWSIpp4Y3PtjWqj6bWPeUU9j /uM4AQDF3b1bTlEfiNlSzRvUSRE+KRfqBHrLbG7KsfR2HxBIIIxpJI4zlDlMAorBSGA2bXkbe xJR6DwGrAgfXHo0weoo7wbnUSErGyN08xbsyWJt1GMTfobQ3dRBerf7wILHSu6RwLSHtfGrcO c8aiocm04IGkILGzXI90ikLHW9+2As34XNOcskZdBD6QhGlIbOetI4Gdvgvryk/vpoPF5EW21 QIDQ0tWilDHnA9t4uF6RZmInQp5IVMo1jIpLV4S51Kq5CD0XZvnWSaHdiNo9zqupzHnSaVDni JZEtGYVOFwGmYn26HWxByJ2wk/0/UdBXnHL3J7lwn0aKXumz1MbtxGxsAWhUqb+vudCZlK9Zu 1dXTQzvBqMxbibMBYYZXS0ucJMBkHnbmPjm2Lg== Received-SPF: none client-ip=212.227.126.133; envelope-from=jean@abou-samra.fr; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, WEIRD_PORT=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: lilypond-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions on LilyPond development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lilypond-devel-bounces+gnu-lilypond-devel=m.gmane-mx.org@gnu.org Original-Sender: "lilypond-devel" Xref: news.gmane.io gmane.comp.gnu.lilypond.devel:79906 gmane.lisp.guile.devel:21224 gmane.lisp.guile.user:18315 Archived-At: Reposting because of mangled formatting, sorry. Not sure what went wrong. Hi Guilers, Sorry about the double post on guile-devel and guile-user, I wasn't sure which one was more appropriate for this. In LilyPond, we're getting random crashes on Windows builds, with Guile 2.2 [*]. These are builds are done by cross-compilation to MinGW. Tracker issue: https://gitlab.com/lilypond/lilypond/-/issues/6361 Example backtrace (trimmed): Thread 1 received signal SIGSEGV, Segmentation fault. GC_mark_from (mark_stack_top=0x24956eb0ae0, mark_stack=0x24956eb0000, mark_stack_limit=0x24956ec0000) at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/gc-8.2.0/mark.c:816 816 /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/gc-8.2.0/mark.c: No such file or directory. (gdb) backtrace #0 GC_mark_from (mark_stack_top=0x24956eb0ae0, mark_stack=0x24956eb0000, mark_stack_limit=0x24956ec0000) at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/gc-8.2.0/mark.c:816 #1 0x00007ff6c2950338 in GC_mark_some (cold_gc_frame=0x7b439fba10 "\006") at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/gc-8.2.0/mark.c:321 #2 0x00007ff6c2947a25 in GC_stopped_mark (stop_func=stop_func@entry=0x7ff6c29478b0 ) at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/gc-8.2.0/alloc.c:880 #3 0x00007ff6c2948abb in GC_try_to_collect_inner (stop_func=stop_func@entry=0x7ff6c29478b0 ) at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/gc-8.2.0/alloc.c:626 #4 0x00007ff6c2948d58 in GC_try_to_collect_inner (stop_func=0x7ff6c29478b0 ) at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/gc-8.2.0/alloc.c:577 #5 GC_try_to_collect_general (stop_func=stop_func@entry=0x0, force_unmap=force_unmap@entry=0) at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/gc-8.2.0/alloc.c:1298 #6 0x00007ff6c294918d in GC_gcollect () at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/gc-8.2.0/alloc.c:1323 #7 0x00007ff6c2896b69 in scm_i_gc (what=) at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/guile-2.2.7/libguile/gc.c:266 #8 scm_gc () at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/guile-2.2.7/libguile/gc.c:255 #9 0x00007ff6c290788f in vm_regular_engine (thread=0x0, vp=0x2495b083f30, registers=0x24956ec0000, resume=1016) at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/guile-2.2.7/libguile/vm-engine.c:786 #10 0x00007ff6c2909c9b in scm_call_n (proc=0x249590a3d40, argv=argv@entry=0x7b439fbe78, nargs=nargs@entry=1) at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/guile-2.2.7/libguile/vm.c:1260 #11 0x00007ff6c288ee19 in scm_call_1 (proc=, arg1=) at /home/jean/repos/lilypond/release/binaries/mingw/dependencies/src/guile-2.2.7/libguile/eval.c:485 #12 0x00007ff6c2836e0a in Method_instance::operator() (this=) at /home/jean/repos/lilypond/release/binaries/mingw/lilypond/lilypond-2.23.10/lily/include/callback.hh:212 #13 Translator_group::precomputed_translator_foreach (idx=STOP_TRANSLATION_TIMESTEP, this=0x2495d75bb90) at /home/jean/repos/lilypond/release/binaries/mingw/lilypond/lilypond-2.23.10/lily/translator-group.cc:267 As a further data point, the bug only reproduces with address space layout randomization enabled. Do you have any idea what might be causing this? At LilyPond, we're totally lost on what could provoke such an internal crash in BDWGC. Do you have successful experience with using Guile 2.2 on Windows? Did you see this kind of thing before? In short, does it ring a bell? Thanks, Jean [*] I quickly tried checking if they reproduced with Guile 3 but got a     boot failure and didn't dig deeper. See the issue.