From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23279 invoked by alias); 13 Apr 2005 14:43:06 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22919 invoked from network); 13 Apr 2005 14:42:34 -0000 Received: from unknown (HELO cycloeastern.com) (68.184.90.205) by sourceware.org with SMTP; 13 Apr 2005 14:42:34 -0000 Received: (from pras@localhost) by cycloeastern.com (8.11.6/8.11.6) id j3DFIGL13789 for gdb@sources.redhat.com; Wed, 13 Apr 2005 11:18:16 -0400 From: pras@cycloeastern.com Date: Wed, 13 Apr 2005 14:43:00 -0000 To: gdb@sources.redhat.com Subject: GDB problem on RH AS/Clone(). Plz help. Message-ID: <20050413151816.GA13759@cycloeastern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2005-04/txt/msg00073.txt.bz2 All, This is my first email to this list. I work for a company in that has started using Linux for one of its projects that has traditionally in the past been running on all other big iron *nixes. We just got our first build on RH Enterprise Linux AS release 3 (Taroon Update 4), and gdb attempts fail miserably. Background info: The product is written in C/C++ and is compiled with gcc 3.2.3 The gdb version is as follows: GNU gdb Red Hat Linux (6.1post-1.20040607.52rh) I am able to attach to a process and see the stack using backtrace or bt. frame command works and even break command works. When I try to do a 'cont', the server process which is supposed to execute continuously exists normally. This is what I see (gdb) cont Continuing. [New Thread -1245635664 (LWP 8226)] [Thread -1220756560 (LWP 7953) exited] Program exited normally. (gdb) The program is multithreaded and it fails. People at my local LUG suggested that I try to look up problems with clone() system call and GDB. They suggested using PTHREADS could solve the problem. We DO use pthreads and here is the stack(i.e. backtrace). I have set a break point on clone(). Shortly after the program just exits. #0 0x0365e9d0 in clone () from /lib/tls/libc.so.6 #1 0x0040a8d7 in do_clone () from /lib/tls/libpthread.so.0 #2 0x0040a526 in create_thread () from /lib/tls/libpthread.so.0 #3 0x00409f87 in pthread_create@@GLIBC_2.1 () from /lib/tls/libpthread.so.0 #4 0x0040a01c in pthread_create@GLIBC_2.0 () from /lib/tls/libpthread.so.0 #5 0x004a9f3a in VISThread::_create_thread () from /usr/BDP/lib/libvport_r.so #6 0x004aa0bc in VISThread::run () from /usr/BDP/lib/libvport_r.so #7 0x0142a588 in VISManager::cleanup () from /usr/BDP/lib/liborb_r.so #8 0x0142b063 in VISManager::sig_handler () from /usr/BDP/lib/liborb_r.so #9 0x0142b4a1 in VISThreadSignal::begin () from /usr/BDP/lib/liborb_r.so #10 0x004a8749 in VISThread::_start () from /usr/BDP/lib/libvport_r.so #11 0x00409dec in start_thread () from /lib/tls/libpthread.so.0 #12 0x0365ea2a in clone () from /lib/tls/libc.so.6 I downloaded 6.3 gdb and compiled it with no options. GDB failed again under that. Please let me know what can be done. Do you guys know what might be going wrong ? -- ________________________________________________________________________ Prasanna Subash | WARNING TO ALL PERSONNEL: Firings will pras@cycloeastern.com | continue until morale improves. | | ________________________________________________________________________