bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segafult while running make(1) from /lib/init/rc with -j


From: Alejandro Colomar (man-pages)
Subject: Re: Segafult while running make(1) from /lib/init/rc with -j
Date: Wed, 12 Jan 2022 21:44:07 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1

Hi Paul,

On 1/8/22 21:43, Paul Smith wrote:
On Sat, 2022-01-08 at 21:37 +0100, Alejandro Colomar (man-pages) wrote:
Hi Dmitry,
On 1/7/22 17:48, Dmitry Goncharov wrote:
On Thu, Jan 6, 2022 at 2:13 PM Alejandro Colomar (man-pages)
<alx.manpages@gmail.com> wrote:
    I could try to write a simpler Makefile
That would be good. We need to be able to reproduce the crash.

I couldn't reproduce it with a simple Makefile with a few includes
and a few sleeps.

Would you mind if I send you the script with which I generated the
Makefiles, and you run it in a virtual machine?

If it's not possible to reproduce the crash outside of your environment
then better would be for you to build GNU make with debugging enabled:

   make CFLAGS=-g

then run it so it crashes, then investigate the generated core file
with a debugger (gdb) and generate a stack trace to see where things
are crashing.

Fair enough. I first tried with normal make debugging info, to see if it helps. I'll continue investigating this, but some news for you, in case you may suspect of anything. The last lines I see in the terminal with `make -j2 -d ...` are:

... (many Reading makefile ... lines)
Reading makefile '/etc/rc.mk.d/x11-common.mk' (search path) (no ~ expansion)
Reaping losing child 0x55a30511f050 PID 174
make: *** [Makefile:31: 2] Segmentation fault
Removing child 0x55a30511f050 PID 174 from chain.


Line 31 in the Makefile (and its context) is:


30  2:
31      $(MAKE) 2kall
32      $(MAKE) 2k
33      $(MAKE) 2s
34      $(MAKE) 2sall


So it seems that it fails exactly after reading included makefiles, and before running the first task.


Thanks,

Alex



--
Alejandro Colomar
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]