Your message dated Tue, 29 Jan 2013 20:28:24 -0500 with message-id <[email protected]> and subject line Re: Bug#536024: gdb gets wrong address for glibc optind variable has caused the Debian Bug report #536024, regarding can't "p environ" to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 536024: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=536024 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: gdb Version: 4.18.19990928-1 Severity: normal I wrote envstuff.c: #include <stdlib.h> #include <stdio.h> extern char **environ; int main(int argc, char **argv, char **env) { printf("argc=%d argv=%p env=%p environ=%p\n", argc, argv, env, environ); exit(0); } and compiled it (gcc -ggdb envstuff.c -o envstuff) It produces this output: bash$ ./envstuff argc=1 argv=0xbffff8d4 env=0xbffff8dc environ=0xbffff8dc but when in gdb, I get: (gdb) b main Breakpoint 1 at 0x8048486: file envstuff.c, line 8. (gdb) r Starting program: /usr/home/shaslam/perltest/envstuff Breakpoint 1, main (argc=1, argv=0xbffff8c4, env=0xbffff8cc) at envstuff.c:8 8 printf("argc=%d argv=%p env=%p environ=%p\n", argc, argv, env, environ); (gdb) p env $1 = (char **) 0xbffff8cc (gdb) p environ $2 = (char **) 0x0 ? bash$ gcc -v Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs gcc version 2.95.2 20000116 (Debian GNU/Linux) SRH -- System Information Debian Release: 2.2 Architecture: i386 Kernel: Linux hell 2.2.14 #1-DellLatCPi Thu Jan 6 20:47:36 GMT 2000 i686 Versions of packages gdb depends on: ii libc6 2.1.3-2 GNU C Library: Shared libraries an ii libncurses4 4.2-8 Shared libraries for terminal hand
--- End Message ---
--- Begin Message ---Package: gdb Version: 7.4.1-1 This bug seems to have vanished at some point; I tried the testcase provided at <http://sourceware.org/bugzilla/show_bug.cgi?id=8588> and got the correct result. -- Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
--- End Message ---

