From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12646 invoked by alias); 10 Jan 2007 16:21:44 -0000 Received: (qmail 12638 invoked by uid 22791); 10 Jan 2007 16:21:43 -0000 X-Spam-Check-By: sourceware.org Received: from brical.or.uni-bonn.de (HELO brical.or.uni-bonn.de) (131.220.141.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 10 Jan 2007 16:21:31 +0000 Received: from wse04.or.uni-bonn.de (bg-1.or.uni-bonn.de [131.220.141.100]) by brical.or.uni-bonn.de (Postfix) with ESMTP id AD85E3B7D0 for ; Wed, 10 Jan 2007 17:20:46 +0100 (CET) Received: from [131.220.143.130] (wse00.or.uni-bonn.de [131.220.143.130]) by wse04.or.uni-bonn.de (Postfix) with ESMTP id 18C3FE927 for ; Wed, 10 Jan 2007 17:24:16 +0100 (CET) From: Christoph Bartoschek To: gdb@sourceware.org Subject: Re: Differences between program runs with and without gdb Date: Wed, 10 Jan 2007 16:21:00 -0000 User-Agent: KMail/1.9.5 References: <200701101517.20024.bartoschek@or.uni-bonn.de> In-Reply-To: <200701101517.20024.bartoschek@or.uni-bonn.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701101720.46536.bartoschek@or.uni-bonn.de> 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-01/txt/msg00175.txt.bz2 Am Mittwoch, 10. Januar 2007 15:17 schrieb Christoph Bartoschek: > Hi, > > is there a list of things that could be different between to runs of a > programm once with and once without running it under gdb? > > I have a programm that calls the custom memory allocator less often when > run under gdb. Now I search for all possible causes for this behaviour. > Hi, thanks to all that helped. I've just found the problem. When the program is started with gdb the commandline differs. This means that argv[0] is different and that has the effect that our commandline parser needs a different number of allocations. Starting the programm with: gdb ./prog results in an argv[0] of /home/ponto/source/prog Starting it with ./prog results in an argv[0] of ./prog Greetings Christoph Bartoschek