Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563912 - sys-devel/gdb-7.10-r1 error while loading shared libraries: /usr/lib64/libm.so.6: invalid ELF header
Summary: sys-devel/gdb-7.10-r1 error while loading shared libraries: /usr/lib64/libm.s...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-23 23:39 UTC by Alex Turbov
Modified: 2015-10-27 15:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
full build log (glibc.log.bz2,370.27 KB, application/x-bzip2)
2015-10-26 11:02 UTC, Alex Turbov
Details
glibc package content (glibc.lst,52.11 KB, text/plain)
2015-10-26 11:04 UTC, Alex Turbov
Details
my system info (cave-info.txt,7.68 KB, text/plain)
2015-10-26 11:05 UTC, Alex Turbov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Turbov 2015-10-23 23:39:22 UTC
problem appears after upgrading to sys-libs/glibc-2.22-r1

Reproducible: Always

Steps to Reproduce:
1.try to start gdb from console
2.
3.
Actual Results:  
gdb: error while loading shared libraries: /usr/lib64/libm.so.6: invalid ELF header


Expected Results:  
gdb running…
Comment 1 Alex Turbov 2015-10-23 23:42:34 UTC
readelf shows that gdb has a runpath set to /usr/lib64.
as a temporary solution I start it like this:

  $ LD_LIBRARY_PATH=/lib gdb
Comment 2 SpanKY gentoo-dev 2015-10-24 16:44:21 UTC
every bug report should have `emerge --info` attached to it.  please do so.

there should be no /usr/lib64/libm.so.6 file.  please attach the output of:
  qlist -e sys-libs/glibc

also attach the full build log of your glibc
Comment 3 Alex Turbov 2015-10-26 11:02:54 UTC
Created attachment 415510 [details]
full build log
Comment 4 Alex Turbov 2015-10-26 11:04:26 UTC
Created attachment 415512 [details]
glibc package content
Comment 5 Alex Turbov 2015-10-26 11:05:38 UTC
Created attachment 415514 [details]
my system info
Comment 6 SpanKY gentoo-dev 2015-10-27 01:54:28 UTC
your glibc doesn't own /usr/lib64/libm.so.6, so where is it coming from ?  run:
  file /usr/lib*/libm.so.6
  file -L /usr/lib*/libm.so.6
  qfile /usr/lib*/libm.so.6

and post the output
Comment 7 Alex Turbov 2015-10-27 10:30:52 UTC
it is a symlink unowned by any package... removing it had fixed the problem.