[Bug 1173562] Re: gdb resolves symbolic links for executables in argv[0]
apparently fixed in 14.04 LTS ** Changed in: gdb (Ubuntu) Status: Confirmed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1173562 Title: gdb resolves symbolic links for executables in argv[0] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1173562/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1173562] Re: gdb resolves symbolic links for executables in argv[0]
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gdb (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1173562 Title: gdb resolves symbolic links for executables in argv[0] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1173562/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1173562] Re: gdb resolves symbolic links for executables in argv[0]
Bug report from upstream shows the issue has just been fixed: http://sourceware.org/bugzilla/show_bug.cgi?id=15415 ** Bug watch added: Sourceware.org Bugzilla #15415 http://sourceware.org/bugzilla/show_bug.cgi?id=15415 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1173562 Title: gdb resolves symbolic links for executables in argv[0] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1173562/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1173562] Re: gdb resolves symbolic links for executables in argv[0]
Here is an example for a program relying on its argv[0] name: /usr/bin/latex is a symbolic link to /usr/bin/pdftex, and pdftex loads a format depending on the name under which it has been called. As a result, latex '\stop' will load the latex.fmt format and finish processing while the same will fail under gdb since argv[0] is being passed as /usr/bin/pdftex instead of /usr/bin/latex: dak@lola:/tmp$ latex '\stop' This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) restricted \write18 enabled. entering extended mode LaTeX2e 2011/06/27 Babel v3.8m and hyphenation patterns for english, dumylang, nohyphenation, bu lgarian, ukrainian, russian, loaded. No pages of output. Transcript written on texput.log. dak@lola:/tmp$ gdb latex GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu Copyright (C) 2013 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 i686-linux-gnu. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/bin/pdftex...(no debugging symbols found)...done. (gdb) run '\stop' Starting program: /usr/bin/pdftex '\stop' This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) restricted \write18 enabled. entering extended mode ! Undefined control sequence. * \stop ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1173562 Title: gdb resolves symbolic links for executables in argv[0] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1173562/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs