public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug shlibs/11776] New: solib-svr4 with remote target assumes qOffsets packet is supported
@ 2010-06-30 19:48 mostrows at vmware dot com
  2010-06-30 20:37 ` [Bug shlibs/11776] " jan dot kratochvil at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mostrows at vmware dot com @ 2010-06-30 19:48 UTC (permalink / raw)
  To: gdb-prs

svr4_relocate_main_executable() bails out without doing anything if it detects
prior existing relocation offsets have been applied.  A comment there states
that this is done so that preference is given to relocation offsets specified by
qOffsets packet processing, which occurs earlier.

Now suppose I start gdb and do:

1. Issue "target remote /dev/ttyS0"
2. GDB attaches, reads auxv and relocates via svr4_relocate_main_executable()
3. Issue "detach"
4. Issue "target remote /dev/ttyS1"
5. GDB attaches, reads auxv (relocation is different than above)
6. GDB bails out of svr4_relocate_main_executable() without relocating.
7. GDB uses the relocation data from the original connection, not the current one.

Note that if the remote stub supports "qOffsets" (not required), then the
processing of that response relocates the executable using that mechanism.

-- 
           Summary: solib-svr4 with remote target assumes qOffsets packet is
                    supported
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: shlibs
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: mostrows at vmware dot com
                CC: gdb-prs at sourceware dot org,jan dot kratochvil at
                    redhat dot com,msnyder at vmware dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11776

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug shlibs/11776] solib-svr4 with remote target assumes qOffsets packet is supported
  2010-06-30 19:48 [Bug shlibs/11776] New: solib-svr4 with remote target assumes qOffsets packet is supported mostrows at vmware dot com
@ 2010-06-30 20:37 ` jan dot kratochvil at redhat dot com
  2010-06-30 21:45 ` msnyder at sonic dot net
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-06-30 20:37 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From jan dot kratochvil at redhat dot com  2010-06-30 20:36 -------
I believe this problem should be fixed by:
ping: [patch 6/6] PIE: Fix back re-run
http://sourceware.org/ml/gdb-patches/2010-06/msg00236.html
[ You should apply all 6 patches of the series. ]

It should get finally checked-in these days after 3 months of reviewing process.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11776

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug shlibs/11776] solib-svr4 with remote target assumes qOffsets packet is supported
  2010-06-30 19:48 [Bug shlibs/11776] New: solib-svr4 with remote target assumes qOffsets packet is supported mostrows at vmware dot com
  2010-06-30 20:37 ` [Bug shlibs/11776] " jan dot kratochvil at redhat dot com
@ 2010-06-30 21:45 ` msnyder at sonic dot net
  2010-06-30 21:46 ` msnyder at sonic dot net
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: msnyder at sonic dot net @ 2010-06-30 21:45 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mostrows at vmware dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11776

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug shlibs/11776] solib-svr4 with remote target assumes qOffsets packet is supported
  2010-06-30 19:48 [Bug shlibs/11776] New: solib-svr4 with remote target assumes qOffsets packet is supported mostrows at vmware dot com
  2010-06-30 20:37 ` [Bug shlibs/11776] " jan dot kratochvil at redhat dot com
  2010-06-30 21:45 ` msnyder at sonic dot net
@ 2010-06-30 21:46 ` msnyder at sonic dot net
  2010-07-01  4:21 ` jan dot kratochvil at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: msnyder at sonic dot net @ 2010-06-30 21:46 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From msnyder at sonic dot net  2010-06-30 21:46 -------
Jan -- will this change be in time for the 7.2 release?


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11776

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug shlibs/11776] solib-svr4 with remote target assumes qOffsets packet is supported
  2010-06-30 19:48 [Bug shlibs/11776] New: solib-svr4 with remote target assumes qOffsets packet is supported mostrows at vmware dot com
                   ` (2 preceding siblings ...)
  2010-06-30 21:46 ` msnyder at sonic dot net
@ 2010-07-01  4:21 ` jan dot kratochvil at redhat dot com
  2010-07-05 18:05 ` jan dot kratochvil at redhat dot com
  2010-07-05 18:07 ` jan dot kratochvil at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-07-01  4:21 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From jan dot kratochvil at redhat dot com  2010-07-01 04:21 -------
Yes, it is listed as a 7.2 blocker:
http://sourceware.org/gdb/wiki/GDB_7.2_Release


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11776

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug shlibs/11776] solib-svr4 with remote target assumes qOffsets packet is supported
  2010-06-30 19:48 [Bug shlibs/11776] New: solib-svr4 with remote target assumes qOffsets packet is supported mostrows at vmware dot com
                   ` (3 preceding siblings ...)
  2010-07-01  4:21 ` jan dot kratochvil at redhat dot com
@ 2010-07-05 18:05 ` jan dot kratochvil at redhat dot com
  2010-07-05 18:07 ` jan dot kratochvil at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-07-05 18:05 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2010-07-05 18:04 -------
Subject: Bug 11776

CVSROOT:	/cvs/src
Module name:	src
Changes by:	jkratoch@sourceware.org	2010-07-05 18:04:33

Modified files:
	gdb            : ChangeLog solib-svr4.c 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.base: break-interp.exp 

Log message:
	gdb/
	Fix re-run of PIE executable, PR shlibs/11776.
	* solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
	the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
	
	gdb/testsuite/
	Fix re-run of PIE executable, PR shlibs/11776.
	* gdb.base/break-interp.exp (test_ld): Turn off "disable-randomization".
	Remove $displacement_main to match the solib-svr4.c change.  New "kill"
	and re-"run" of the inferior.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11966&r2=1.11967
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/solib-svr4.c.diff?cvsroot=src&r1=1.136&r2=1.137
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2375&r2=1.2376
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/break-interp.exp.diff?cvsroot=src&r1=1.17&r2=1.18



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware dot|jan dot kratochvil at redhat
                   |org                         |dot com
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1


http://sourceware.org/bugzilla/show_bug.cgi?id=11776

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug shlibs/11776] solib-svr4 with remote target assumes qOffsets packet is supported
  2010-06-30 19:48 [Bug shlibs/11776] New: solib-svr4 with remote target assumes qOffsets packet is supported mostrows at vmware dot com
                   ` (4 preceding siblings ...)
  2010-07-05 18:05 ` jan dot kratochvil at redhat dot com
@ 2010-07-05 18:07 ` jan dot kratochvil at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-07-05 18:07 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From jan dot kratochvil at redhat dot com  2010-07-05 18:07 -------
The bug should be fixed now.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=11776

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-05 18:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-30 19:48 [Bug shlibs/11776] New: solib-svr4 with remote target assumes qOffsets packet is supported mostrows at vmware dot com
2010-06-30 20:37 ` [Bug shlibs/11776] " jan dot kratochvil at redhat dot com
2010-06-30 21:45 ` msnyder at sonic dot net
2010-06-30 21:46 ` msnyder at sonic dot net
2010-07-01  4:21 ` jan dot kratochvil at redhat dot com
2010-07-05 18:05 ` jan dot kratochvil at redhat dot com
2010-07-05 18:07 ` jan dot kratochvil at redhat 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).