public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: gdb/2038: load error "Memory access error while loading section %s."
@ 2005-11-29  5:45 jimb
  0 siblings, 0 replies; 2+ messages in thread
From: jimb @ 2005-11-29  5:45 UTC (permalink / raw)
  To: gdb-prs, iwabuchi, nobody

Synopsis: load error "Memory access error while loading section %s."

State-Changed-From-To: open->closed
State-Changed-By: jimb
State-Changed-When: Tue Nov 29 05:45:49 2005
State-Changed-Why:
    I believe this has been fixed in the current sources, by the following change:
    
    2005-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
    
    	* target.c (target_read_memory_partial): Always initialize
    	ERR.
    	(target_write_memory_partial): Likewise.
    
    Please try a more recent version of GDB, and see if this bug still occurs.  You can find information about our nightly snapshots and anonymous CVS access on this page:
    
    http://sourceware.org/gdb/current/
    
    If the bug is not fixed there, please re-open this bug.

http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2038


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

* gdb/2038: load error "Memory access error while loading section %s."
@ 2005-11-29  4:58 iwabuchi
  0 siblings, 0 replies; 2+ messages in thread
From: iwabuchi @ 2005-11-29  4:58 UTC (permalink / raw)
  To: gdb-gnats


>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:


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

end of thread, other threads:[~2005-11-29  5:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-29  5:45 gdb/2038: load error "Memory access error while loading section %s." jimb
  -- strict thread matches above, loose matches on Subject: below --
2005-11-29  4:58 iwabuchi

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).