Closed Bug 1233963 Opened 9 years ago Closed 9 years ago

elf.cpp:261: Elf::Elf(std::ifstream&): Assertion `segment->getFileSize() == phdr.p_filesz'

Categories

(Firefox Build System :: General, defect)

43 Branch
x86_64
Linux
defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: harri, Assigned: glandium)

References

Details

Attachments

(2 files)

Attached file build.43.0.1.log
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36 Steps to reproduce: trying to build 43.0.1 on Debian unstable I get a build error and the request to file a bug report. pbuilder log file is attached. Hope this helps.
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
% gcc --version gcc (Debian 5.3.1-3) 5.3.1 20151207 % ld --version GNU ld (GNU Binutils for Debian) 2.25.90.20151209
Lat lines from the log attachment: elfhack: /build/raw-firefox-43.0.1/mozilla-release/build/unix/elfhack/elf.cpp:261: Elf::Elf(std::ifstream&): Assertion `segment->getFileSize() == phdr.p_filesz' failed. Makefile:18: recipe for target 'test-array.so' failed make[6]: *** [test-array.so] Aborted make[6]: *** Waiting for unfinished jobs.... === # Fail if the library doesn't have INIT .dynamic info readelf -d test-ctors.so | grep '(INIT)' 0x000000000000000c (INIT) 0x4020 /build/raw-firefox-43.0.1/mozilla-release/obj/build/unix/elfhack/elfhack -b -f test-ctors.so elfhack: /build/raw-firefox-43.0.1/mozilla-release/build/unix/elfhack/elf.cpp:261: Elf::Elf(std::ifstream&): Assertion `segment->getFileSize() == phdr.p_filesz' failed. Makefile:18: recipe for target 'test-ctors.so' failed make[6]: *** [test-ctors.so] Aborted make[6]: Leaving directory '/build/raw-firefox-43.0.1/mozilla-release/obj/build/unix/elfhack' /build/raw-firefox-43.0.1/mozilla-release/config/recurse.mk:79: recipe for target 'build/unix/elfhack/libs' failed make[5]: *** [build/unix/elfhack/libs] Error 2 make[5]: Leaving directory '/build/raw-firefox-43.0.1/mozilla-release/obj' /build/raw-firefox-43.0.1/mozilla-release/config/recurse.mk:32: recipe for target 'libs' failed make[4]: *** [libs] Error 2 make[4]: Leaving directory '/build/raw-firefox-43.0.1/mozilla-release/obj' /build/raw-firefox-43.0.1/mozilla-release/config/rules.mk:549: recipe for target 'default' failed make[3]: *** [default] Error 2 make[3]: Leaving directory '/build/raw-firefox-43.0.1/mozilla-release/obj' /build/raw-firefox-43.0.1/mozilla-release/client.mk:396: recipe for target 'realbuild' failed make[2]: *** [realbuild] Error 2 make[2]: Leaving directory '/build/raw-firefox-43.0.1/mozilla-release' client.mk:171: recipe for target 'build' failed make[1]: *** [build] Error 2 make[1]: Leaving directory '/build/raw-firefox-43.0.1/mozilla-release' debian/rules:41: recipe for target 'build-stamp' failed make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 E: Failed autobuilding of package I: unmounting dev/pts filesystem I: unmounting run/shm filesystem I: unmounting proc filesystem I: cleaning the build env I: removing directory /home/pbuilder/build//28361 and its subdirectories
Component: Untriaged → Build Config
PS: Building on Jessie was fine (using the same build procedure).
Since you're not building with --enable-release or MOZILLA_OFFICIAL, you're getting the local developer options, which means you're using gold, not ld. There is likely something fishy going on with gold. Try --disable-gold.
(In reply to Mike Hommey [:glandium] from comment #4) > There is likely something fishy going on with gold. And yes, there is something fishy going on with gold. I will file a bug against binutils with a reduced test case.
Summary: elfhack bug report as requested → elf.cpp:261: Elf::Elf(std::ifstream&): Assertion `segment->getFileSize() == phdr.p_filesz'
Attachment #8709259 - Flags: review?(nfroyd) → review+
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
[bugday-20160323] Status: RESOLVED,FIXED -> UNVERIFIED Comments: STR: Not clear. Developer specific testing Component: Name Firefox Version 46.0b9 Build ID 20160322075646 Update Channel beta User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0 OS Windows 7 SP1 x86_64 Expected Results: Developer specific testing Actual Results: As expected
(In reply to Mayur Patil from comment #12) > [bugday-20160323] > > Status: RESOLVED,FIXED -> UNVERIFIED > > Comments: > STR: Not clear. > Developer specific testing > > Component: > Name Firefox > Version 46.0b9 > Build ID 20160322075646 > Update Channel beta > User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 > Firefox/46.0 > OS Windows 7 SP1 x86_64 > > Expected Results: > Developer specific testing > > Actual Results: > As expected I think you have the wrong bug - this one is for linux using the gnu gold linker, but you appear to be reporting against Windows 7. Also, changing the status to unverified when your results are "As expected" seems a strange thing to do.
Component: Build Config → General
Product: Firefox → Firefox Build System
Target Milestone: Firefox 46 → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: