This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1368: GDB 5.3.91, Redhat Linux 7.1, gcc 2.95.3, g++ 2.95.3, C++ and Qt


>Number:         1368
>Category:       gdb
>Synopsis:       GDB 5.3.91, Redhat Linux 7.1, gcc 2.95.3, g++ 2.95.3, C++ and Qt
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 05 10:08:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     akumar@knightsindia.co.in
>Release:        GNU gdb 5.3, GNU gdb 5.3.91
>Organization:
>Environment:
Linux 7.1 (2.4.2-2smp), gcc 2.95.3, g++ 2.95.3, GDB was configured as "i686-pc-linux-gnu"
>Description:
GDB seems to have some problems working with Qt applications on Linux platform(It works perfectly on Sun Solaris) when compiled with shared objects(It works perfectly when compiled with static libraries i.e., .a files). It gets killed whenever I try to debug a Qt application irrespective of the size of the application. The application doesn't have any problem(I'm able to run that stand alone).  A detailed report of the bug is given in the next paragraph.  I'm sorry that I cannot send the source files because of the confidentiality I am supposed to maintain, but I've found that gdb crashes with any Qt application on Linux when compiled with shared objects. So, you can try with your own test applications.  I'm attaching a statically compiled Scribble application(source code is available with Qt software, its a sample program), but I don't think it will help since it doesn't seem to have any problems.

Description of bug : GDB gets killed whenever I try to
debug a Qt application that is compiled with shared objects. GDB does not even seem to execute the first statement in main function. I checked it by putting a break point at main, but it didn't help. GDB does some operation after I give the command 'run' and after a while, it gives the command line output 'Killed' and exits. I first tried with the GDB available with Redhat Linux7.1 CD (version of GDB is 5.0 I suppose) and then downloaded and compiled the
version 5.3 from www.gnu.org and version 5.3.91 from ftp://sources.redhat.com/pub/gdb/snapshots/branch/gdb-5.3.91.tar.bz2. None helped.
>How-To-Repeat:
Compile any Qt application with -g option(for debugging) with shared objects(of qt and other libraries) and try to debug it with gdb.  After some time, gdb prints the message "Killed" and gets killed.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]