public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/18730] New: verify correct __init__.py is being loaded
@ 2015-07-28 23:31 dje at google dot com
  0 siblings, 0 replies; only message in thread
From: dje at google dot com @ 2015-07-28 23:31 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18730

            Bug ID: 18730
           Summary: verify correct __init__.py is being loaded
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com
  Target Milestone: ---

If one happens to start a gdb from a build tree, or a staging area (e.g., make
install DESTDIR=/build/gdb/staging), and there's some installation error, gdb
may end up using /usr/share/gdb/python/gdb/__init__py (or whatever the
configured data dir is). There's no guarantee that the currently installed
__init__.py is compatible with the gdb being run.

Either gdb needs to not fallback to using the configured data-dir if it can't
find data-dir relative to its current location
(e.g., /build/gdb/staging/usr/bin/gdb -> /build/gdb/staging/usr/share/gdb, or
whatever),
or we should at least verify that the data-dir we find is for the same version
of gdb.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-28 23:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-28 23:31 [Bug python/18730] New: verify correct __init__.py is being loaded dje at google dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).