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]

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


The following reply was made to PR gdb/1368; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@mvista.com>
To: akumar@knightsindia.co.in
Cc: gdb-gnats@sources.redhat.com, bug-gdb@gnu.org, mec@shout.net
Subject: Re: gdb/1368: GDB 5.3.91, Redhat Linux 7.1, gcc 2.95.3, g++ 2.95.3, C++ and Qt
Date: Fri, 5 Sep 2003 09:15:10 -0400

 On Fri, Sep 05, 2003 at 10:02:53AM -0000, akumar@knightsindia.co.in wrote:
 > 
 > >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 bec ause 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.
 
 That doesn't sound like a GDB bug, it sounds like running out of
 memory.  Are there kernel messages talking about killing it?  See
 "dmesg".
 
 -- 
 Daniel Jacobowitz
 MontaVista Software                         Debian GNU/Linux Developer


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