Closed Bug 1146738 Opened 6 years ago Closed 5 years ago

Intermittent hazard build failure with "make[3]: *** [host_jskwgen] Error 1" after "host_jskwgen.o: file not recognized: File truncated"

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox38 --- fixed
firefox39 --- fixed
firefox40 --- fixed
firefox-esr31 --- unaffected
b2g-v2.2 --- fixed
b2g-master --- fixed

People

(Reporter: philor, Assigned: glandium)

References

Details

(Keywords: intermittent-failure)

Attachments

(2 files)

There was a little spate of these over the weekend, which I incorrectly remembered as being a known needs-clobber issue, so I just clobbered them away, but apparently only for a while.
See Also: → 1147187
I looked at this until I got in over my head in the build system. What I believe is happening is that host_jskwgen is getting compiled twice. If they collide, you can get

    make[3]: execvp: ./host_jskwgen: Text file busy

or

    make[3]: execvp: ./host_jskwgen: Permission denied

This is getting added to the build with

  HostSimplePrograms([
      'host_jskwgen',
  ])

I started trying to track it through HOST_SIMPLE_PROGRAMS and the seemingly unused HOST_PROGRAMS_EXECUTABLES, but I got scared and ran away.

Note that this is happening pretty frequently now, on developers' desktop builds as well as in automation. Here's a chunk of a local compile:

Unified_c_js_src_editline0.o
Decimal.o
Unified_cpp_mfbt0.o
host_jskwgen.o
host_jskwgen.o
host_jskwgen
host_jskwgen
make[3]: execvp: ./host_jskwgen: Text file busy

Notice the duplicate host_jskwgen.o and host_jskwgen lines. だめ
Flags: needinfo?(mh+mozilla)
Why do hazard builds logs not contain build command lines like other builds?
Flags: needinfo?(mh+mozilla)
Assignee: nobody → mh+mozilla
Attachment #8592002 - Flags: review?(mshal)
Attachment #8592002 - Flags: review?(mshal) → review+
https://hg.mozilla.org/mozilla-central/rev/734e468e8274
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Duplicate of this bug: 1147187
You need to log in before you can comment on or make changes to this bug.