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: Sat, 8 Jan 2022 21:40:54 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1

On 1/8/22 21:37, 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?

I run it on a Devuan install with sysvinit.

The steps are:

$ sudo mkdir /etc/rc.mk.d/
$ sudo ./script_insserv.sh
$ sudo cp ./Makefile /etc/rc.mk.d/Makefile
$ sudo sed -i 's/startup stop$/echo foo/'
$ sudo sed -i 's,startup [^ ]$,make -C "/etc/rc.mk.d/" "$runlevel" -j 2'

I forgot the file name for the sed calls. Append '/lib/init/rc' to those lines. If you try on a different distro, use whatever patch the main rc script lives in, but you may need to edit it differently if it is different. I also forgot the last comma ',' in the sed s,,, command.

Regards,

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]