Bug 966675 - gdb tools/gst-launch-1.0 fails because not recognized file format
gdb tools/gst-launch-1.0 fails because not recognized file format
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: gdb (Show other bugs)
18
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jan Kratochvil
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-23 12:29 EDT by FENG Haibo
Modified: 2013-05-23 12:48 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-05-23 12:48:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description FENG Haibo 2013-05-23 12:29:44 EDT
Description of problem:
Downloaded gstreamer-1.0.7 source tarball
./configure GST_DISABLE_GST_DEBUG=no
make CFLAGS="-DGST_DISABLE_GST_DEBUG"
Directly run gst-launch-1.0 works:
$tools/gst-launch-1.0 
ERROR: pipeline could not be constructed: empty pipeline not allowed.

But using gdb, it reports the file format is not recognized:
$ gdb tools/gst-launch-1.0 
GNU gdb (GDB) Fedora (7.5.1-38.fc18)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/home/haibo/dev/gstreamer-1.0.7/tools/gst-launch-1.0": not in executable format: File format not recognized


Version-Release number of selected component (if applicable):
GNU gdb (GDB) Fedora (7.5.1-38.fc18)
gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)

How reproducible:
As the description

Steps to Reproduce:
1.Downloaded gstreamer-1.0.7 source tarball
2../configure GST_DISABLE_GST_DEBUG=no
make CFLAGS="-DGST_DISABLE_GST_DEBUG"
3.$ gdb tools/gst-launch-1.0 


Actual results:
gst-launch-1.0": not in executable format: File format not recognized

Expected results:
gdb can debug it.


Additional info:
Comment 1 Tom Tromey 2013-05-23 12:44:53 EDT
What does "file tools/gst-launch-1.0" say?
Comment 2 Jan Kratochvil 2013-05-23 12:48:02 EDT
tools/gst-launch-1.0
gdb tools/.libs/lt-gst-launch-1.0 

tools/gst-launch-1.0 is a libtool script

There are various other options how to run it, Google something about gdb-ing libtool-built programs.

One could possibly do something like:
  gdb -ex r --args bash tools/gst-launch-1.0
But I do not recommend it, you may run also gcc under gdb etc.
You are right gdb does not support inferior 'shebang'.

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