ASan build bustage due to libstdc++ problems (GLIBCXX_3.4.14/15 referenced)

RESOLVED FIXED in mozilla25

Status

defect
--
critical
RESOLVED FIXED
6 years ago
Last year

People

(Reporter: decoder, Assigned: decoder)

Tracking

(Blocks 1 bug, {sec-want})

unspecified
mozilla25
x86_64
Linux
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [asan][security-assurance-q3])

Attachments

(1 attachment)

Assignee

Description

6 years ago
ASan builds are currently broken (likely fallout from the recent Clang update):


Executing /builds/slave/m-cen-l64-dbg-asan-00000000000/build/obj-firefox/dist/bin/xpcshell -g /builds/slave/m-cen-l64-dbg-asan-00000000000/build/obj-firefox/dist/bin/ -a /builds/slave/m-cen-l64-dbg-asan-00000000000/build/obj-firefox/dist/bin/ -f /builds/slave/m-cen-l64-dbg-asan-00000000000/build/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
/builds/slave/m-cen-l64-dbg-asan-00000000000/build/obj-firefox/dist/bin/xpcshell: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /builds/slave/m-cen-l64-dbg-asan-00000000000/build/obj-firefox/dist/bin/libxul.so)
/builds/slave/m-cen-l64-dbg-asan-00000000000/build/obj-firefox/dist/bin/xpcshell: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /builds/slave/m-cen-l64-dbg-asan-00000000000/build/obj-firefox/dist/bin/libxul.so)
Traceback (most recent call last):
  File "/builds/slave/m-cen-l64-dbg-asan-00000000000/build/toolkit/mozapps/installer/packager.py", line 375, in <module>
    main()
  File "/builds/slave/m-cen-l64-dbg-asan-00000000000/build/toolkit/mozapps/installer/packager.py", line 367, in main
    args.source, gre_path, base)
  File "/builds/slave/m-cen-l64-dbg-asan-00000000000/build/toolkit/mozapps/installer/packager.py", line 148, in precompile_cache
    errors.fatal('Error while running startup cache precompilation')
  File "/builds/slave/m-cen-l64-dbg-asan-00000000000/build/python/mozbuild/mozpack/errors.py", line 101, in fatal
    self._handle(self.FATAL, msg)
  File "/builds/slave/m-cen-l64-dbg-asan-00000000000/build/python/mozbuild/mozpack/errors.py", line 96, in _handle
    raise ErrorMessage(msg)
mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation
make[3]: *** [stage-package] Error 1
make[2]: make[3]: Leaving directory `/builds/slave/m-cen-l64-dbg-asan-00000000000/build/obj-firefox/browser/installer'
make[2]: Leaving directory `/builds/slave/m-cen-l64-dbg-asan-00000000000/build/obj-firefox/browser/installer'
*** [make-package] Error 2
make[1]: *** [default] Error 2
make: *** [package] Error 2



Rafael Espindola pointed out that this is likely due to additional symbols required in build/unix/stdc++compat/stdc++compat.cpp. I'll try to figure out which ones are missing there and add them.
Assignee

Comment 2

6 years ago
Last comment isn't right, that local build was built without stdcxx-compat. With the new build, I'm not seeing any symbols in there depending on GLIBCXX_3.4.14 or 15. Will check further.
Assignee

Comment 3

6 years ago
Nice, bug 895248 removed --enable-stdcxx-compat from the ASan mozconfigs, but didn't add it anywhere else for those configs. I'll add it to mozconfig.asan to unbreak the builds for now.
Blocks: 895248
Assignee

Comment 4

6 years ago
Add --enable-stdcxx-compat back to mozconfig.asan to unbreak builds. r=bustage-fix.
Assignee: nobody → choller
Status: NEW → ASSIGNED
Attachment #781806 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/4a96449f38aa
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25

Updated

Last year
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.