[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 21:31:55 +0200 |
On 09.11.2016 20:09, Jaak Ristioja wrote:
> 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.
I'm attaching[*] the core and the binaries for 4.2.1, but I don't know how
to debug it myself.
FWIW, these are probably compiled using
CHOST="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard"
in my /etc/portage/make.conf file.
Best regards,
J
[*] Attachment can be decompressed with
xzcat rpi2-make-crash.tar.base64.xz | base64 -d | tar -xf -
This is to work around your spam system:
<address@hidden>: host eggs.gnu.org[208.118.235.92] said: 550 This message
contains malware (Heuristics.Broken.Executable) (in reply to end of DATA
command)
rpi2-make-crash.tar.base64.xz
Description: application/xz
- INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Jaak Ristioja, 2016/11/09
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Paul Smith, 2016/11/09
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Jaak Ristioja, 2016/11/09
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!,
Jaak Ristioja <=
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Paul Smith, 2016/11/09
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Jaak Ristioja, 2016/11/09
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Paul Smith, 2016/11/09
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Jaak Ristioja, 2016/11/10
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Jaak Ristioja, 2016/11/11
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Jaak Ristioja, 2016/11/12
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Paul Smith, 2016/11/12
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Paul Smith, 2016/11/12
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Tim Murphy, 2016/11/13
- Re: INTERNAL: Exiting with 2 jobserver tokens available; should be 5!, Jaak Ristioja, 2016/11/19