[Bug 1173562] [NEW] gdb resolves symbolic links for executables in argv[0]

David Kastrup dak at gnu.org
Sat Apr 27 11:26:47 UTC 2013


Public bug reported:

Calling gdb on an executable that is a symbolic link will pass the
target of the symbolic link rather than the specified link as argv[0] to
the program.

As a result, if the program relies on the contents of argv[0] (for
example, for figuring out paths relative to the executable or making
decisions based on the name the executable has been called under),
debugging fails.

This seems to be a problem newly introduced in Raring.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: gdb 7.6~20130417-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-19.29-generic 3.8.8
Uname: Linux 3.8.0-19-generic i686
ApportVersion: 2.9.2-0ubuntu8
Architecture: i386
Date: Sat Apr 27 13:22:35 2013
InstallationDate: Installed on 2011-10-14 (560 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111011)
MarkForUpload: True
SourcePackage: gdb
UpgradeStatus: Upgraded to raring on 2013-04-05 (21 days ago)

** Affects: gdb (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 raring

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gdb in Ubuntu.
https://bugs.launchpad.net/bugs/1173562

Title:
  gdb resolves symbolic links for executables in argv[0]

Status in “gdb” package in Ubuntu:
  New

Bug description:
  Calling gdb on an executable that is a symbolic link will pass the
  target of the symbolic link rather than the specified link as argv[0]
  to the program.

  As a result, if the program relies on the contents of argv[0] (for
  example, for figuring out paths relative to the executable or making
  decisions based on the name the executable has been called under),
  debugging fails.

  This seems to be a problem newly introduced in Raring.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: gdb 7.6~20130417-0ubuntu1
  ProcVersionSignature: Ubuntu 3.8.0-19.29-generic 3.8.8
  Uname: Linux 3.8.0-19-generic i686
  ApportVersion: 2.9.2-0ubuntu8
  Architecture: i386
  Date: Sat Apr 27 13:22:35 2013
  InstallationDate: Installed on 2011-10-14 (560 days ago)
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111011)
  MarkForUpload: True
  SourcePackage: gdb
  UpgradeStatus: Upgraded to raring on 2013-04-05 (21 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1173562/+subscriptions




More information about the foundations-bugs mailing list