Your message dated Sat, 15 Oct 2016 04:20:32 +0000
with message-id <e1bvgsw-0003ew...@franck.debian.org>
and subject line Bug#820334: fixed in cmake 3.6.2-2
has caused the Debian Bug report #820334,
regarding Segfaults caused by new DT_MIPS_RLD_MAP_REL tag and RPATH removers
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
820334: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820334
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:cmake
Version: 3.0.2-1

Hi,

I've managed to find the cause of the openmpi segfault (#818909). It
might affect a number of different packages.

The segfault is caused by the interaction of the
new DT_MIPS_RLD_MAP_REL dynamic tag (from binutils 2.26) and chrpath.
Unlike all other tags, this tag is relative to the offset of the tag
within the executable. chrpath is used to remove rpaths from ELF files.
It does this by moving all of the other dynamic tags up one entry, but
since the DT_MIPS_RLD_MAP_REL is not updated, it now points to an
incorrect offset. The dynamic linker will then overwrite some other
memory when processing the DT_MIPS_RLD_MAP_REL tag.

The openmpi segfault was caused by a global variable being initialized
incorrectly (overwritten by the dynamic linker). I expect other
executables using chrpath will also be affected - possibly in strange
ways (not nessesarily a segfault).

It also seems that at least cmake uses the same technique for removing
the RPATH so any cmake reverse dependencies could be affected. The
DT_MIPS_RLD_MAP_REL is only created for executables which limits the
effect of this slightly. Only packages built using binutils
>= 2.25.51.20151014-1 will be affected.

There is a convinient way to test if a package is broken using the
presence of the old DT_MIPS_RLD_MAP tag. When correct
(DT_MIPS_RLD_MAP_REL + tag offset + executable base address) equals
DT_MIPS_RLD_MAP, so someone could analyze the archive to find which
packages are affected (any if any tools other than chrpath and cmake
are broken).

Based only on chrpath and cmake reverse dependencies, there is an upper
bound of about 1500 binNMUs (after the tools after fixed). Hopefully
that can be reduced!

I really don't have any time to fix all this. Please can someone else
have a look!

OpenMPI maintainers (and anyone else affected):
One possible workaround is to use chrpath -r "" <file> on mips*
architectures until this is fixed since that command does not cause any
tags to be moved. It has a tiny performance penalty but should
otherwise work properly.

James

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: cmake
Source-Version: 3.6.2-2

We believe that the bug you reported is fixed in the latest version of
cmake, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 820...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lisandro Damián Nicanor Pérez Meyer <lisan...@debian.org> (supplier of updated 
cmake package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 14 Oct 2016 22:29:17 -0300
Source: cmake
Binary: cmake cmake-data cmake-curses-gui cmake-qt-gui cmake-doc
Architecture: source
Version: 3.6.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian CMake Team <pkg-cmake-t...@lists.alioth.debian.org>
Changed-By: Lisandro Damián Nicanor Pérez Meyer <lisan...@debian.org>
Description:
 cmake      - cross-platform, open-source make system
 cmake-curses-gui - curses based user interface for CMake (ccmake)
 cmake-data - CMake data files (modules, templates and documentation)
 cmake-doc  - extended documentation in various formats for CMake
 cmake-qt-gui - Qt4 based user interface for CMake (cmake-gui)
Closes: 820334
Changes:
 cmake (3.6.2-2) unstable; urgency=medium
 .
   * Add mips-rld-map-rel.patch to solve segfaults caused by new
     DT_MIPS_RLD_MAP_REL tag and RPATH removers (Closes: #820334).
     Thanks James Cowgill for the patch.
   * Refresh patches.
Checksums-Sha1:
 49b66cfd7e77c09708a4f0e8d124a9e57d14606d 2459 cmake_3.6.2-2.dsc
 41000e3d5e9e0f32e20767c9f087a9f240f40f1b 32640 cmake_3.6.2-2.debian.tar.xz
Checksums-Sha256:
 9f5220fa3c1aa59a957aa141cf2910ca3f504e8c810ddf1e93a029707150cf4b 2459 
cmake_3.6.2-2.dsc
 daeb05d238753c702dfc3ad1fc6176999fe5cdd04f3493fb5f5b7978a87fa03b 32640 
cmake_3.6.2-2.debian.tar.xz
Files:
 88f593b98c0fb38a69550202371a1202 2459 devel optional cmake_3.6.2-2.dsc
 25e954900b28cf3a535f6c14eb9efa31 32640 devel optional 
cmake_3.6.2-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIxBAEBCAAbBQJYAY95FBxsaXNhbmRyb0BkZWJpYW4ub3JnAAoJEKtkX0BihqfQ
GPUP/3tt6LVgwVTg0ekgXav9nmJhKX6BiDhzQroUgBTFpOgNdhl8Ctb5O69Bu1eX
7lihTlKy8pIdhG3HhVEAUd5xvwHq2Aur8FaE9QJij9l9Amu50HhQPpOK/ofAiKYF
4TadRDDW2kTmSliPGwXHZHvuq5M7yKJKoICigs5TQu1ong5p4ut31NYI4HeH40rA
qXPw5+QOn/LMLwvZI9+2KGAdQlpOagXaIVOSYk6ZnuRrtQfXhb4bSnCSMJkXH3P0
iLYJI6bej2HvJCy1HUoeCRcnkXnuy60EmHMMM0iWcxTbUrhWnQE8aEk3QYbzOTGC
1jYL1I0+HBkRW3p3Y8C+N+Ca6i4tf7FGk4gq6xj6U10/0JeabIeZheR2esg/aG2B
ObwT2HEXU9bk0bP2PFt1q5XDUppk8ehARzCVUHjh/7fMsJsRVCyN/+PzTYkK7g/f
8d84+783mlMlwCpnUoms+Z3WSJZkUVkxbEiv2x+Q8ezv0G+OqM562Y6LVFB3u2io
9eyiNKQrYJQsJX6+sUEfLtX0yiTmq/e9V2fww0gNLsKaP60X6LH5RSnHkZrxNVzx
XFSxc9G8yKurZrx875Wz0Ig2oPeJ5gurTlhKG8+YrIdUVI9u+W47fjzkcXJ04rHS
ayJvzIBwyr3rWZCGlHXEngS1WF7LeijxYM2PEBuyNN28PJ2U
=4APu
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to