gdb/2038: load error "Memory access error while loading section %s."

iwabuchi@sec.co.jp iwabuchi@sec.co.jp
Tue Nov 29 04:58:00 GMT 2005


>Number:         2038
>Category:       gdb
>Synopsis:       load error "Memory access error while loading section %s."
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 29 04:58:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     iwabuchi@sec.co.jp
>Release:        gdb 6.3
>Organization:
>Environment:
cygwin 
gcc 3.4.4(cygwin special)(gdc 0.12, using dmd 0.125)
>Description:
When I load a file which has size over 512byte by "load" command, fail the command with error message "Memory access error while loading section %s."

This message is outputed at symfile.c:1499, when the valiable "err" is set to != 0 in the function "target_write_memory_partial".
However, if the routine in the function "target_write_memory_partial" branch off to "target_xfer_partial", "err" is not setted.
So, the "err" is refferd without initialization at symfile.c:1457.

(symfile.c revision 1.162)
>How-To-Repeat:

>Fix:

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



More information about the Gdb-prs mailing list