This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: symtab/2005: info line seems to crash in gdb 6.3


The following reply was made to PR symtab/2005; it has been noted by GNATS.

From: Sven Krueger <sk1@delair.de>
To: gdb-gnats@sources.redhat.com, nobody@sources.redhat.com,
	sk1@delair.de
Cc: Daniel Jacobowitz <drow@false.org>
Subject: Re: symtab/2005: info line seems to crash in gdb 6.3
Date: Thu, 8 Sep 2005 07:40:32 +0200

 --Boundary-00=_Q78HD2x8U8fYaaA
 Content-Type: text/plain;
   charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 > > if I start a gdb in another gdb and use this one for debugging the simp=
 le=20
 > > Hello World program I get the following backtrace:
 =20
 > Could you try this with valgrind?  It definitely doesn't happen to me.
 
 (...)
 
 > Failing that, please attach a small binary which shows the problem.
 
 Of course. I've attached the valgrind dump and the binary to this mail.
 By the way: Thank you very much for your great work on gdb and for your=20
 support!!
 
 =2D-=20
 
  Sven Kr=FCger
  delair ATS GmbH
 
 
 --Boundary-00=_Q78HD2x8U8fYaaA
 Content-Type: text/plain;
   charset="iso-8859-1";
   name="valgrind_gdb.dump"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="valgrind_gdb.dump"
 
 elsa 8$ valgrind gdb
 ==3698== Memcheck, a memory error detector for x86-linux.
 ==3698== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
 ==3698== Using valgrind-2.4.0, a program supervision framework for x86-linux.
 ==3698== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
 ==3698== For more details, rerun with: -v
 ==3698==
 GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "i386-redhat-linux-gnu".
 (gdb) file hw1
 Reading symbols from /usr/home/krueger/test/gdb/hw1...done.
 Using host libthread_db library "/lib/libthread_db.so.1".
 (gdb) run
 Starting program: /usr/home/krueger/test/gdb/hw1
 ==3700==
 ==3700== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 22 from 1)
 ==3700== malloc/free: in use at exit: 358656 bytes in 2321 blocks.
 ==3700== malloc/free: 2849 allocs, 528 frees, 457887 bytes allocated.
 ==3700== For counts of detected errors, rerun with: -v
 ==3700== searching for pointers to 2321 not-freed blocks.
 ==3700== checked 618516 bytes.
 ==3700==
 ==3700== LEAK SUMMARY:
 ==3700==    definitely lost: 9975 bytes in 266 blocks.
 ==3700==      possibly lost: 0 bytes in 0 blocks.
 ==3700==    still reachable: 348681 bytes in 2055 blocks.
 ==3700==         suppressed: 0 bytes in 0 blocks.
 ==3700== Use --leak-check=full to see details of leaked memory.
 Reading symbols from shared object read from target memory...done.
 Loaded system supplied DSO at 0x111000
 Hello world
 
 Program received signal SIGINT, Interrupt.
 0x00111402 in __kernel_vsyscall ()
 (gdb) info line main
 ==3698== Conditional jump or move depends on uninitialised value(s)
 ==3698==    at 0x8086502: xfree (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x80F4CA0: find_line_pc_range (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x80DF3A3: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8084DA1: execute_command (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8112C93: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8113108: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x81EDE7C: rl_callback_read_char (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x81125BA: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8111E6D: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8111951: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8112196: gdb_do_one_event (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8084833: (within /.nfsroot/usr/bin/gdb)
 ==3698==
 ==3698== Conditional jump or move depends on uninitialised value(s)
 ==3698==    at 0x1B9096F8: free (vg_replace_malloc.c:152)
 ==3698==    by 0x80F4CA0: find_line_pc_range (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x80DF3A3: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8084DA1: execute_command (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8112C93: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8113108: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x81EDE7C: rl_callback_read_char (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x81125BA: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8111E6D: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8111951: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8112196: gdb_do_one_event (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8084833: (within /.nfsroot/usr/bin/gdb)
 ==3698==
 ==3698== Invalid free() / delete / delete[]
 ==3698==    at 0x1B909743: free (vg_replace_malloc.c:152)
 ==3698==    by 0x80F4CA0: find_line_pc_range (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x80DF3A3: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8084DA1: execute_command (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8112C93: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8113108: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x81EDE7C: rl_callback_read_char (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x81125BA: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8111E6D: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8111951: (within /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8112196: gdb_do_one_event (in /.nfsroot/usr/bin/gdb)
 ==3698==    by 0x8084833: (within /.nfsroot/usr/bin/gdb)
 ==3698==  Address 0x1 is not stack'd, malloc'd or (recently) free'd
 Line 5 of "hw.c" starts at address 0x8048464 <main>
    and ends at 0x8048480 <main+28>.
 
 --Boundary-00=_Q78HD2x8U8fYaaA
 Content-Type: application/x-tgz;
   name="hw1.tgz"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
 	filename="hw1.tgz"
 
 H4sIAJjOH0MAA+1YfWwUxxWfvds7L9iYs03BBZpcGqNCEOc7Y+MkpI0/MLZThw9jUiJLWdZ369sj
 9+Hu7RloGxU4nNRBqERRKKpcFVTSRgIlVKIVapFiZESNFFWUqil/8AdRoTIlkYhKo6hFub43H3t7
 i0lbVeGvG3vuzW/mN+/NvJ1vY2eEfNEhDKG1pYXKiJDNzVRiKtK6hkTCq8Otza1rwi2rSTgSiYSb
 SDD8hbcMQi5raWYwSF40c3pcNz+Hp5vZB9GgBxu+39W3XpIkG3uIlyCazMtKM0irkuU3kyBRyHLS
 QB4hfooh7gEORFoBog+EDNGLZYCb90I5xDrAdbyMU1nAuhCPQ0WMWJ8EWDnNewPKIDZAxnKIfl7u
 AXEGys9AGcZrgDH6uQ2MPcDvAdsYg4CDjrJNN6zYANQfGJMVjAsgb4GjfDOUz+Yrob8xmRhqTMZW
 JRPp3K5QNhNqYvkB3rfuDVu5L1n0cZ8oECt4WnbpFj4RfP8s9ndw+RqQa0FmOE55GN7P8Su8PAdx
 HfQPbdWQarLMoSvI23sUvvNdL+M/4Son0M+sFYuuXImdXENUNb5rlzoC8yCT1pIJa7c6GibqM6Nq
 vx5PZC3d7Exq2ayeRWIqk1ZxZlmqimpSTAOk4tGomkUUQRRl+SM5K0uySV0fIWrvRqgYS6RVmHEx
 UIUsriqlJdKkc9u29o5eNRJaTbr7ejs61aZQmHkO/yTuX4n+sT5iX/74zos+LDls+1si23k5hkAi
 MQ91HO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xaRuzHeqMjdkKdOSwwOyGMWHjhRSf
 tTFbeadtLE4mLHjJl114sQsvceGlLvwVF37IhR924aALP+LCX3XhR+kIuc797wH/1zjKZfJxAVsk
 /ClB6WOk6E8J/Pk4KfpTAn92EeYPdrKrp/vk+cOifBEZBKnsL9r7Nsin9t/f/ksg33LYf5XwOxS3
 /yOQR8cEDpA3Xe35Jci7Dv2/c+l/jxS/fw18/z8RNt7EO9RVR/8Dno8LH4Gc5P2p8Swi/wSJbxk4
 U2pB/1w+McW712KpOP5rYfwHpeJ4R/7XOF+8iz0uldr7psSuNRs5f1AqjrcAtD8uFc/BWJ7k+sS7
 2rhL34+l4vgNwvd4UyrOt1qYbydc/Hdd9i5IxflQ41lIrgJ+z1H+gav+Han0Xc/rKdoPgP2AY00L
 QmzwlL7zdXlK9Q26+CSqJZOOJzwSNa2slRsehiuFqnYObOxX+3q3DKgqoHUl6JlOG8BReiSpW3os
 1NzS2kpGUOATYiyjxpOZIS2p0qO5quV2EXaAj+VSqd3CQNeGdUX9Aqzvb3+2y0ZoTKSLWqO2VnoF
 Utc9v6H92d5Oog6PqMZOoOL1AU72prZb1dP4wBjLZlRDS8eSunhtjGZzlEbfJdvais+MKr2HcK/Q
 98qSUqduxnEoZFVVuGfwMnqfvOd9s1QhVnI0Fq8qQjNtoKqOmLqLpOr0RqN2923saO9TN65fv6Vr
 QB1o7+jrAlexPjuqcHXuZ1enqdmfeO95C25rc7zNulsm/FHyMlwO5VAO5VAO5VAO5VAO5VAO5VAO
 Dyr8G3sFWcYAKAAA
 
 --Boundary-00=_Q78HD2x8U8fYaaA--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]