bug-make
[Top][All Lists]
Advanced

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

Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!


From: Jaak Ristioja
Subject: Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!
Date: Wed, 9 Nov 2016 20:09:51 +0200

On 09.11.2016 19:55, Paul Smith wrote:
> On Wed, 2016-11-09 at 19:29 +0200, Jaak Ristioja wrote:
>> GNU Make seems to randomly crash on an Raspberry Pi 2 with
>>
>>    INTERNAL: Exiting with 2 jobserver tokens available; should be 5!
>>
>> or similar when emerging Gentoo Linux packages using multiple jobs
>> (e.g. -j5). The kernel log then has lines like
>>
>>   Segmentation fault occurred at    (nil) in
>> /usr/bin/gmake[make:23312]
>> uid/euid:250/250 gid/egid:250/250, parent /bin/bash[sh:23311]
>> uid/euid:250/250 gid/egid:250/250
> 
> Internal errors don't dump core in GNU make.
> 
> I think what is happening is that GNU make is crashing, and that's
> causing it to lose jobserver tokens (if an instance of GNU make owns an
> extra token and crashes, then no one is available to release that token
> again and you'll get an error about mismatched numbers of tokens at the
> end of the build).
> 
> In other words, cause and effect here are backwards.  You'll need to
> figure out why GNU make is throwing a segfault (is there a core file
> you can examine for example): fixing that will likely solve the token
> count issue.
> 
>> Is this some known GNU Make bug on ARM?
> 
> I'm not aware of any such bug on ARM.
> 
> It would be helpful if you mentioned which version of GNU make you're
> using.

# make --version
GNU Make 4.2.1
Built for armv7a-hardfloat-linux-gnueabi

But this also happened with 4.1 and 4.2.

J



reply via email to

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