From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18526 invoked by alias); 2 Apr 2010 13:47:52 -0000 Received: (qmail 18503 invoked by uid 48); 2 Apr 2010 13:47:52 -0000 Date: Fri, 02 Apr 2010 13:47:00 -0000 From: "hjl dot tools at gmail dot com" To: gdb-prs@sourceware.org Message-ID: <20100402134748.11467.hjl.tools@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug corefiles/11467] New: amd64 gdb generates corrupted 32bit core file X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00018.txt.bz2 [hjl@gnu-6 avx]$ /export/build/gnu/gdb/build-x86_64-linux/gdb/gdb 32 GNU gdb (GDB) 7.1.50.20100402-cvs Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /export/home/hjl/bugs/gdb/avx/32...done. Setting up the environment for debugging gdb. Function "internal_error" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] Function "info_command" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] /export/home/hjl/bugs/gdb/avx/.gdbinit:8: Error in sourced command file: Argument required (one or more breakpoint numbers). (gdb) b main Breakpoint 1 at 0x8048438: file arg-1.c, line 25. (gdb) r Starting program: /export/home/hjl/bugs/gdb/avx/32 Breakpoint 1, main () at arg-1.c:25 25 test (n1, n2, n3); (gdb) gcore core.i386-linux Saved corefile core.i386-linux (gdb) c Continuing. Program exited normally. (gdb) q [hjl@gnu-6 avx]$ /export/build/gnu/gdb/build-x86_64-linux/gdb/gdb 32 core.i386-linux GNU gdb (GDB) 7.1.50.20100402-cvs Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /export/home/hjl/bugs/gdb/avx/32...done. [New Thread 27328] warning: Couldn't recognize general-purpose registers in core file. warning: Can't read pathname for load map: Input/output error. Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Core was generated by `/export/home/hjl/bugs/gdb/avx/32'. Program terminated with signal 5, Trace/breakpoint trap. warning: Couldn't recognize general-purpose registers in core file. #0 0x00000000 in ?? () Setting up the environment for debugging gdb. Function "internal_error" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] Function "info_command" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal] /export/home/hjl/bugs/gdb/avx/.gdbinit:8: Error in sourced command file: Argument required (one or more breakpoint numbers). (gdb) q [hjl@gnu-6 avx]$ file core.i386-linux core.i386-linux: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 'x/32' [hjl@gnu-6 avx]$ -- Summary: amd64 gdb generates corrupted 32bit core file Product: gdb Version: 7.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: corefiles AssignedTo: unassigned at sourceware dot org ReportedBy: hjl dot tools at gmail dot com CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11467 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.