unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Petr Hracek <phracek@redhat.com>
To: Eli Zaretskii <eliz@gnu.org>, 20614@debbugs.gnu.org
Subject: bug#20614: Segmentation fault when building on Power8 Little Endian
Date: Tue, 6 Oct 2015 13:52:52 +0200	[thread overview]
Message-ID: <5613B614.4090805@redhat.com> (raw)
In-Reply-To: <5613894B.9070902@redhat.com>

On 10/06/2015 10:41 AM, Petr Hracek wrote:
> On 10/05/2015 06:52 PM, Eli Zaretskii wrote:
>>> Cc: 20614@debbugs.gnu.org
>>> From: Petr Hracek <phracek@redhat.com>
>>> Date: Mon, 5 Oct 2015 16:07:43 +0200
>>>
>>> cd ../lisp; make -w compile-first
>>> EMACS=/home/phracek/rpmbuild/BUILD/emacs-24.3/src/bootstrap-emacs
>>> make[3]: Entering directory 
>>> `/home/phracek/rpmbuild/BUILD/emacs-24.3/lisp'
>>> Compiling
>>> /home/phracek/rpmbuild/BUILD/emacs-24.3/lisp/emacs-lisp/macroexp.el
>>> /bin/sh: /home/phracek/rpmbuild/BUILD/emacs-24.3/src/bootstrap-emacs:
>>> cannot execute binary file
>>> make[3]: ***
>>> [/home/phracek/rpmbuild/BUILD/emacs-24.3/lisp/emacs-lisp/macroexp.elc]
>>> Error 126
>>> make[3]: Leaving directory 
>>> `/home/phracek/rpmbuild/BUILD/emacs-24.3/lisp'
>>> make[2]: *** [bootstrap-emacs] Error 2
>>> make[2]: Leaving directory 
>>> `/home/phracek/rpmbuild/BUILD/emacs-24.3/src'
>>> make[1]: *** [src] Error 2
>>> make[1]: Leaving directory `/home/phracek/rpmbuild/BUILD/emacs-24.3'
>>>
>>> Some information about bootstrap-emacs binary:
>>> $ file /home/phracek/rpmbuild/BUILD/emacs-24.3/src/bootstrap-emacs
>>> /home/phracek/rpmbuild/BUILD/emacs-24.3/src/bootstrap-emacs: ELF 64-bit
>>> LSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV),
>>> corrupted program header size, stripped
>>> $
>>>
>>> If condition valid_pointer_p is set to >= 0 then it segfaults again.
>>> Where can be a problem now?
>> I don't know, sorry.  This requires help from someone who knows about
>> the structure of ELF executables.  I suggested to ask some of Binutils
>> maintainers to help.
>
> Reason of the failure is probably caused by if valid_pointer_p.
> [phracek@ibm-p8-generic-01-le02 emacs]$ readelf -a 
> /home/phracek/rpmbuild/BUILD/emacs-24.3/src/bootstrap-emacs
> ELF Header:
>   Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
>   Class:                             ELF64
>   Data:                              2's complement, little endian
>   Version:                           1 (current)
>   OS/ABI:                            UNIX - System V
>   ABI Version:                       0
>   Type:                              EXEC (Executable file)
>   Machine:                           PowerPC64
>   Version:                           0x1
>   Entry point address:               0x10016100
>   Start of program headers:          64 (bytes into file)
>   Start of section headers:          23502592 (bytes into file)
>   Flags:                             0x1669f00
>   Size of this header:               0 (bytes)
>   Size of program headers:           0 (bytes)
>   Number of program headers:         9
>   Size of section headers:           64 (bytes)
>   Number of section headers:         35
>   Section header string table index: 32
>
> Section Headers:
>   [Nr] Name              Type             Address           Offset
>        Size              EntSize          Flags  Link  Info  Align
>   [ 0] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 1] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 2] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 3] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 4] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 5] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 6] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 7] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 8] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 9] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [10] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [11] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [12] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [13] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [14] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [15] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [16] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [17] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [18] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [19] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [20] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [21] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [22] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [23] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [24] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [25] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [26] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [27] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [28] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [29] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [30] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [31] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [32] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [33] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
>   [34] <no-name>         NULL             0000000000000000 00000000
>        0000000000000000  0000000000000000           0     0     0
> Key to Flags:
>   W (write), A (alloc), X (execute), M (merge), S (strings)
>   I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
>   O (extra OS processing required) o (OS specific), p (processor 
> specific)
>
> There are no section groups in this file.
>
> There are no relocations in this file.
>
> The decoding of unwind sections for machine type PowerPC64 is not 
> currently supported.
>
> No version information found in this file.
>
>
I have a question
unexec part is called always?
Even when make bootstrap is not called?

