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.apple.main-thread', stop reason =
> EXC_BAD_ACCESS (code=1, address=0x0)
>   * frame #0: 0x000000010001e00e
> make`parse_file_seq(stringp=<unavailable>, size=16, stopmap=1,
> prefix=0x0000000000000000, flags=25) at read.c:3535:11 [opt]

Can you show the value of the "prefix", "nlist", "i", and "nlist[i]"
variables when this crash happens?

(gdb) p prefix
(gdb) p nlist
(gdb) p i
(gdb) p nlist[i]

It seems there's a null pointer but I would like to know which pointer
is null.

I'm wondering if the crash is not in concat() at all, but rather in the
NEWELT macro

  • Segmentation faul... Satish Balay via Bug reports and discussion for GNU make
    • Re: Segmenta... Martin Dorey
      • Re: Segm... Satish Balay via Bug reports and discussion for GNU make
        • Re: ... Paul Smith
          • ... Satish Balay via Bug reports and discussion for GNU make
            • ... Paul Smith
              • ... Martin Dorey
                • ... Paul Smith
                • ... Satish Balay via Bug reports and discussion for GNU make
                • ... Satish Balay via Bug reports and discussion for GNU make
                • ... Paul Smith
                • ... Satish Balay via Bug reports and discussion for GNU make

Reply via email to