This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

exp/2403: 32-bit addresses miscalculated on 64-bit platform.


>Number:         2403
>Category:       exp
>Synopsis:       32-bit addresses miscalculated on 64-bit platform.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 10 19:18:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     mostrows@gmail.com
>Release:        unknown-1.0
>Organization:
>Environment:
GDB build and runs on x86-64-linux, debuggin x86-32 bit app.
>Description:
I try to access some target program symbols and fail:

(gdb) p buf
multi-thread:target_xfer_partial (2, (null), 0x299f020,  0x0,  0x1ff960950, 4) = 0
Cannot access memory at address 0xff960950

Note that gdb is trying to look up address 0x1ff960950, not
0xff960950.  Obviously this fails as it is not a 32-bit address that is valid in this program.

The addition that overflows the 32-bit address space is at findvar.c:496.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]