Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-08 Thread Paul Smith
On Tue, 2023-03-07 at 20:18 -0600, Satish Balay wrote: > Ok - try a build without guile: > > balay@ypro make-4.4.1 % ./configure --without-guile && make -j8 > > Now it works! : > > balay@ypro ~ % ./make-4.4.1/make > CONFIGDIR: /Users/balay/testdir/share/config > balay@ypro ~ % > > > So there

Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Satish Balay via Bug reports and discussion for GNU make
On Tue, 7 Mar 2023, Satish Balay wrote: > On Tue, 7 Mar 2023, Satish Balay wrote: > > > On Tue, 7 Mar 2023, Paul Smith wrote: > > > > > FYI I tested on a system I have access to: > > > > but it worked fine with the makefile provided (of course I don't know > > > what the directory structure is

Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Satish Balay via Bug reports and discussion for GNU make
in.dorey=hds....@gnu.org > on behalf of Paul Smith > > Sent: Tuesday, March 7, 2023 16:09 > To: Satish Balay > Cc: bug-make@gnu.org > Subject: Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard' > > * EXTERNAL EMAIL * > > On Tue,

Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Satish Balay via Bug reports and discussion for GNU make
On Tue, 7 Mar 2023, Paul Smith wrote: > On Wed, 2023-03-08 at 00:13 +, Martin Dorey wrote: > > ... and it's sliced off half the gl_pathv pointer through calling an > > implementation of glob that wasn't compatible with the declaration of > > the structure that Make is using? > > Well, since t

Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Paul Smith
On Wed, 2023-03-08 at 00:13 +, Martin Dorey wrote: > ... and it's sliced off half the gl_pathv pointer through calling an > implementation of glob that wasn't compatible with the declaration of > the structure that Make is using? Well, since this is a MacOS system we SHOULD be using our own im

Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Martin Dorey
uesday, March 7, 2023 16:09 To: Satish Balay Cc: bug-make@gnu.org Subject: Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard' * EXTERNAL EMAIL * On Tue, 2023-03-07 at 17:54 -0600, Satish Balay wrote: > (lldb) p nlist[i] > error: Couldn't appl

Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Paul Smith
On Tue, 2023-03-07 at 17:54 -0600, Satish Balay wrote: > (lldb) p nlist[i] > error: Couldn't apply expression side effects : Couldn't > dematerialize a result variable: couldn't read its memory Boy I really really dislike lldb as a tool. Does it work to install gdb with brew instead? Not sure if

Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Satish Balay via Bug reports and discussion for GNU make
[rebuilt make with CFLAGS=-g] Here is the gdb log Satish balay@ypro ~ % sudo lldb ./make-4.4.1/make (lldb) target create "./make-4.4.1/make" Current executable set to '/Users/balay/make-4.4.1/make' (x86_64). (lldb) r Process 54199 launched: '/Users/balay/make-4.4.1/make' (x86_64) Process 5

Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Paul Smith
On Tue, 2023-03-07 at 17:38 -0600, Satish Balay via Bug reports and discussion for GNU make wrote: > -> 3535   NEWELT (concat (2, prefix, nlist[i])); >    3536  >    3537   if (globme) >    3538 globfree (&gl); > Target 0: (make) stopped. > (lldb) bt > * thread #1, queue = 'com.

Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Satish Balay via Bug reports and discussion for GNU make
g-make/2022-09/msg00124.html > > Sadly that thread went nowhere. If someone could reproduce it and look at > all the local variables to form some opinion on whether the debugger is being > truthful and working out whether it's dereferenced null or some other invalid > pointer a

Re: Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Martin Dorey
March 7, 2023 06:56 To: bug-make@gnu.org Subject: Segmentation fault with make-4.3+ on MacOS with 'wildcard' * EXTERNAL EMAIL * This is likely a bug with this old version of macos/xcode. (sending in this email to report this issue) This test works fine with: - default MacO

Segmentation fault with make-4.3+ on MacOS with 'wildcard'

2023-03-07 Thread Satish Balay via Bug reports and discussion for GNU make
This is likely a bug with this old version of macos/xcode. (sending in this email to report this issue) This test works fine with: - default MacOS /usr/bin/make - brew make-4.4.1 - gnumake-4.2.1 compiled with xcode clang (version below) - gnumake-4.4.1 compiled with brew gcc (tried version 11) -