Bug ID 936874
Summary gdb resolves symbolic links when passing argv[0]
Classification openSUSE
Product openSUSE 13.1
Version Final
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Development
Assignee bnc-team-screening@forge.provo.novell.com
Reporter fbui@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

It looks like opensuse 13.1 is affected by this bug (opensuse 13.2 is working
fine): https://sourceware.org/bugzilla/show_bug.cgi?id=15415

Here's a simple test case:

$  rpm -q gdb
gdb-7.6.50.20130731-3.1.2.x86_64

$ cat main.c
#define _GNU_SOURCE
#include <errno.h>
#include <stdio.h>

int main(void)
{
    printf("%s\n", program_invocation_short_name);
    return 0;
}

$ ls -l
total 20
-rwxr-xr-x 1 fbui users 12659 Jul  2 12:24 a.out
-rw-r--r-- 1 fbui users   137 Jul  2 12:23 main.c
lrwxrwxrwx 1 fbui users     5 Jul  2 12:24 symlink -> a.out

$ ./symlink
symlink

$ gdb --args ./symlink
..
Reading symbols from /home/fbui/bug-gdb/a.out...done.
(gdb) r
a.out
[Inferior 1 (process 1947) exited normally]
(gdb)


Thanks.


You are receiving this mail because: