From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#20614: Segmentation fault when building on Power8 Little Endian Date: Wed, 07 Oct 2015 19:56:00 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <555C3E3C.4090700@redhat.com> <55A4BFB7.3010208@redhat.com> <55F95275.4040209@redhat.com> <56012AA6.7010702@redhat.com> <56025D9A.9080608@redhat.com> <838u7xlbsn.fsf@gnu.org> <56028633.3000303@redhat.com> <83zj0djskx.fsf@gnu.org> <56029707.9040100@redhat.com> <83wpvhjpdd.fsf@gnu.org> <5603D8BE.10300@redhat.com> <834mijkf36.fsf@gnu.org> <56043950.7040108@redhat.com> <83k2rdhaso.fsf@gnu.org> <560BBBF3.6000407@redhat.com> <83r3lf9gq4.fsf@gnu.org> <560D1EAA.3080608@redhat.com> <83bnciaidw.fsf@gnu.org> <560D3DC5.2050804@redhat.com> <837fn6a881.fsf@gnu.org> <560E420B.9070200@redhat.com> <83d1wx7j0e.fsf@gnu.org> <560E7F90.1070609@redhat.com> <83wpv55qog.fsf@gnu.org> <5612295F.4000607@redhat.com> <83twq5zpne.fsf@gnu.org> <56123FF0.3040104@redhat.com> <83oagdzmbj.fsf@gnu.org> <56125DBE.5090305@redhat.com> <83io6lzgpw.fsf@gnu.org> <5612842F.7050102@redhat.com> <83d1wtz29x.fsf@gnu.org> <5613894B.9070902@redhat.com> <5613B614.4090805@redhat.com> <83egh8xczn.fsf@gnu.org> <5614D522.9080900@redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1444215439 2183 80.91.229.3 (7 Oct 2015 10:57:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Oct 2015 10:57:19 +0000 (UTC) Cc: 20614@debbugs.gnu.org, jcapik@redhat.com To: Petr Hracek Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 07 12:57:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZjmPH-0002sD-R3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Oct 2015 12:57:12 +0200 Original-Received: from localhost ([::1]:56972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjmPH-0004RA-6H for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Oct 2015 06:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjmPB-0004MM-8S for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2015 06:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjmP8-0001Jp-3r for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2015 06:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjmP8-0001Jk-1Y for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2015 06:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZjmP7-0007lM-Ul for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2015 06:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Oct 2015 10:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20614 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20614-submit@debbugs.gnu.org id=B20614.144421536729778 (code B ref 20614); Wed, 07 Oct 2015 10:57:01 +0000 Original-Received: (at 20614) by debbugs.gnu.org; 7 Oct 2015 10:56:07 +0000 Original-Received: from localhost ([127.0.0.1]:57811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjmOE-0007kE-Ro for submit@debbugs.gnu.org; Wed, 07 Oct 2015 06:56:07 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:61788) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjmOC-0007jt-3V for 20614@debbugs.gnu.org; Wed, 07 Oct 2015 06:56:05 -0400 Original-Received: from fermat1.math.s.chiba-u.ac.jp (fermat [192.168.32.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id D10F9C0561; Wed, 7 Oct 2015 19:56:00 +0900 (JST) In-Reply-To: <5614D522.9080900@redhat.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107403 Archived-At: What happens if you apply the following patch? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp diff --git a/src/unexelf.c b/src/unexelf.c index 59e2725..0d67b99 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -730,7 +730,14 @@ unexec (const char *new_name, const char *old_name) old_plt_index = find_section (".plt", old_section_names, old_name, old_file_h, old_section_h, 1); if (old_plt_index != -1) - if (OLD_SECTION_H (old_plt_index).sh_type != SHT_NOBITS) + if (OLD_SECTION_H (old_plt_index).sh_type != SHT_NOBITS + || ((OLD_SECTION_H (old_plt_index).sh_addr + + OLD_SECTION_H (old_plt_index).sh_size + != OLD_SECTION_H (old_bss_index).sh_addr) + && (old_sbss_index == -1 + || (OLD_SECTION_H (old_plt_index).sh_addr + + OLD_SECTION_H (old_plt_index).sh_size + != OLD_SECTION_H (old_sbss_index).sh_addr)))) old_plt_index = -1; if (old_sbss_index == -1 && old_plt_index == -1)