Package: gdb Version: 7.1-1 Severity: important gdb refuses to print errno on amd64, regardless of whether the program in question is 32-bit or 64-bit. libc6-dbg is installed.
In my opinion, not being able to print errno makes gdb significantly less useful. errno is an essential and important part of libc6, and not supporting it is a really, really bad idea. If gdb has never worked on errno, ever, then you may feel free to downgrade this to wishlist. I have determined, though, that gdb does work if you issue the command "set environment LD_PRELOAD /usr/lib/libefence.so" before "run" to use Electric Fence. This is bizarre. Transcript: lakeview no % gdb --args ./readdir libpst-0.6.45 GNU gdb (GDB) 7.1-debian Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 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-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /tmp/readdir...done. (gdb) run Starting program: /tmp/readdir libpst-0.6.45 Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7ad2092 in _IO_vfprintf_internal (s=0x7fffffffc870, format=<value optimized out>, ap=0x7fffffffd060) at vfprintf.c:1601 1601 vfprintf.c: No such file or directory. in vfprintf.c (gdb) bt #0 0x00007ffff7ad2092 in _IO_vfprintf_internal (s=0x7fffffffc870, format=<value optimized out>, ap=0x7fffffffd060) at vfprintf.c:1601 #1 0x00007ffff7ad3d00 in buffered_vfprintf (s=0x7ffff7ddb880, format=0x400970 ": %s\n", args=0x20) at vfprintf.c:2241 #2 0x00007ffff7acebce in _IO_vfprintf_internal (s=0x7ffff7ddb880, format=0x400960 "Error reading %s: %s\n", ap=0x7fffffffd060) at vfprintf.c:1306 #3 0x00007ffff7ad9368 in __fprintf (stream=0xf7ba4cd6, format=0x400970 ": %s\n") at fprintf.c:33 #4 0x00000000004007ef in main (argc=2, argv=0x7fffffffe268) at readdir.c:20 (gdb) frame 4 #4 0x00000000004007ef in main (argc=2, argv=0x7fffffffe268) at readdir.c:20 20 fprintf(stderr, "Error reading %s: %s\n", argv[i], (gdb) print argv[i] $1 = 0x7fffffffe67a "libpst-0.6.45" (gdb) print errno Cannot find thread-local variables on this target (gdb) -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages gdb depends on: ii gdbserver 7.1-1 The GNU Debugger (remote server) ii libc6 2.10.2-8 Embedded GNU C Library: Shared lib ii libexpat1 2.0.1-7 XML parsing C library - runtime li ii libncurses5 5.7+20100313-2 shared libraries for terminal hand ii libreadline6 6.1-2 GNU readline and history libraries ii python2.5 2.5.5-6 An interactive high-level object-o ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime gdb recommends no packages. Versions of packages gdb suggests: pn gdb-doc <none> (no description available) -- no debconf information -- brian m. carlson / brian with sandals: Houston, Texas, US +1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: Digital signature

