From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4294 invoked by alias); 11 Apr 2002 16:12:50 -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 4262 invoked from network); 11 Apr 2002 16:12:48 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 11 Apr 2002 16:12:48 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id D989559D361 for ; Thu, 11 Apr 2002 18:12:38 +0200 (CEST) Received: from suse.cz (leviathan.suse.cz [10.20.1.56]) by chimera.suse.cz (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g3BGCcf06192 for ; Thu, 11 Apr 2002 18:12:38 +0200 X-Authentication-Warning: chimera.suse.cz: Host leviathan.suse.cz [10.20.1.56] claimed to be suse.cz Message-ID: <3CB5B5F1.7010809@suse.cz> Date: Thu, 11 Apr 2002 09:12:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9+) Gecko/20020327 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: gdb Subject: Strange segfaults of gdb Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00168.txt.bz2 Hi all, I've spent several days with chasing gdb segfaults on x86-64 but had no luck. So I'm finally asking here for any suggestions, opinions, hints, just anything that could move me forward. The problem is, that when I print anything using a 'print' command, or info or maybe some others, and then want to run or step the debugged program, the gdb segfaults: # ./gdb ~/mludvig/tst/xmmtest GNU gdb 2002-04-04-cvs [...] This GDB was configured as "x86_64-unknown-linux-gnu"... Setting up the environment for debugging gdb. .gdbinit:3: Error in sourced command file: Function "internal_error" not defined. (gdb) br 10 Breakpoint 1 at 0x4004d8: file xmmtest.c, line 10. (gdb) r Starting program: /root/mludvig/tst/xmmtest Breakpoint 1, main () at xmmtest.c:10 10 printf("v1=%f, v2=%f, v3=%e\n", v1, v2, v3); (gdb) p 1 $1 = 1 (gdb) c Continuing. Segmentation fault (core dumped) It doesn't matter which program I run, what I want to print and if I then want invoke 'run', 'continue' or even 'si'. It segfaults. Core file doesn't give any reasonable informations. This segfault also happens when I leave 'set complaints 1' in .gdbinit in sourcedir, run gdb from there and then try to run a debugged program. Unfortunately it is perfectly reproductable :-( Does anybody have an idea how print, set and step can be related? I really don't know... Thanks for any ideas Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz