Your message dated Sat, 15 Oct 2016 04:20:32 +0000
with message-id <>
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

Debian Bug Tracking System
Contact with problems
--- Begin Message ---
Package: src:cmake
Version: 3.0.2-1


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
>= 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.


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

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

Debian distribution maintenance software
Lisandro Damián Nicanor Pérez Meyer <> (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

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 <>
Changed-By: Lisandro Damián Nicanor Pérez Meyer <>
 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
 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.
 49b66cfd7e77c09708a4f0e8d124a9e57d14606d 2459 cmake_3.6.2-2.dsc
 41000e3d5e9e0f32e20767c9f087a9f240f40f1b 32640 cmake_3.6.2-2.debian.tar.xz
 9f5220fa3c1aa59a957aa141cf2910ca3f504e8c810ddf1e93a029707150cf4b 2459 
 daeb05d238753c702dfc3ad1fc6176999fe5cdd04f3493fb5f5b7978a87fa03b 32640 
 88f593b98c0fb38a69550202371a1202 2459 devel optional cmake_3.6.2-2.dsc
 25e954900b28cf3a535f6c14eb9efa31 32640 devel optional 



--- End Message ---

Reply via email to