Bug 562980 - Noise running ldconfig: /usr/lib/libpython2.6.so.1.0-gdb.py is not an ELF file - it has the wrong magic bytes at the start.
Summary: Noise running ldconfig: /usr/lib/libpython2.6.so.1.0-gdb.py is not an ELF fil...
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: 14
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Dave Malcolm
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-02-08 22:32 UTC by Dave Malcolm
Modified: 2012-08-16 21:52 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-08-16 21:52:36 UTC
Type: ---

Attachments (Terms of Use)

Description Dave Malcolm 2010-02-08 22:32:07 UTC
Description of problem:
ldconfig emits warnings about the two -gdb.py files in /usr/lib

/usr/lib/libpython2.6.so.1.0-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

These warnings appear to be harmless, if noisy.

Probably should put them with the debuginfo files, but there doesn't seem to be a good way to do this in an rpmbuild.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. install one of the above rpms
2. /sbin/ldconfig

Actual results:
Noise in log:
/usr/lib/libpython2.6.so.1.0-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

Expected results:
No noise in log

Comment 1 Dave Malcolm 2010-02-09 17:50:06 UTC
I fixed this in:
  python 2: python-2.6.4-16.fc13
  python 3: python3-3.1.1-24.fc13.
by managing to embed the -gdb.py files in the debuginfo subpackages (which is arguably where they should have been all along).

Comment 2 Dave Malcolm 2010-07-29 21:26:59 UTC
Reopening and reassigning to glibc:

The gdb python scripting in gdb 7 supports autoloading python scripts from PATH_TO_DSO-gdb.py when PATH_TO_DSO is linked into the inferior process.

However, installing such scripts into say /usr/lib/libfoo.so.1.0-gdb.py leads to this noise from ldconfig.

Is it sane to install these scripts into %{_libdir}; if so, please can ldconfig not complain?

Comment 3 Jakub Jelinek 2010-07-29 21:39:28 UTC
Please put them into
/usr/share/gdb/auto-load/usr/lib*/ instead
(see gcc-4.5.0-* packages in F14).

Comment 4 Bug Zapper 2010-07-30 10:50:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.

More information and reason for this action is here:

Comment 5 Jan Kratochvil 2010-10-05 13:45:37 UTC
[i686 as the used pathnames are 32bit specific]

gdb-7.2-16.fc14.i686 searches all these:

python-debuginfo-2.7-8.fc14.1.i686 uses the first case:

You could use the last case as suggested by the Comment 3 if you want it in 
python-2.7-8.fc14.1.i686 instead of 
python-debuginfo-2.7-8.fc14.1.i686 .

I do not see a problem in GDB.

Comment 6 Fedora End Of Life 2012-08-16 21:52:39 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 

Note You need to log in before you can comment on or make changes to this bug.