From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3739 invoked by alias); 5 Feb 2009 18:49:15 -0000 Received: (qmail 3728 invoked by uid 22791); 5 Feb 2009 18:49:15 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,J_CHICKENPOX_13 X-Spam-Check-By: sourceware.org Received: from smtp20.orange.fr (HELO smtp20.orange.fr) (80.12.242.27) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Feb 2009 18:49:06 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2012.orange.fr (SMTP Server) with ESMTP id 2778A1C0008C for ; Thu, 5 Feb 2009 19:49:04 +0100 (CET) Received: from [192.168.1.12] (ABordeaux-253-1-59-254.w82-125.abo.wanadoo.fr [82.125.101.254]) by mwinf2012.orange.fr (SMTP Server) with ESMTP id D0C821C0008F for ; Thu, 5 Feb 2009 19:49:03 +0100 (CET) Message-ID: <498B34A4.8030607@chenais.net> Date: Thu, 05 Feb 2009 18:49:00 -0000 From: =?ISO-8859-1?Q?Fran=E7ois_Chenais?= User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: gdb@sourceware.org Subject: [OPTERON/x86_64] - can debug while setting breakpoint Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: 2009-02/txt/msg00046.txt.bz2 Hello, Something strange happens while trying to debug on x86_64 system. I have a simple C code in t.c file ... #include void main (int argc, char **argv) { printf("Hello World !"\n); } ... built with ... # gcc -g t.c ... and run it # a.out Hello World ! ldd is ok libc.so.6 => /lib64/libc.so.6 (0x000000304f200000) /lib64/ld-linux-x86-64.so.2 (0x000000304da00000) Now running it with gdb : # gdb a.out blah blah blah (gdb) run Starting program: /home/francois/src/a.out Hello World ! Program exited with code 016. (gdb) b main Breakpoint 1 at 0x80483b5: file t.c, line 2. (gdb) run At this moment, a SIGSEGV occurs before stopping on the breakpoint !!! The stack is buggy ! More informations that can help ===================== The same error occurs with others debuggers : totalview, sun dbx, intel idb and while using intel icc or g++ compilers :/ The same error occurs while building with -static option. I've done the test on 5 Amd opteron x86_64 hosts with Cent OS 5.2 - The error occurs on 3/5. Any idea ??? Thanks a lot by advance François