From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9058 invoked by alias); 2 Apr 2007 13:44:58 -0000 Received: (qmail 9050 invoked by uid 22791); 2 Apr 2007 13:44:57 -0000 X-Spam-Check-By: sourceware.org Received: from mx.acronis.com (HELO mx.acronis.com) (195.214.233.245) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 02 Apr 2007 14:44:52 +0100 Received: from imap.acronis.ru (acrogw.acronis.ru [195.214.233.225]) by mx.acronis.com (8.13.7/8.13.7) with ESMTP id l32DkpPj030168; Mon, 2 Apr 2007 09:46:51 -0400 Received: from harlequin (dhcp6-184.acronis.ru [192.168.6.184]) by imap.acronis.ru (8.13.6/8.13.6) with ESMTP id l32DiWiT016756; Mon, 2 Apr 2007 17:44:35 +0400 Message-Id: <200704021344.l32DiWiT016756@imap.acronis.ru> From: "Vadim Shmelev" To: "'Baurzhan Ismagulov'" Cc: Subject: RE: GDB receives SIGKILL Date: Mon, 02 Apr 2007 13:44:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <20070402100051.GA19126@radix50.net> X-Antivirus: Dr.Web (R) for Mail Servers on localhost host X-Antivirus-Code: 100000 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00011.txt.bz2 Thanks for response, Baurzhan. I will try to describe the problem in details. Application works satisfactorily, but some results are unexpected. Strace works normally too. Problem occurs during debug process only. RAM is 2 Gb and there is no out of memory messages in log. There is output from gdb session: GNU gdb Red Hat Linux (6.3.0.0-1.84rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-asplinux-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) handle SIG32 nostop noprint Signal Stop Print Pass to program Description SIG32 No No Yes Real-time event 32 (gdb) handle SIG33 nostop noprint Signal Stop Print Pass to program Description SIG33 No No Yes Real-time event 33 (gdb) b 'ComputerManagement::CreateLocalLinuxHardwareInfo(Fomatik::Computer*)' Breakpoint 1 at 0x9053fe6: file ../../../include/processor/ref/allocator.h, line 23. (gdb) r Starting program: /mnt/afc_agent.exe warning: shared library handler failed to enable breakpoint Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xffffe000 Detaching after fork from child process 2322. Detaching after fork from child process 2325. Program terminated with signal SIGKILL, Killed. The program no longer exists. Current language: auto; currently c++ The next output string looks strange ' warning: shared library handler failed to enable breakpoint' as application is linked statically. Any advises? With best regards, Vadim -----Original Message----- From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf Of Baurzhan Ismagulov Sent: Monday, April 02, 2007 2:01 PM To: gdb@sourceware.org Subject: Re: GDB receives SIGKILL Hello Vadim, On Mon, Apr 02, 2007 at 11:57:01AM +0400, Vadim Shmelev wrote: > I'm novice in Linux and during of application debugging that linked > statically I bump into the following problem: debugger receives SIGKILL and > exits. Are you using a front-end before gdb? If yes, you could strace it to see whether it kills gdb. If not, check the kernel logs for the OOM killer. With kind regards, -- Baurzhan Ismagulov http://www.kz-easy.com/