bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another memory overrun bug in CVS arm-elf-ld (lang_gc_sections)


From: Michael Checky
Subject: Re: Another memory overrun bug in CVS arm-elf-ld (lang_gc_sections)
Date: Fri, 20 Jun 2003 14:26:29 -0500

I will agree that it could be a newlib bug, but memory allocation is only
checked when malloc/calloc/realloc/free is called.  So it's possible that
the overrun was only first detected while inside newlib, rather than
occuring inside newlib.

I realize that I didn't give you much to go on, but I don't think creating
a small test case will be easy to do.  I could poke around with gdb if you
give me some areas to check.  I could create an archive of all the object
files, but I would have to ftp it to you.

One other hint, if I had let it run, the following error messages are
produced:

vtable for cIncomingChannel: discarded in section `.gnu.linkonce.r.
_ZTV16cIncomingChannel' from libgw.a(cIncomingChannel.o)
/opt/ecos/gnutools-cvs/bin/arm-elf-ld: link errors found, deleting
executable `gw.elf'

What ever I can do to help.
Michael Checky



|---------+----------------------------------------------->
|         |                              Alan Modra       |
|         |                              <address@hidden|
|         |                              et.au>           |
|         |                                               |
|         |                              06/19/2003 06:37 |
|         |                              PM               |
|         |                                               |
|         |                                               |
|         |                                               |
|---------+----------------------------------------------->
  
>------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                             |
  | To:   Michael Checky <address@hidden>                                       
                                              |
  | cc:   address@hidden                                                        
                                                       |
  | Subject: Re: Another memory overrun bug in CVS arm-elf-ld 
(lang_gc_sections)                                                             |
  
>------------------------------------------------------------------------------------------------------------------------------------------|




On Thu, Jun 19, 2003 at 01:22:18PM -0500, Michael Checky wrote:
> I've found another memory overrun bug in CVS arm-elf-ld.  This time in

Hmm.

> #8  0x610a7b78 in fclose (fp=0xa056d5c) at
/opt/cvs/cygwin/src/newlib/libc/stdio/fclose.c:80
> #9  0x0046f8df in bfd_cache_delete (abfd=0xa057848) at
/opt/cvs/binutils/src/bfd/cache.c:176
> #10 0x0046f8ad in close_one () at /opt/cvs/binutils/src/bfd/cache.c:165
> #11 0x0046fba5 in bfd_open_file (abfd=0xa0559c8) at
/opt/cvs/binutils/src/bfd/cache.c:268

This may be a newlib bug, since you're deep in fclose when the problem
occurs.  Whatever it is, it is going to require some skill with gdb to
find, and probably will only occur if you have more than
BFD_CACHE_MAX_OPEN (ie. 10) files open by ld.

--
Alan Modra
IBM OzLabs - Linux Technology Centre









reply via email to

[Prev in Thread] Current Thread [Next in Thread]