public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/60465] New: Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info
@ 2014-03-08 12:08 devurandom at gmx dot net
  2014-03-08 12:09 ` [Bug other/60465] " devurandom at gmx dot net
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: devurandom at gmx dot net @ 2014-03-08 12:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465

            Bug ID: 60465
           Summary: Compiling glibc-2.17,2.18 with gcc-4.8.2 and
                    binutils-2.23.2,2.24 results in segfaults in _start /
                    elf_get_dynamic_info
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: devurandom at gmx dot net

Created attachment 32309
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32309&action=edit
backtrace (glibc-2.18,binutils-2.24,gcc-4.8.2)

I tried to build glibc-2.17 and 2.18 with binutils-2.23.2 or 2.24 and
gcc-4.8.2, but always run into the same segfault when loading programs with the
new runtime linker.

Please find a backtrace for the glibc-2.18, binutils-2.24, gcc-4.8.2
combination attached.

It crashes in exactly the same way when running without --library-path and when
running with ../usr/bin/locale (from glibc-2.18) or /bin/date as argument.

Since glibc-2.17 compiled fine with gcc-4.7.3, I assume that gcc-4.8.2 is to
blame.

The context of the crash is (according to glibc-2.18/elf/get-dynamic-info.h):
elf_get_dynamic_info (struct link_map *l, ElfW(Dyn) *temp) {
  ElfW(Dyn) **info;
  info = l->l_info;
  info[DT_ADDRTAGIDX (dyn->d_tag) + DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM
+ DT_EXTRANUM + DT_VALNUM] = dyn;
}

GDB reports this function being called as:
elf_get_dynamic_info (temp=0x0, l=0x2000000800051458 <_rtld_local+2456>)

What I find to be suspicious is the changed order of parameters.

I would like to check this with valgrind, too, but it is not available on ia64
(i.e. anything but x86, ppc and arm).

See-Also: https://bugs.gentoo.org/show_bug.cgi?id=503838


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2014-08-19 22:02 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-08 12:08 [Bug other/60465] New: Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info devurandom at gmx dot net
2014-03-08 12:09 ` [Bug other/60465] " devurandom at gmx dot net
2014-03-18  7:18 ` vapier at gentoo dot org
2014-03-18  7:29 ` devurandom at gmx dot net
2014-03-18 10:31 ` schwab@linux-m68k.org
2014-03-19  5:35 ` vapier at gentoo dot org
2014-03-25 18:23 ` devurandom at gmx dot net
2014-03-25 22:17 ` vapier at gentoo dot org
2014-03-25 23:01 ` devurandom at gmx dot net
2014-08-14  3:26 ` vapier at gentoo dot org
2014-08-14  7:13 ` ebotcazou at gcc dot gnu.org
2014-08-14  7:21 ` ebotcazou at gcc dot gnu.org
2014-08-14  7:35 ` pinskia at gcc dot gnu.org
2014-08-14 11:55 ` vapier at gentoo dot org
2014-08-14 11:57 ` vapier at gentoo dot org
2014-08-14 12:27 ` vapier at gentoo dot org
2014-08-16 14:22 ` vapier at gentoo dot org
2014-08-16 14:27 ` vapier at gentoo dot org
2014-08-16 14:28 ` vapier at gentoo dot org
2014-08-16 15:40 ` ebotcazou at gcc dot gnu.org
2014-08-18  7:58 ` rguenth at gcc dot gnu.org
2014-08-18 14:08 ` ebotcazou at gcc dot gnu.org
2014-08-18 21:14 ` ebotcazou at gcc dot gnu.org
2014-08-19  0:16 ` vapier at gentoo dot org
2014-08-19 21:46 ` ebotcazou at gcc dot gnu.org
2014-08-19 22:02 ` ebotcazou at gcc dot gnu.org

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