What is bootstrap used for?

-- 
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek@redhat.com






  reply	other threads:[~2015-10-06 11:52 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20  7:56 bug#20614: Segmentation fault when building on Power8 Little Endian Petr Hracek
2015-05-20 14:45 ` Eli Zaretskii
2015-05-20 16:12 ` Glenn Morris
2015-05-21 12:55   ` Petr Hracek
2015-07-13 11:27     ` Petr Hracek
2015-07-13 13:16       ` Andreas Schwab
2015-07-14  7:52         ` Petr Hracek
2015-07-14  8:14           ` Andreas Schwab
2015-09-16 11:28           ` Petr Hracek
2015-09-22 10:17             ` Petr Hracek
2015-09-23  8:06               ` Petr Hracek
2015-09-23  9:34                 ` Eli Zaretskii
2015-09-23 11:00                   ` Petr Hracek
2015-09-23 11:14                     ` Eli Zaretskii
2015-09-23 12:11                       ` Petr Hracek
2015-09-23 12:23                         ` Eli Zaretskii
2015-09-24 11:04                           ` Petr Hracek
2015-09-24 15:32                             ` Eli Zaretskii
2015-09-24 17:56                               ` Petr Hracek
2015-09-26  7:58                                 ` Eli Zaretskii
2015-09-30 10:39                                   ` Petr Hracek
2015-10-01  7:43                                     ` Eli Zaretskii
2015-10-01  8:46                                       ` Petr Hracek
2015-10-01 11:44                                       ` Petr Hracek
2015-10-01 11:53                                       ` Petr Hracek
2015-10-01 12:22                                         ` Eli Zaretskii
2015-10-01 14:05                                           ` Petr Hracek
2015-10-01 16:01                                             ` Eli Zaretskii
2015-10-02  8:36                                               ` Petr Hracek
2015-10-02  8:49                                                 ` Eli Zaretskii
2015-10-02 12:58                                                   ` Petr Hracek
2015-10-02 13:46                                                     ` Eli Zaretskii
2015-10-05  7:40                                                       ` Petr Hracek
2015-10-05  8:27                                                         ` Eli Zaretskii
2015-10-05  9:16                                                           ` Petr Hracek
2015-10-05  9:39                                                             ` Eli Zaretskii
2015-10-05 11:23                                                               ` Petr Hracek
2015-10-05 11:40                                                                 ` Eli Zaretskii
2015-10-05 14:07                                                                   ` Petr Hracek
2015-10-05 16:52                                                                     ` Eli Zaretskii
2015-10-06  8:41                                                                       ` Petr Hracek
2015-10-06 11:52                                                                         ` Petr Hracek [this message]
2015-10-06 14:55                                                                           ` Eli Zaretskii
2015-10-07  8:17                                                                             ` Petr Hracek
2015-10-07 10:56                                                                               ` YAMAMOTO Mitsuharu
2015-10-07 12:26                                                                                 ` Petr Hracek
2015-10-08  0:54                                                                                   ` YAMAMOTO Mitsuharu
2015-10-08 13:27                                                                                     ` Jaromir Capik
2015-10-10  1:40                                                                                       ` YAMAMOTO Mitsuharu
2015-10-10 15:44                                                                                         ` Andreas Schwab
2015-10-13  7:30                                                                                           ` Petr Hracek
2015-10-13  8:30                                                                                             ` Andreas Schwab
2015-10-16 15:24                                                                                               ` Jaromir Capik
2015-10-19  7:20                                                                                                 ` Andreas Schwab
2015-09-23 12:10                   ` Petr Hracek
2015-09-23 12:21                     ` Eli Zaretskii
2015-09-23 13:10                       ` Petr Hracek
2015-09-23 13:38                       ` Petr Hracek
2015-09-23 13:57                         ` Eli Zaretskii
2015-09-23 17:25                           ` Glenn Morris
2015-09-23 17:47               ` Glenn Morris
2015-09-29  8:15                 ` Florian Weimer
2015-07-13 12:17   ` bug#20614: Segmentation fault when building on Power8 Little Endian (ppc64le) Petr Hracek
2015-11-17  1:59 ` bug#20614: alignment problem with recent Emacs unexelf.c changes Paul Eggert
2015-11-17  9:03   ` Alan Modra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5613B614.4090805@redhat.com \
    --to=phracek@redhat.com \
    --cc=20614@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).