From owner-freebsd-questions@FreeBSD.ORG Sun Jul 6 17:02:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B646A1065670 for ; Sun, 6 Jul 2008 17:02:10 +0000 (UTC) (envelope-from tobias.rehbein@web.de) Received: from fmmailgate02.web.de (fmmailgate02.web.de [217.72.192.227]) by mx1.freebsd.org (Postfix) with ESMTP id 676B28FC15 for ; Sun, 6 Jul 2008 17:02:10 +0000 (UTC) (envelope-from tobias.rehbein@web.de) Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id DBEF7E47E680 for ; Sun, 6 Jul 2008 18:38:53 +0200 (CEST) Received: from [88.134.177.26] (helo=sushi.pseudo.local) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.109 #226) id 1KFXGE-0004Se-00 for freebsd-questions@freebsd.org; Sun, 06 Jul 2008 18:38:51 +0200 Received: from sushi.pseudo.local (localhost [127.0.0.1]) by sushi.pseudo.local (8.14.2/8.14.2) with ESMTP id m66GaQNg002755 for ; Sun, 6 Jul 2008 18:36:26 +0200 (CEST) (envelope-from tobi@sushi.pseudo.local) Received: (from tobi@localhost) by sushi.pseudo.local (8.14.2/8.14.2/Submit) id m66GaQY1002754 for freebsd-questions@freebsd.org; Sun, 6 Jul 2008 18:36:26 +0200 (CEST) (envelope-from tobi) Date: Sun, 6 Jul 2008 18:36:26 +0200 From: Tobias Rehbein To: freebsd-questions@freebsd.org Message-ID: <20080706163626.GA1896@sushi.pseudo.local> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Sender: tobias.rehbein@web.de X-Sender: tobias.rehbein@web.de X-Provags-ID: V01U2FsdGVkX18I3eHotiIRY1MCsTVnyY5A9B7DXUTQ3BKeSsGc u+yLevyBcCUC7DBrG0YaE5HTGpt8uwgCBfz+FzrE4V8fQH5LhB AzuRmFE67UKM74e8VBeg== Subject: [OT] Why behaves my application different when run in gdb X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2008 17:02:10 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all. Sorry for asking off-topic questions but I started to dive into C programmi= ng. I know a couple of scripting languages quite well but wanted to learn somethi= ng more low level. What me struck now is the fact that my code will crash (signal 11) while processing a strcpy. When I run the same thing in gdb it won't crash and wh= ats even more important to me: It does what I wanted it to do... Perhaps someone can tell me why a program which crashes repeatedly in conso= le runs fine in the debugger. Thanks in advance Tobias --=20 Tobias Rehbein PGP key: 4F2AE314 server: keys.gnupg.net fingerprint: ECDA F300 1B6E 9B87 8524 8663 E8B6 3138 4F2A E314 --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhw9IkACgkQ6LYxOE8q4xRAdACfXoMGxXSD1qoQirxGxVCtUI9i xAIAn0HJAAZvwW0R3s+q5TRjH5fhCDL/ =sSdn -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--