* Re: GNU Guile 2.9.9 Released [beta] [not found] <87zherlphs.fsf@pobox.com> @ 2020-01-13 17:26 ` John Cowan 2020-01-13 23:09 ` bug#39118: " John Cowan ` (2 more replies) 0 siblings, 3 replies; 27+ messages in thread From: John Cowan @ 2020-01-13 17:26 UTC (permalink / raw) To: Andy Wingo; +Cc: bug-guile, guile-devel [-- Attachment #1: Type: text/plain, Size: 1527 bytes --] Guile 2.9.9, like .8 and .7, does not build on Cygwin (64 bit). Configure runs without error, but make crashes with this (truncated to just the tail): Making all in bootstrap make[2]: Entering directory '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9/bootstrap' BOOTSTRAP GUILEC ice-9/eval.go BOOTSTRAP GUILEC ice-9/psyntax-pp.go BOOTSTRAP GUILEC language/cps/intmap.go BOOTSTRAP GUILEC language/cps/intset.go BOOTSTRAP GUILEC language/cps/graphs.go BOOTSTRAP GUILEC ice-9/vlist.go BOOTSTRAP GUILEC srfi/srfi-1.go /bin/sh: line 6: 4294 Segmentation fault (core dumped) GUILE_AUTO_COMPILE=0 ../meta/build-env guild compile --target="x86_64-unknown-cygwin" -O1 -Oresolve-primitives -L "/home/rr828893/Downloads/guile-2.9.9/module" -L "/home/rr828893/Downloads/guile-2.9.9/guile-readline" -o "srfi/srfi-1.go" "../module/srfi/srfi-1.scm" make[2]: *** [Makefile:1930: srfi/srfi-1.go] Error 139 make[2]: Leaving directory '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9/bootstrap' make[1]: *** [Makefile:1849: all-recursive] Error 1 make[1]: Leaving directory '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9' make: *** [Makefile:1735: all] Error 2 All previous problems (which were easy to work around) have gone away in this release, which is progress, but it doesn't get me past Guile 2.2. John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org Your worships will perhaps be thinking that it is an easy thing to blow up a dog? [Or] to write a book? --Don Quixote, Introduction [-- Attachment #2: Type: text/html, Size: 1905 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: GNU Guile 2.9.9 Released [beta] 2020-01-13 17:26 ` GNU Guile 2.9.9 Released [beta] John Cowan @ 2020-01-13 23:09 ` John Cowan 2020-01-20 16:35 ` bug#39118: Segfault while building on 64-bit Cygwin Ludovic Courtès 2020-01-24 15:26 ` dsmich 2 siblings, 0 replies; 27+ messages in thread From: John Cowan @ 2020-01-13 23:09 UTC (permalink / raw) To: Andy Wingo; +Cc: 39118, guile-devel [-- Attachment #1: Type: text/plain, Size: 612 bytes --] Okay, with GUILE_JIT_THRESHOLD set to -1 in the environment, I can build Guile under Cygwin. There are two test failures which probably reflect differences between newlib and glibc: ERROR: time.test: strptime: GNU %s format: strftime fr_FR.utf8 - arguments: ((system-error "strptime" "~A" ("Invalid argument") (22))) ERROR: time.test: strptime: GNU %s format: strftime fr_FR.iso88591 - arguments: ((system-error "strptime" "~A" ("Invalid argument") (22))) And that's that: Cygwin can support Guile 3.0 without JIT. It might be a good idea to force this variable on in "configure" when building under Cygwin. [-- Attachment #2: Type: text/html, Size: 842 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: Segfault while building on 64-bit Cygwin 2020-01-13 17:26 ` GNU Guile 2.9.9 Released [beta] John Cowan 2020-01-13 23:09 ` bug#39118: " John Cowan @ 2020-01-20 16:35 ` Ludovic Courtès 2020-01-20 16:38 ` John Cowan [not found] ` <CAD2gp_ReS1DCZmsakcNK-FegZB_fhzOknDf_d0QdyDJVJS6X_A@mail.gmail.com> 2020-01-24 15:26 ` dsmich 2 siblings, 2 replies; 27+ messages in thread From: Ludovic Courtès @ 2020-01-20 16:35 UTC (permalink / raw) To: John Cowan; +Cc: 39118, guile-devel Hi John, John Cowan <cowan@ccil.org> skribis: > Guile 2.9.9, like .8 and .7, does not build on Cygwin (64 bit). Configure > runs without error, but make crashes with this (truncated to just the tail): > > Making all in bootstrap > make[2]: Entering directory > '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9/bootstrap' > BOOTSTRAP GUILEC ice-9/eval.go > BOOTSTRAP GUILEC ice-9/psyntax-pp.go > BOOTSTRAP GUILEC language/cps/intmap.go > BOOTSTRAP GUILEC language/cps/intset.go > BOOTSTRAP GUILEC language/cps/graphs.go > BOOTSTRAP GUILEC ice-9/vlist.go > BOOTSTRAP GUILEC srfi/srfi-1.go > /bin/sh: line 6: 4294 Segmentation fault (core dumped) > GUILE_AUTO_COMPILE=0 ../meta/build-env guild compile > --target="x86_64-unknown-cygwin" -O1 -Oresolve-primitives -L > "/home/rr828893/Downloads/guile-2.9.9/module" -L > "/home/rr828893/Downloads/guile-2.9.9/guile-readline" -o "srfi/srfi-1.go" > "../module/srfi/srfi-1.scm" > make[2]: *** [Makefile:1930: srfi/srfi-1.go] Error 139 > make[2]: Leaving directory > '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9/bootstrap' > make[1]: *** [Makefile:1849: all-recursive] Error 1 > make[1]: Leaving directory > '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9' > make: *** [Makefile:1735: all] Error 2 Could you try building 3.0.0 with JIT enabled and grab a backtrace? Thanks in advance! Ludo’. ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: Segfault while building on 64-bit Cygwin 2020-01-20 16:35 ` bug#39118: Segfault while building on 64-bit Cygwin Ludovic Courtès @ 2020-01-20 16:38 ` John Cowan [not found] ` <CAD2gp_ReS1DCZmsakcNK-FegZB_fhzOknDf_d0QdyDJVJS6X_A@mail.gmail.com> 1 sibling, 0 replies; 27+ messages in thread From: John Cowan @ 2020-01-20 16:38 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 39118, guile-devel [-- Attachment #1: Type: text/plain, Size: 378 bytes --] Yes, gladly, but I don't know how to get one in this context. Do I need to add some flags to the Makefile, and if so, where? (It's a twisty maze of passages, all different.) . Note that this *is* a build with JIT enabled; when I disable it using the env variable, there are no errors and 3.0.0 works fine. Also, it may take some time, as I have to rebuild my Windows system. [-- Attachment #2: Type: text/html, Size: 466 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <CAD2gp_ReS1DCZmsakcNK-FegZB_fhzOknDf_d0QdyDJVJS6X_A@mail.gmail.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAD2gp_ReS1DCZmsakcNK-FegZB_fhzOknDf_d0QdyDJVJS6X_A@mail.gmail.com> @ 2020-01-20 17:22 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language 2020-02-06 10:53 ` Andy Wingo [not found] ` <87wo90kmw9.fsf@pobox.com> 2020-01-21 9:01 ` Ludovic Courtès [not found] ` <87sgk9faih.fsf@gnu.org> 2 siblings, 2 replies; 27+ messages in thread From: Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2020-01-20 17:22 UTC (permalink / raw) To: John Cowan; +Cc: Andy Wingo, 39118, Ludovic Courtès, guile-devel On Mon, Jan 20, 2020 at 11:38:35AM -0500, John Cowan wrote: > Yes, gladly, but I don't know how to get one in this context. Do I need to > add some flags to the Makefile, and if so, where? (It's a twisty maze of > passages, all different.) . Note that this *is* a build with JIT enabled; > when I disable it using the env variable, there are no errors and 3.0.0 > works fine. > > Also, it may take some time, as I have to rebuild my Windows system. I also tried building Guile 3.0.0 on Cygwin 3.1.x. The failure comes from trying to parse compiled .go files. The last time that I had this sort of problem, it was because the O_BINARY flag was dropped or missing when writing .go files, leading to CR+LF characters in the compiled files. And I diagnosed it by byte-comparing Linux-compiled .go files with Cygwin-compiled .go files, and by looking for CR+LF combinations in the compiled .go files. I don't know if that is what is happening here, but, I'll check that next time I have a chance. Thanks, Michael ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: Segfault while building on 64-bit Cygwin 2020-01-20 17:22 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2020-02-06 10:53 ` Andy Wingo [not found] ` <87wo90kmw9.fsf@pobox.com> 1 sibling, 0 replies; 27+ messages in thread From: Andy Wingo @ 2020-02-06 10:53 UTC (permalink / raw) To: Mike Gran; +Cc: 39118, Ludovic Courtès, guile-devel On Mon 20 Jan 2020 18:22, Mike Gran <spk121@yahoo.com> writes: > On Mon, Jan 20, 2020 at 11:38:35AM -0500, John Cowan wrote: >> Yes, gladly, but I don't know how to get one in this context. Do I need to >> add some flags to the Makefile, and if so, where? (It's a twisty maze of >> passages, all different.) . Note that this *is* a build with JIT enabled; >> when I disable it using the env variable, there are no errors and 3.0.0 >> works fine. >> >> Also, it may take some time, as I have to rebuild my Windows system. > > I also tried building Guile 3.0.0 on Cygwin 3.1.x. The failure comes from > trying to parse compiled .go files. > > The last time that I had this sort of problem, it was because the > O_BINARY flag was dropped or missing when writing .go files, leading > to CR+LF characters in the compiled files. And I diagnosed it by > byte-comparing Linux-compiled .go files with Cygwin-compiled .go > files, and by looking for CR+LF combinations in the compiled .go > files. > > I don't know if that is what is happening here, but, I'll check that > next time I have a chance. Given that John said that compilation went fine with GUILE_JIT_THRESHOLD=-1, I think perhaps this problem may have been fixed in the past. My suspicions are that this issue is an ABI issue with lightening that could perhaps be reproduced by: git co https://gitlab.com/wingo/lightening cd lightening make -C tests test-native Of course any additional confirmation is useful and welcome! Cheers, Andy ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <87wo90kmw9.fsf@pobox.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <87wo90kmw9.fsf@pobox.com> @ 2020-02-07 4:56 ` Charles Stanhope [not found] ` <CAPydmiP42upuz1S=aP+hZk+tD5EJm00b4Gox1+LzEoJXVmRO=w@mail.gmail.com> 1 sibling, 0 replies; 27+ messages in thread From: Charles Stanhope @ 2020-02-07 4:56 UTC (permalink / raw) To: Andy Wingo; +Cc: 39118, Ludovic Courtès, guile-devel, Mike Gran On 2/6/20, Andy Wingo <wingo@pobox.com> wrote: > Given that John said that compilation went fine with > GUILE_JIT_THRESHOLD=-1, I think perhaps this problem may have been fixed > in the past. My suspicions are that this issue is an ABI issue with > lightening that could perhaps be reproduced by: > > git co https://gitlab.com/wingo/lightening > cd lightening > make -C tests test-native > > Of course any additional confirmation is useful and welcome! I haven't been able to get guile to compile under Cygwin (just a compilation error I haven't had time to track down), but I was able to quickly try the above. I get: Testing: test-native-call_10 call_10.c:9: assertion failed: e == 4 /bin/sh: line 1: 7063 Aborted (core dumped) ./$test make: *** [Makefile:31: test-native] Error 134 Despite what it says about a core dump, I find no such thing. Just a file with the same name as the executable suffixed with ".stackdump". (I did attempt to configure the Cygwin dumper before running the tests.) Unless somebody suggests otherwise, I think the error message is more useful. -- Charles ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <CAPydmiP42upuz1S=aP+hZk+tD5EJm00b4Gox1+LzEoJXVmRO=w@mail.gmail.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAPydmiP42upuz1S=aP+hZk+tD5EJm00b4Gox1+LzEoJXVmRO=w@mail.gmail.com> @ 2020-02-14 17:46 ` Charles Stanhope [not found] ` <CAPydmiN7eFD5r-v44hwdFM=1J24okQO8XjHqJ3bXQ2N1OkRVhA@mail.gmail.com> 1 sibling, 0 replies; 27+ messages in thread From: Charles Stanhope @ 2020-02-14 17:46 UTC (permalink / raw) To: Andy Wingo; +Cc: 39118, Ludovic Courtès, guile-devel, Mike Gran [-- Attachment #1: Type: text/plain, Size: 1745 bytes --] On 2/6/20, Charles Stanhope <charles@stanho.pe> wrote: > On 2/6/20, Andy Wingo <wingo@pobox.com> wrote: > >> Given that John said that compilation went fine with >> GUILE_JIT_THRESHOLD=-1, I think perhaps this problem may have been fixed >> in the past. My suspicions are that this issue is an ABI issue with >> lightening that could perhaps be reproduced by: >> >> git co https://gitlab.com/wingo/lightening >> cd lightening >> make -C tests test-native >> >> Of course any additional confirmation is useful and welcome! > > I haven't been able to get guile to compile under Cygwin (just a > compilation error I haven't had time to track down), but I was able to > quickly try the above. I get: > > Testing: test-native-call_10 > call_10.c:9: assertion failed: e == 4 > /bin/sh: line 1: 7063 Aborted (core dumped) ./$test > make: *** [Makefile:31: test-native] Error 134 > Andy, I don't know if you'd want to continue this here or on lightening's gitlab page, but I looked into this a little bit a few minutes here and there this past weeek. The x86 "fast-call" calling convention used on Windows x64[0] and shared by Cygwin[1] requires that the caller reserve 32 bytes of memory on the stack for the callee to spill the register parameters (even if the callee takes fewer than four parameters). I think lightening is currently missing that for the x64 case for Cygwin. To test the idea, I made a small modification (patch attached) that is *not* intended as a solution as it doesn't work for the general case, but it does allow the tests to pass on Cygwin 64. [0] https://docs.microsoft.com/en-us/cpp/build/x64-calling-convention?view=vs-2019 [1] https://cygwin.com/cygwin-ug-net/programming.html#gcc-64 -- Charles [-- Attachment #2: x86-fastcall-stack-reservation.patch --] [-- Type: text/x-patch, Size: 642 bytes --] diff --git a/lightening/x86.c b/lightening/x86.c index 965191a..91b3a94 100644 --- a/lightening/x86.c +++ b/lightening/x86.c @@ -338,11 +338,13 @@ next_abi_arg(struct abi_arg_iterator *iter, jit_operand_t *arg) if (is_gpr_arg(abi) && iter->gpr_idx < abi_gpr_arg_count) { *arg = jit_operand_gpr (abi, abi_gpr_args[iter->gpr_idx++]); #ifdef __CYGWIN__ + iter->stack_size += 8; iter->fpr_idx++; #endif } else if (is_fpr_arg(abi) && iter->fpr_idx < abi_fpr_arg_count) { *arg = jit_operand_fpr (abi, abi_fpr_args[iter->fpr_idx++]); #ifdef __CYGWIN__ + iter->stack_size += 8; iter->gpr_idx++; #endif } else { ^ permalink raw reply related [flat|nested] 27+ messages in thread
[parent not found: <CAPydmiN7eFD5r-v44hwdFM=1J24okQO8XjHqJ3bXQ2N1OkRVhA@mail.gmail.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAPydmiN7eFD5r-v44hwdFM=1J24okQO8XjHqJ3bXQ2N1OkRVhA@mail.gmail.com> @ 2020-02-16 23:23 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language 2020-02-16 23:23 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language [not found] ` <20200216232334.GA2448000@spikycactus.com> 2 siblings, 0 replies; 27+ messages in thread From: Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2020-02-16 23:23 UTC (permalink / raw) To: Charles Stanhope Cc: Andy Wingo, 39118, Ludovic Courtès, John Cowan, guile-devel On Fri, Feb 14, 2020 at 09:46:04AM -0800, Charles Stanhope wrote: > Andy, I don't know if you'd want to continue this here or on > lightening's gitlab page, but I looked into this a little bit a few > minutes here and there this past weeek. The x86 "fast-call" calling > convention used on Windows x64[0] and shared by Cygwin[1] requires > that the caller reserve 32 bytes of memory on the stack for the callee > to spill the register parameters (even if the callee takes fewer than > four parameters). I think lightening is currently missing that for the > x64 case for Cygwin. > > To test the idea, I made a small modification (patch attached) that is > *not* intended as a solution as it doesn't work for the general case, > but it does allow the tests to pass on Cygwin 64. I can confirm that Charles's patch, plus another one line patch to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run on my box. All tests pass except strptime in French, and the absence of crypt. This is a 64-bit build. -Mike Gran ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAPydmiN7eFD5r-v44hwdFM=1J24okQO8XjHqJ3bXQ2N1OkRVhA@mail.gmail.com> 2020-02-16 23:23 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2020-02-16 23:23 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language [not found] ` <20200216232334.GA2448000@spikycactus.com> 2 siblings, 0 replies; 27+ messages in thread From: Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2020-02-16 23:23 UTC (permalink / raw) To: Charles Stanhope Cc: Andy Wingo, 39118, Ludovic Courtès, John Cowan, guile-devel On Fri, Feb 14, 2020 at 09:46:04AM -0800, Charles Stanhope wrote: > Andy, I don't know if you'd want to continue this here or on > lightening's gitlab page, but I looked into this a little bit a few > minutes here and there this past weeek. The x86 "fast-call" calling > convention used on Windows x64[0] and shared by Cygwin[1] requires > that the caller reserve 32 bytes of memory on the stack for the callee > to spill the register parameters (even if the callee takes fewer than > four parameters). I think lightening is currently missing that for the > x64 case for Cygwin. > > To test the idea, I made a small modification (patch attached) that is > *not* intended as a solution as it doesn't work for the general case, > but it does allow the tests to pass on Cygwin 64. I can confirm that Charles's patch, plus another one line patch to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run on my box. All tests pass except strptime in French, and the absence of crypt. This is a 64-bit build. -Mike Gran ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <20200216232334.GA2448000@spikycactus.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <20200216232334.GA2448000@spikycactus.com> @ 2020-02-16 23:24 ` John Cowan 2020-02-17 1:08 ` Charles Stanhope [not found] ` <CAPydmiNnZ7qBbUgNJ_aKhfDORSBcHn8PbQABikL=sbP357tD=Q@mail.gmail.com> 2 siblings, 0 replies; 27+ messages in thread From: John Cowan @ 2020-02-16 23:24 UTC (permalink / raw) To: Mike Gran; +Cc: 39118, Ludovic Courtès, guile-devel, Charles Stanhope [-- Attachment #1: Type: text/plain, Size: 1244 bytes --] Excellent, and thank you all! I've been WIndowsless for a few weeks, but that should change again soon. On Sun, Feb 16, 2020 at 6:23 PM Mike Gran <spk121@yahoo.com> wrote: > On Fri, Feb 14, 2020 at 09:46:04AM -0800, Charles Stanhope wrote: > > Andy, I don't know if you'd want to continue this here or on > > lightening's gitlab page, but I looked into this a little bit a few > > minutes here and there this past weeek. The x86 "fast-call" calling > > convention used on Windows x64[0] and shared by Cygwin[1] requires > > that the caller reserve 32 bytes of memory on the stack for the callee > > to spill the register parameters (even if the callee takes fewer than > > four parameters). I think lightening is currently missing that for the > > x64 case for Cygwin. > > > > To test the idea, I made a small modification (patch attached) that is > > *not* intended as a solution as it doesn't work for the general case, > > but it does allow the tests to pass on Cygwin 64. > > I can confirm that Charles's patch, plus another one line patch > to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run > on my box. All tests pass except strptime in French, and the absence > of crypt. This is a 64-bit build. > > -Mike Gran > [-- Attachment #2: Type: text/html, Size: 1654 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <20200216232334.GA2448000@spikycactus.com> 2020-02-16 23:24 ` John Cowan @ 2020-02-17 1:08 ` Charles Stanhope [not found] ` <CAPydmiNnZ7qBbUgNJ_aKhfDORSBcHn8PbQABikL=sbP357tD=Q@mail.gmail.com> 2 siblings, 0 replies; 27+ messages in thread From: Charles Stanhope @ 2020-02-17 1:08 UTC (permalink / raw) To: Mike Gran; +Cc: 39118, Ludovic Courtès, guile-devel On 2/16/20, Mike Gran <spk121@yahoo.com> wrote: > On Fri, Feb 14, 2020 at 09:46:04AM -0800, Charles Stanhope wrote: >> Andy, I don't know if you'd want to continue this here or on >> lightening's gitlab page, but I looked into this a little bit a few >> minutes here and there this past weeek. The x86 "fast-call" calling >> convention used on Windows x64[0] and shared by Cygwin[1] requires >> that the caller reserve 32 bytes of memory on the stack for the callee >> to spill the register parameters (even if the callee takes fewer than >> four parameters). I think lightening is currently missing that for the >> x64 case for Cygwin. >> >> To test the idea, I made a small modification (patch attached) that is >> *not* intended as a solution as it doesn't work for the general case, >> but it does allow the tests to pass on Cygwin 64. > > I can confirm that Charles's patch, plus another one line patch > to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run > on my box. All tests pass except strptime in French, and the absence > of crypt. This is a 64-bit build. Mike, thanks for going further with the Guile build. The CPU_SETSIZE issue was what was hanging me up from compiling before Andy's comment got me to look at lightening. I assumed I had some configuration, package, or compiler issue. Good to know there's a simple fix. Just a further warning to anyone watching, that patch I posted is a real hack job just to test my theory of the cause of the segfault. I would expect it to fail when you have fewer than four arguments in a JITed function call. I wouldn't try doing much else with that Guile build besides run the tests. :) -- Charles ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <CAPydmiNnZ7qBbUgNJ_aKhfDORSBcHn8PbQABikL=sbP357tD=Q@mail.gmail.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAPydmiNnZ7qBbUgNJ_aKhfDORSBcHn8PbQABikL=sbP357tD=Q@mail.gmail.com> @ 2020-02-17 19:27 ` Charles Stanhope [not found] ` <CAPydmiP44TawQf4SWLp1j4OsN-3e_VdDDx4i_R1w83hYQVGhyw@mail.gmail.com> 1 sibling, 0 replies; 27+ messages in thread From: Charles Stanhope @ 2020-02-17 19:27 UTC (permalink / raw) To: Mike Gran; +Cc: 39118, Ludovic Courtès, guile-devel [-- Attachment #1: Type: text/plain, Size: 1622 bytes --] On 2/16/20, Charles Stanhope <charles@stanho.pe> wrote: > On 2/16/20, Mike Gran <spk121@yahoo.com> wrote: >> >> I can confirm that Charles's patch, plus another one line patch >> to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run >> on my box. All tests pass except strptime in French, and the absence >> of crypt. This is a 64-bit build. > > Mike, thanks for going further with the Guile build. The CPU_SETSIZE > issue was what was hanging me up from compiling before Andy's comment > got me to look at lightening. I assumed I had some configuration, > package, or compiler issue. Good to know there's a simple fix. > > Just a further warning to anyone watching, that patch I posted is a > real hack job just to test my theory of the cause of the segfault. I > would expect it to fail when you have fewer than four arguments in a > JITed function call. I wouldn't try doing much else with that Guile > build besides run the tests. :) I had a little bit more time to look into the lightening implementation last night. I've attached a patch that is less horrible and more correct than my previous one. It reserves the stack space regardless of the number of parameters and appears to work. But I'm new to the lightening code base, so I'm not convinced it is the correct solution. It's just the solution I was left with after my time ran out. I wanted to post this patch as a replacement to the prior one in case people did want to do more testing with Guile 3.0 on Cygwin x64. With that, I will let more experienced people come up with the appropriate solution. Happy hacking, everybody! -- Charles [-- Attachment #2: x86-fastcall-stack-reservation-2.patch --] [-- Type: text/x-patch, Size: 443 bytes --] diff --git a/lightening/x86.c b/lightening/x86.c index 965191a..bdd26e1 100644 --- a/lightening/x86.c +++ b/lightening/x86.c @@ -328,6 +328,10 @@ reset_abi_arg_iterator(struct abi_arg_iterator *iter, size_t argc, memset(iter, 0, sizeof *iter); iter->argc = argc; iter->args = args; +#if __CYGWIN__ && __X64 + // Reserve slots on the stack for 4 register parameters (8 bytes each). + iter->stack_size = 32; +#endif } static void ^ permalink raw reply related [flat|nested] 27+ messages in thread
[parent not found: <CAPydmiP44TawQf4SWLp1j4OsN-3e_VdDDx4i_R1w83hYQVGhyw@mail.gmail.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAPydmiP44TawQf4SWLp1j4OsN-3e_VdDDx4i_R1w83hYQVGhyw@mail.gmail.com> @ 2020-02-17 21:05 ` Andy Wingo 0 siblings, 0 replies; 27+ messages in thread From: Andy Wingo @ 2020-02-17 21:05 UTC (permalink / raw) To: Charles Stanhope; +Cc: Mike Gran, Ludovic Courtès, guile-devel, 39118-done Aah, you all are amazing -- thank you!! Applied and merged. Cheers, Andy On Mon 17 Feb 2020 20:27, Charles Stanhope <charles@stanho.pe> writes: > On 2/16/20, Charles Stanhope <charles@stanho.pe> wrote: >> On 2/16/20, Mike Gran <spk121@yahoo.com> wrote: >>> >>> I can confirm that Charles's patch, plus another one line patch >>> to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run >>> on my box. All tests pass except strptime in French, and the absence >>> of crypt. This is a 64-bit build. >> >> Mike, thanks for going further with the Guile build. The CPU_SETSIZE >> issue was what was hanging me up from compiling before Andy's comment >> got me to look at lightening. I assumed I had some configuration, >> package, or compiler issue. Good to know there's a simple fix. >> >> Just a further warning to anyone watching, that patch I posted is a >> real hack job just to test my theory of the cause of the segfault. I >> would expect it to fail when you have fewer than four arguments in a >> JITed function call. I wouldn't try doing much else with that Guile >> build besides run the tests. :) > > I had a little bit more time to look into the lightening > implementation last night. I've attached a patch that is less horrible > and more correct than my previous one. It reserves the stack space > regardless of the number of parameters and appears to work. But I'm > new to the lightening code base, so I'm not convinced it is the > correct solution. It's just the solution I was left with after my time > ran out. I wanted to post this patch as a replacement to the prior one > in case people did want to do more testing with Guile 3.0 on Cygwin > x64. > > With that, I will let more experienced people come up with the > appropriate solution. Happy hacking, everybody! > > -- > Charles > > diff --git a/lightening/x86.c b/lightening/x86.c > index 965191a..bdd26e1 100644 > --- a/lightening/x86.c > +++ b/lightening/x86.c > @@ -328,6 +328,10 @@ reset_abi_arg_iterator(struct abi_arg_iterator *iter, size_t argc, > memset(iter, 0, sizeof *iter); > iter->argc = argc; > iter->args = args; > +#if __CYGWIN__ && __X64 > + // Reserve slots on the stack for 4 register parameters (8 bytes each). > + iter->stack_size = 32; > +#endif > } > > static void ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAD2gp_ReS1DCZmsakcNK-FegZB_fhzOknDf_d0QdyDJVJS6X_A@mail.gmail.com> 2020-01-20 17:22 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2020-01-21 9:01 ` Ludovic Courtès [not found] ` <87sgk9faih.fsf@gnu.org> 2 siblings, 0 replies; 27+ messages in thread From: Ludovic Courtès @ 2020-01-21 9:01 UTC (permalink / raw) To: John Cowan; +Cc: 39118, guile-devel Hello, John Cowan <cowan@ccil.org> skribis: > Yes, gladly, but I don't know how to get one in this context. You would unpack, configure, and build like you did before (with JIT enabled, so as to reproduce the crash), but before that you’d run “ulimit -c unlimited” in that shell to make sure there’s a core dumped when it crashes. Once it has crashed, locate the ‘core’ file (or ‘core.*’), and run, say: gdb libguile/.libs/guile bootstrap/core Then from the GDB prompt: thread apply all bt TIA, Ludo’. ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <87sgk9faih.fsf@gnu.org>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <87sgk9faih.fsf@gnu.org> @ 2020-01-21 18:40 ` szgyg 2020-01-21 21:37 ` John Cowan ` (2 subsequent siblings) 3 siblings, 0 replies; 27+ messages in thread From: szgyg @ 2020-01-21 18:40 UTC (permalink / raw) To: 39118, guile-devel On Tue, Jan 21, 2020 at 10:01:58AM +0100, Ludovic Courtès wrote: > but before that you’d run > “ulimit -c unlimited” in that shell to make sure there’s a core dumped > when it crashes. This won't work on cygwin. If you want a core dump, you should use the dumper tool, as described here https://cygwin.com/cygwin-ug-net/dumper.html Or you can set error_start to gdb to get an interactive gdb session on error. s ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <87sgk9faih.fsf@gnu.org> 2020-01-21 18:40 ` szgyg @ 2020-01-21 21:37 ` John Cowan [not found] ` <20200121184011.GA1659@dtk> [not found] ` <CAD2gp_Ts8VfLUaQ+kC=g+f_5mv0jzLZpN_-U9dvi6Y4jy0-cLw@mail.gmail.com> 3 siblings, 0 replies; 27+ messages in thread From: John Cowan @ 2020-01-21 21:37 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 39118, guile-devel [-- Attachment #1: Type: text/plain, Size: 1012 bytes --] Thanks. Unfortunately, the standard recipe for making core dumps on Mac (put "limit core unlimited" into /etc/launchd.conf and reboot, make sure /cores is writable, set ulimit -c unlimited) seem to actually enable them on MacOS Catalina (10.15.2). I have tested with SIGQUIT and SIGSEGV on running processes and no dumps appear in /cores. On Tue, Jan 21, 2020 at 4:02 AM Ludovic Courtès <ludo@gnu.org> wrote: > Hello, > > John Cowan <cowan@ccil.org> skribis: > > > Yes, gladly, but I don't know how to get one in this context. > > You would unpack, configure, and build like you did before (with JIT > enabled, so as to reproduce the crash), but before that you’d run > “ulimit -c unlimited” in that shell to make sure there’s a core dumped > when it crashes. > > Once it has crashed, locate the ‘core’ file (or ‘core.*’), and run, say: > > gdb libguile/.libs/guile bootstrap/core > > Then from the GDB prompt: > > thread apply all bt > > TIA, > Ludo’. > [-- Attachment #2: Type: text/html, Size: 1407 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <20200121184011.GA1659@dtk>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <20200121184011.GA1659@dtk> @ 2020-01-21 21:53 ` John Cowan 0 siblings, 0 replies; 27+ messages in thread From: John Cowan @ 2020-01-21 21:53 UTC (permalink / raw) To: szgyg; +Cc: 39118, guile-devel [-- Attachment #1: Type: text/plain, Size: 746 bytes --] I'm no longer talking about Cygwin (which builds fine without JIT). I'm now talking about MacOS Catalina, which needs a core dump to debug, but on which nobody seems to know how to enable core dumps. On Tue, Jan 21, 2020 at 1:41 PM szgyg <szgyg@ludens.elte.hu> wrote: > On Tue, Jan 21, 2020 at 10:01:58AM +0100, Ludovic Courtès wrote: > > but before that you’d run > > “ulimit -c unlimited” in that shell to make sure there’s a core dumped > > when it crashes. > > This won't work on cygwin. If you want a core dump, you should use the > dumper tool, as described here > https://cygwin.com/cygwin-ug-net/dumper.html > Or you can set error_start to gdb to get an interactive gdb session on > error. > > s > > > > [-- Attachment #2: Type: text/html, Size: 1161 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <CAD2gp_Ts8VfLUaQ+kC=g+f_5mv0jzLZpN_-U9dvi6Y4jy0-cLw@mail.gmail.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAD2gp_Ts8VfLUaQ+kC=g+f_5mv0jzLZpN_-U9dvi6Y4jy0-cLw@mail.gmail.com> @ 2020-01-23 20:35 ` Ludovic Courtès [not found] ` <871rrpoqql.fsf@gnu.org> 1 sibling, 0 replies; 27+ messages in thread From: Ludovic Courtès @ 2020-01-23 20:35 UTC (permalink / raw) To: John Cowan; +Cc: 39118, guile-devel Hi, John Cowan <cowan@ccil.org> skribis: > Thanks. Unfortunately, the standard recipe for making core dumps on Mac This bug report is about Cygwin, not macOS, right? :-) Ludo’. ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <871rrpoqql.fsf@gnu.org>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <871rrpoqql.fsf@gnu.org> @ 2020-01-24 14:36 ` John Cowan [not found] ` <CAD2gp_RkOYj6E6b9PjHerctAJN6NPYznQ4qi8NSXL0edKEM9dw@mail.gmail.com> 1 sibling, 0 replies; 27+ messages in thread From: John Cowan @ 2020-01-24 14:36 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 39118, guile-devel [-- Attachment #1: Type: text/plain, Size: 1697 bytes --] Both Cygwin and MacOS crash in pretty much the same way. By disabling the JIT, I was able to get the Cygwin build to run to completion. On MacOS with --disable-jit, however, I am now getting an entirely new failure: CC readline.lo readline.c:432:7: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^ readline.c:432:7: note: include the header <string.h> or explicitly provide a declaration for 'strncmp' readline.c:432:16: warning: implicit declaration of function 'rl_get_keymap_name' is invalid in C99 [-Wimplicit-function-declaration] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^ readline.c:432:16: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. CCLD guile-readline.la Undefined symbols for architecture x86_64: "_rl_get_keymap_name", referenced from: _scm_init_readline in readline.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) On Thu, Jan 23, 2020 at 3:35 PM Ludovic Courtès <ludo@gnu.org> wrote: > Hi, > > John Cowan <cowan@ccil.org> skribis: > > > Thanks. Unfortunately, the standard recipe for making core dumps on Mac > > This bug report is about Cygwin, not macOS, right? :-) > > Ludo’. > [-- Attachment #2: Type: text/html, Size: 2283 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <CAD2gp_RkOYj6E6b9PjHerctAJN6NPYznQ4qi8NSXL0edKEM9dw@mail.gmail.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAD2gp_RkOYj6E6b9PjHerctAJN6NPYznQ4qi8NSXL0edKEM9dw@mail.gmail.com> @ 2020-01-25 13:51 ` Ludovic Courtès [not found] ` <87wo9fbq60.fsf@gnu.org> 1 sibling, 0 replies; 27+ messages in thread From: Ludovic Courtès @ 2020-01-25 13:51 UTC (permalink / raw) To: John Cowan; +Cc: 39118, guile-devel John Cowan <cowan@ccil.org> skribis: > Both Cygwin and MacOS crash in pretty much the same way. By disabling the > JIT, I was able to get the Cygwin build to run to completion. That I understand. However, I was asking for the backtrace of the crash on Cygwin when JIT is enabled. Could you grab it? Thanks in advance, Ludo’. ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <87wo9fbq60.fsf@gnu.org>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <87wo9fbq60.fsf@gnu.org> @ 2020-01-25 15:54 ` John Cowan [not found] ` <CAD2gp_Q3Ua+kRW5OV1jXM1D-H7UhKQp-TSd0RQjue7U=1ua62Q@mail.gmail.com> 1 sibling, 0 replies; 27+ messages in thread From: John Cowan @ 2020-01-25 15:54 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 39118, guile-devel [-- Attachment #1: Type: text/plain, Size: 1316 bytes --] On Sat, Jan 25, 2020 at 8:51 AM Ludovic Courtès <ludo@gnu.org> wrote: > That I understand. However, I was asking for the backtrace of the crash > on Cygwin when JIT is enabled. Could you grab it? > 1. The wisdom of the Internet has not been able to figure out how to generate a core dump on MacOS 10.15.2 (Catalina). The usual set of enabling steps can be performed without error, but still no core dump. 2. Until today I believed that there was no way to generate a Cygwin core dump. I know now that there is, but I may not be able to test it until Monday. I'll let you know, and hopefully that will provide insight into the MacOS problem as well. 3. I will try to work further on the MacOS libffi problem (which surfaces when you do --disable-jit to bypass the above problem) to convince MacOS to use GNU libffi rather than the native one. It probably has to do with pkg-config, which I barely understand. "All problems are config problems." John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org We are lost, lost. No name, no business, no Precious, nothing. Only empty. Only hungry: yes, we are hungry. A few little fishes, nassty bony little fishes, for a poor creature, and they say death. So wise they are; so just, so very just. --Gollum [-- Attachment #2: Type: text/html, Size: 1879 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <CAD2gp_Q3Ua+kRW5OV1jXM1D-H7UhKQp-TSd0RQjue7U=1ua62Q@mail.gmail.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAD2gp_Q3Ua+kRW5OV1jXM1D-H7UhKQp-TSd0RQjue7U=1ua62Q@mail.gmail.com> @ 2020-01-31 14:23 ` John Cowan 2020-02-03 22:11 ` szgyg 0 siblings, 1 reply; 27+ messages in thread From: John Cowan @ 2020-01-31 14:23 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 39118, guile-devel [-- Attachment #1.1: Type: text/plain, Size: 2195 bytes --] Aaaand... Cygwin doesn't do core dumps. Under the skin it's WIndows, after all. This is what I get when I specify ulimit -c unlimited and rebuild: Exception: STATUS_ACCESS_VIOLATION at rip=0055A8B1B25 rax=0000000000000000 rbx=FFFFFFFFFFFFFF90 rcx=FFFFFFFFFFFFFF90 rdx=000000000034964A rsi=000007000084ECC0 rdi=FFFFFFFFFFFFFF90 r8 =000007000084ECC0 r9 =0000000000000002 r10=0000000100000000 r11=000000055A86B190 r12=0000000000000002 r13=000000055A931EA0 r14=000006FFFFFEF840 r15=0000000000000000 rbp=000000000034964A rsp=00000000FFFFBDA0 program=C:\Users\rr828893\Downloads\guile-3.0.0\libguile\.libs\guile.exe, pid 62833, thread main cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B I can't imagine what you can make of that. On Sat, Jan 25, 2020 at 10:54 AM John Cowan <cowan@ccil.org> wrote: > > > On Sat, Jan 25, 2020 at 8:51 AM Ludovic Courtès <ludo@gnu.org> wrote: > > >> That I understand. However, I was asking for the backtrace of the crash >> on Cygwin when JIT is enabled. Could you grab it? >> > > 1. The wisdom of the Internet has not been able to figure out how to > generate a core dump on MacOS 10.15.2 (Catalina). The usual set of > enabling steps can be performed without error, but still no core dump. > > 2. Until today I believed that there was no way to generate a Cygwin core > dump. I know now that there is, but I may not be able to test it until > Monday. I'll let you know, and hopefully that will provide insight into > the MacOS problem as well. > > 3. I will try to work further on the MacOS libffi problem (which surfaces > when you do --disable-jit to bypass the above problem) to convince MacOS to > use GNU libffi rather than the native one. It probably has to do with > pkg-config, which I barely understand. > > "All problems are config problems." > > > > John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org > We are lost, lost. No name, no business, no Precious, nothing. Only > empty. > Only hungry: yes, we are hungry. A few little fishes, nassty bony little > fishes, for a poor creature, and they say death. So wise they are; so > just, > so very just. --Gollum > [-- Attachment #1.2: Type: text/html, Size: 3104 bytes --] [-- Attachment #2: guile.exe.stackdump --] [-- Type: application/octet-stream, Size: 544 bytes --] Exception: STATUS_ACCESS_VIOLATION at rip=0055A8B1B25 rax=0000000000000000 rbx=FFFFFFFFFFFFFF90 rcx=FFFFFFFFFFFFFF90 rdx=000000000034964A rsi=000007000084ECC0 rdi=FFFFFFFFFFFFFF90 r8 =000007000084ECC0 r9 =0000000000000002 r10=0000000100000000 r11=000000055A86B190 r12=0000000000000002 r13=000000055A931EA0 r14=000006FFFFFEF840 r15=0000000000000000 rbp=000000000034964A rsp=00000000FFFFBDA0 program=C:\Users\rr828893\Downloads\guile-3.0.0\libguile\.libs\guile.exe, pid 62833, thread main cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: Segfault while building on 64-bit Cygwin 2020-01-31 14:23 ` John Cowan @ 2020-02-03 22:11 ` szgyg 2020-02-05 21:11 ` John Cowan [not found] ` <CAD2gp_Rcv81x4uKKTuokNbAWOkz-j77Hjet-oOzci1UFcgVDWg@mail.gmail.com> 0 siblings, 2 replies; 27+ messages in thread From: szgyg @ 2020-02-03 22:11 UTC (permalink / raw) To: John Cowan; +Cc: 39118, Ludovic Courtès, guile-devel On Fri, Jan 31, 2020 at 09:23:19AM -0500, John Cowan wrote: > Aaaand... Cygwin doesn't do core dumps. Under the skin it's WIndows, after > all. This is what I get when I specify ulimit -c unlimited and rebuild: > [...] Please see my previous mail on how to get a real core dump on cygwin https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39118#28 >> On Sat, Jan 25, 2020 at 8:51 AM Ludovic Courtès <ludo@gnu.org> wrote: >> >>> That I understand. However, I was asking for the backtrace of the crash >>> on Cygwin when JIT is enabled. Could you grab it? #v+ BOOTSTRAP GUILEC ice-9/eval.go BOOTSTRAP GUILEC ice-9/psyntax-pp.go BOOTSTRAP GUILEC language/cps/intmap.go BOOTSTRAP GUILEC language/cps/intset.go BOOTSTRAP GUILEC language/cps/graphs.go BOOTSTRAP GUILEC ice-9/vlist.go BOOTSTRAP GUILEC srfi/srfi-1.go Thread 1 received signal SIGSEGV, Segmentation fault. [Switching to Thread 7444.0x2640] 0x000000055a8b1b25 in scm_to_uint64 (val=val@entry=0xffffffffffffff90) at ../../guile-3.0.0/libguile/conv-uinteger.i.c:44 44 else if (SCM_BIGP (val)) (gdb) bt #0 0x000000055a8b1b25 in scm_to_uint64 (val=val@entry=0xffffffffffffff90) at ../../guile-3.0.0/libguile/conv-uinteger.i.c:44 #1 0x000000055a86b1ea in scm_bytevector_copy_x (source=0x700000948620, source_start=0x34964a, target=0x700000907600, target_start=0x2, len=0xffffffffffffff90) at ../../guile-3.0.0/libguile/bytevectors.c:604 #2 0x00006ffffe743866 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) BOOTSTRAP GUILEC language/tree-il.go (gdb) bt #0 0x000000055a8b1b25 in scm_to_uint64 (val=val@entry=0xffffffffffffff90) at ../../guile-3.0.0/libguile/conv-uinteger.i.c:44 #1 0x000000055a86b1ea in scm_bytevector_copy_x (source=0x70000055f160, source_start=0x34964a, target=0x700000808c90, target_start=0x2, len=0xffffffffffffff90) at ../../guile-3.0.0/libguile/bytevectors.c:604 #2 0x00006ffffe73f936 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) BOOTSTRAP GUILEC language/tree-il/analyze.go (gdb) bt #0 0x000000055a8b1b25 in scm_to_uint64 (val=val@entry=0xffffffffffffff90) at ../../guile-3.0.0/libguile/conv-uinteger.i.c:44 #1 0x000000055a86b1ea in scm_bytevector_copy_x (source=0x700000645160, source_start=0x34964a, target=0x7000008012d0, target_start=0x2, len=0xffffffffffffff90) at ../../guile-3.0.0/libguile/bytevectors.c:604 #2 0x00006ffffe753fc6 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) ^C #v- s ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: Segfault while building on 64-bit Cygwin 2020-02-03 22:11 ` szgyg @ 2020-02-05 21:11 ` John Cowan [not found] ` <CAD2gp_Rcv81x4uKKTuokNbAWOkz-j77Hjet-oOzci1UFcgVDWg@mail.gmail.com> 1 sibling, 0 replies; 27+ messages in thread From: John Cowan @ 2020-02-05 21:11 UTC (permalink / raw) To: szgyg; +Cc: 39118, Ludovic Courtès, guile-devel [-- Attachment #1: Type: text/plain, Size: 1414 bytes --] On Mon, Feb 3, 2020 at 5:11 PM szgyg <szgyg@ludens.elte.hu> wrote: On Fri, Jan 31, 2020 at 09:23:19AM -0500, John Cowan wrote: > > Aaaand... Cygwin doesn't do core dumps. Under the skin it's WIndows, > after > > all. This is what I get when I specify ulimit -c unlimited and rebuild: > > [...] > > Please see my previous mail on how to get a real core dump on cygwin > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39118#28 Okay, I looked at that page. However, Cygwin's dumper requires you to know the Windows PID of the process to dump. Clearly it is intended for a long-running process such as a server process, which you can force to core dump, as if by "/bin/kill -SIGSEGV pid"; it is not suitable for a process that gets a segmentation violation for internal reasons. In any case, when building, I have no idea of the pid of the process which is dumping; it starts up and then dumps immediately. John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org The Penguin shall hunt and devour all that is crufty, gnarly and bogacious; all code which wriggles like spaghetti, or is infested with blighting creatures, or is bound by grave and perilous Licences shall it capture. And in capturing shall it replicate, and in replicating shall it document, and in documentation shall it bring freedom, serenity and most cool froodiness to the earth and all who code therein. --Gospel of Tux [-- Attachment #2: Type: text/html, Size: 2122 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <CAD2gp_Rcv81x4uKKTuokNbAWOkz-j77Hjet-oOzci1UFcgVDWg@mail.gmail.com>]
* bug#39118: Segfault while building on 64-bit Cygwin [not found] ` <CAD2gp_Rcv81x4uKKTuokNbAWOkz-j77Hjet-oOzci1UFcgVDWg@mail.gmail.com> @ 2020-02-05 22:42 ` szgyg 0 siblings, 0 replies; 27+ messages in thread From: szgyg @ 2020-02-05 22:42 UTC (permalink / raw) To: John Cowan; +Cc: 39118, guile-devel On Wed, Feb 05, 2020 at 04:11:04PM -0500, John Cowan wrote: > On Mon, Feb 3, 2020 at 5:11 PM szgyg <szgyg@ludens.elte.hu> wrote: > > On Fri, Jan 31, 2020 at 09:23:19AM -0500, John Cowan wrote: > > > Aaaand... Cygwin doesn't do core dumps. Under the skin it's WIndows, > > after > > > all. This is what I get when I specify ulimit -c unlimited and rebuild: > > > [...] > > > > Please see my previous mail on how to get a real core dump on cygwin > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39118#28 > > > Okay, I looked at that page. However, Cygwin's dumper requires you to know > the Windows PID of the process to dump. Clearly it is intended for a > long-running process such as a server process, which you can force to core > dump, as if by "/bin/kill -SIGSEGV pid"; it is not suitable for a process > that gets a segmentation violation for internal reasons. In any case, when > building, I have no idea of the pid of the process which is dumping; it > starts up and then dumps immediately. | One common way to use dumper is to plug it into cygwin's Just-In-Time | debugging facility by adding | error_start=x:\path\to\dumper.exe | to the CYGWIN environment variable. Please note that x:\path\to\dumper.exe | is Windows-style and not cygwin path. If error_start is set this way, then | dumper will be started whenever some program encounters a fatal error. s ^ permalink raw reply [flat|nested] 27+ messages in thread
* bug#39118: Segfault while building on 64-bit Cygwin 2020-01-13 17:26 ` GNU Guile 2.9.9 Released [beta] John Cowan 2020-01-13 23:09 ` bug#39118: " John Cowan 2020-01-20 16:35 ` bug#39118: Segfault while building on 64-bit Cygwin Ludovic Courtès @ 2020-01-24 15:26 ` dsmich 2 siblings, 0 replies; 27+ messages in thread From: dsmich @ 2020-01-24 15:26 UTC (permalink / raw) To: 'John Cowan' Cc: '39118@debbugs.gnu.org', 'Ludovic Courtès', 'guile-devel@gnu.org' [-- Attachment #1: Type: text/plain, Size: 2052 bytes --] Pretty sure that the missing readline symbol is because the macos readline is being used/found instead of GNU readline. -Dale -----------------------------------------From: "John Cowan" To: "Ludovic Courtès" Cc: 39118@debbugs.gnu.org, guile-devel@gnu.org Sent: Friday January 24 2020 9:36:59AM Subject: bug#39118: Segfault while building on 64-bit Cygwin Both Cygwin and MacOS crash in pretty much the same way. By disabling the JIT, I was able to get the Cygwin build to run to completion. On MacOS with --disable-jit, however, I am now getting an entirely new failure: CC readline.lo readline.c:432:7: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^ readline.c:432:7: note: include the header or explicitly provide a declaration for 'strncmp' readline.c:432:16: warning: implicit declaration of function 'rl_get_keymap_name' is invalid in C99 [-Wimplicit-function-declaration] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^ readline.c:432:16: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. CCLD guile-readline.la [1] Undefined symbols for architecture x86_64: "_rl_get_keymap_name", referenced from: _scm_init_readline in readline.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) On Thu, Jan 23, 2020 at 3:35 PM Ludovic Courtès wrote: Hi, John Cowan skribis: > Thanks. Unfortunately, the standard recipe for making core dumps on Mac This bug report is about Cygwin, not macOS, right? :-) Ludo’. Links: ------ [1] http://guile-readline.la [2] mailto:ludo@gnu.org [3] mailto:cowan@ccil.org [-- Attachment #2: Type: text/html, Size: 2891 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2020-02-17 21:05 UTC | newest] Thread overview: 27+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <87zherlphs.fsf@pobox.com> 2020-01-13 17:26 ` GNU Guile 2.9.9 Released [beta] John Cowan 2020-01-13 23:09 ` bug#39118: " John Cowan 2020-01-20 16:35 ` bug#39118: Segfault while building on 64-bit Cygwin Ludovic Courtès 2020-01-20 16:38 ` John Cowan [not found] ` <CAD2gp_ReS1DCZmsakcNK-FegZB_fhzOknDf_d0QdyDJVJS6X_A@mail.gmail.com> 2020-01-20 17:22 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language 2020-02-06 10:53 ` Andy Wingo [not found] ` <87wo90kmw9.fsf@pobox.com> 2020-02-07 4:56 ` Charles Stanhope [not found] ` <CAPydmiP42upuz1S=aP+hZk+tD5EJm00b4Gox1+LzEoJXVmRO=w@mail.gmail.com> 2020-02-14 17:46 ` Charles Stanhope [not found] ` <CAPydmiN7eFD5r-v44hwdFM=1J24okQO8XjHqJ3bXQ2N1OkRVhA@mail.gmail.com> 2020-02-16 23:23 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language 2020-02-16 23:23 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language [not found] ` <20200216232334.GA2448000@spikycactus.com> 2020-02-16 23:24 ` John Cowan 2020-02-17 1:08 ` Charles Stanhope [not found] ` <CAPydmiNnZ7qBbUgNJ_aKhfDORSBcHn8PbQABikL=sbP357tD=Q@mail.gmail.com> 2020-02-17 19:27 ` Charles Stanhope [not found] ` <CAPydmiP44TawQf4SWLp1j4OsN-3e_VdDDx4i_R1w83hYQVGhyw@mail.gmail.com> 2020-02-17 21:05 ` Andy Wingo 2020-01-21 9:01 ` Ludovic Courtès [not found] ` <87sgk9faih.fsf@gnu.org> 2020-01-21 18:40 ` szgyg 2020-01-21 21:37 ` John Cowan [not found] ` <20200121184011.GA1659@dtk> 2020-01-21 21:53 ` John Cowan [not found] ` <CAD2gp_Ts8VfLUaQ+kC=g+f_5mv0jzLZpN_-U9dvi6Y4jy0-cLw@mail.gmail.com> 2020-01-23 20:35 ` Ludovic Courtès [not found] ` <871rrpoqql.fsf@gnu.org> 2020-01-24 14:36 ` John Cowan [not found] ` <CAD2gp_RkOYj6E6b9PjHerctAJN6NPYznQ4qi8NSXL0edKEM9dw@mail.gmail.com> 2020-01-25 13:51 ` Ludovic Courtès [not found] ` <87wo9fbq60.fsf@gnu.org> 2020-01-25 15:54 ` John Cowan [not found] ` <CAD2gp_Q3Ua+kRW5OV1jXM1D-H7UhKQp-TSd0RQjue7U=1ua62Q@mail.gmail.com> 2020-01-31 14:23 ` John Cowan 2020-02-03 22:11 ` szgyg 2020-02-05 21:11 ` John Cowan [not found] ` <CAD2gp_Rcv81x4uKKTuokNbAWOkz-j77Hjet-oOzci1UFcgVDWg@mail.gmail.com> 2020-02-05 22:42 ` szgyg 2020-01-24 15:26 ` dsmich
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).