On 30/01/13 02:33, Debian Bug Tracking System wrote:
This is an automatic notification regarding your Bug report
which was filed against the gdb package:

#536024: gdb gets wrong address for glibc optind variable

It has been closed by Samuel Bronson <naes...@gmail.com>.

As far as I can see this bug is *not* fixed.

john@celtic:~$ cat a.c
#include <unistd.h>

int main()
{
        printf("%p\n", &optind);
}
john@celtic:~$ gcc -g a.c
a.c: In function ‘main’:
a.c:5:2: warning: incompatible implicit declaration of built-in function 
‘printf’ [enabled by default]
john@celtic:~$ gdb a.out
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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 /home/john/a.out...done.
(gdb) b main
Breakpoint 1 at 0x400550: file a.c, line 5.
(gdb) r
Starting program: /home/john/a.out

Breakpoint 1, main () at a.c:5
5               printf("%p\n", &optind);
(gdb) p &optind
$1 = (int *) 0x7ffff7dd7130
(gdb) c
Continuing.
0x600930
[Inferior 1 (process 25283) exited with code 011]
(gdb)


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to