Open Bug 1706264 Opened 4 years ago Updated 2 years ago

Elfhack fails with "Segments inconsistency" on libxul.so

Categories

(SeaMonkey :: Release Engineering, defect)

SeaMonkey 2.53 Branch
x86
Linux
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: psychonaut, Unassigned)

Details

I am trying to build SeaMonkey 2.53.7.1 for ix86 with GCC 10 on openSUSE Tumbleweed. Without --disable-elf-hack, compilation fails as follows:

[ 1647s] ../../../dist/seamonkey/libxul.so: terminate called after throwing an instance of 'std::runtime_error'
[ 1647s] what(): Segments inconsistency
[ 1647s] Traceback (most recent call last):
[ 1647s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.7.1/mozilla/toolkit/mozapps/installer/packager.py", line 333, in <module>
[ 1647s] main()
[ 1647s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.7.1/mozilla/toolkit/mozapps/installer/packager.py", line 327, in main
[ 1647s] copier.copy(args.destination)
[ 1647s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.7.1/mozilla/python/mozbuild/mozpack/copier.py", line 431, in copy
[ 1647s] copy_results.append((destfile, f.copy(destfile, skip_if_older)))
[ 1647s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.7.1/mozilla/python/mozbuild/mozpack/files.py", line 296, in copy
[ 1647s] elfhack(dest)
[ 1647s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.7.1/mozilla/python/mozbuild/mozpack/executables.py", line 124, in elfhack
[ 1647s] errors.fatal('Error executing ' + ' '.join(cmd))
[ 1647s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.7.1/mozilla/python/mozbuild/mozpack/errors.py", line 103, in fatal
[ 1647s] self._handle(self.FATAL, msg)
[ 1647s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.7.1/mozilla/python/mozbuild/mozpack/errors.py", line 98, in _handle
[ 1647s] raise ErrorMessage(msg)
[ 1647s] mozpack.errors.ErrorMessage: Error: Error executing /home/abuild/rpmbuild/BUILD/seamonkey-2.53.7.1/mozilla/obj-i686-pc-linux-gnu/build/unix/elfhack/elfhack ../../../dist/seamonkey/libxul.so
[ 1647s] make[2]: *** [/home/abuild/rpmbuild/BUILD/seamonkey-2.53.7.1/mozilla/toolkit/mozapps/installer/packager.mk:19: stage-package] Error 1

Building for x86_64 doesn't have this problem.

Is this still a problem? elfhack has been updated to current level recently.

Flags: needinfo?(psychonaut)

It's still a problem when building SeaMonkey 2.53.10.2 for i586 with GCC 11 on openSUSE Tumbleweed:

[ 1408s] ../../../dist/seamonkey/libxul.so: terminate called after throwing an instance of 'std::runtime_error'
[ 1408s] what(): Segments inconsistency
[ 1408s] Traceback (most recent call last):
[ 1408s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.10.2/mozilla/toolkit/mozapps/installer/packager.py", line 342, in <module>
[ 1408s] main()
[ 1408s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.10.2/mozilla/toolkit/mozapps/installer/packager.py", line 336, in main
[ 1408s] copier.copy(args.destination)
[ 1408s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.10.2/mozilla/python/mozbuild/mozpack/copier.py", line 431, in copy
[ 1408s] copy_results.append((destfile, f.copy(destfile, skip_if_older)))
[ 1408s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.10.2/mozilla/python/mozbuild/mozpack/files.py", line 296, in copy
[ 1408s] elfhack(dest)
[ 1408s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.10.2/mozilla/python/mozbuild/mozpack/executables.py", line 124, in elfhack
[ 1408s] errors.fatal('Error executing ' + ' '.join(cmd))
[ 1408s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.10.2/mozilla/python/mozbuild/mozpack/errors.py", line 103, in fatal
[ 1408s] self._handle(self.FATAL, msg)
[ 1408s] File "/home/abuild/rpmbuild/BUILD/seamonkey-2.53.10.2/mozilla/python/mozbuild/mozpack/errors.py", line 98, in _handle
[ 1408s] raise ErrorMessage(msg)
[ 1408s] mozpack.errors.ErrorMessage: Error: Error executing /home/abuild/rpmbuild/BUILD/seamonkey-2.53.10.2/mozilla/obj-i686-pc-linux-gnu/build/unix/elfhack/elfhack ../../../dist/seamonkey/libxul.so
[ 1408s] make[2]: *** [/home/abuild/rpmbuild/BUILD/seamonkey-2.53.10.2/mozilla/toolkit/mozapps/installer/packager.mk:19: stage-package] Error 1

Flags: needinfo?(psychonaut)

Just checked and can't find anything what is not already in. 2.53.11 will have the latest elfhack fixes but doubt they will fix this one.

There is https://github.com/openSUSE/firefox-maintenance/issues/28
Not sure if related. A bit of a barebone issue.

Well, I'll test again once 2.53.11 is out, then. If there's anything else I can try in the meantime, feel free to let me know.

Seamonkey 2.53.12 entered stabilization on Gentoo Linux and I added x86 as a target arch. The x86 architecture tester hit this bug: https://bugs.gentoo.org/851933

So, it isn't fixed.

You need to log in before you can comment on or make changes to this bug.