Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: ilink64 error Overrun on linker heap: dwarf_str


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 7 - Last Post: Dec 17, 2015 4:19 AM Last Post By: Oliver Weinheimer
Andre N

Posts: 3
Registered: 4/28/08
ilink64 error Overrun on linker heap: dwarf_str  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2013 6:43 AM
Hi
I have this error with C++Builder XE4 Update 1:

The "ILINK32" task is using "ilink32" from "C:\Program Files (x86)\Embarcadero\RAD Studio\11.0\bin\ilink64.exe". (TaskId:721)
Turbo Incremental Link64 6.50 Copyright (c) 1997-2013 Embarcadero Technologies, Inc. (TaskId:721)
Overrun on linker heap: dwarf_str (TaskId:721)
Linker Heaps (TaskId:721)
(TaskId:721)
info 0x0990e000 0x0a000000 (TaskId:721)
code 0x014f5000 0x08000000 (TaskId:721)
rodata 0x00064000 0x06000000 (TaskId:721)
data 0x001e2000 0x08000000 (TaskId:721)
bss 0x08000000 0x08000000 (TaskId:721)
dwarf_aranges 0x00010000 0x00200000 (TaskId:721)
dwarf_macinfo 0x00010000 0x00200000 (TaskId:721)
dwarf_pubtypes 0x00871000 0x02000000 (TaskId:721)
dwarf_info 0x05edc000 0x08000000 (TaskId:721)
dwarf_abbrev 0x000ba000 0x00200000 (TaskId:721)
dwarf_line 0x00583000 0x02000000 (TaskId:721)
dwarf_str 0x08026000 0x08000000 (TaskId:721)
dwarf_loc 0x00033000 0x02000000 (TaskId:721)
dwarf_ranges 0x00028000 0x02000000 (TaskId:721)
C:\Program Files (x86)\Embarcadero\RAD Studio\11.0\Bin\CodeGear.Cpp.Targets(2751,5): error : Fatal: Out of memory
The command exited with code 2. (TaskId:721)

But if I increase dwarf_str does not solve the problem. Still Fatal: Out of memory

If I increase dwarf_str to -GHdwarf_str=0x08000001 I lose the report on Linker Heaps memory and still a fatal.

Is there a limit to the dwarf_str memory ?

TIA.
Kaz Nishimura


Posts: 21
Registered: 5/4/00
Re: ilink64 error Overrun on linker heap: dwarf_str  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 26, 2013 1:17 AM   in response to: Andre N in response to: Andre N
It looks that 0x08000000 bytes are reserved but 0x08026000 are actually required. So you will have to specify at least 0x08026000. How about 0x08100000 or 0x0900000?

Andre N wrote:
dwarf_str 0x08026000 0x08000000 (TaskId:721)

--
Working on the Mercurial Integration Plug-in for RAD Studio:
https://bitbucket.org/kazssym/hgbds
Andre N

Posts: 3
Registered: 4/28/08
Re: ilink64 error Overrun on linker heap: dwarf_str  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 26, 2013 5:23 AM   in response to: Kaz Nishimura in response to: Kaz Nishimura
Kaz Nishimura wrote:
It looks that 0x08000000 bytes are reserved but 0x08026000 are actually required. So you will have to specify at least 0x08026000. How about 0x08100000 or 0x0900000?

The default value is 0x06000000. Above 0x08000000 you lose the linker report.
if you increase the mem value, -GHdwarf_str=0x20000000 , still have a fatal but since I have no report I don't know why.

The linker report disappears for values above dwarf_str=0x08000000. Any reason ?
Kaz Nishimura


Posts: 21
Registered: 5/4/00
Re: ilink64 error Overrun on linker heap: dwarf_str  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 26, 2013 9:15 AM   in response to: Andre N in response to: Andre N
I am not sure but you might be able to make space by reducing other not-so-much-used heaps. The total heap size can be limited to the 32-bit process memory limit. ILINK64 looks quite bad in memory management.

Andre N wrote:
Kaz Nishimura wrote:
It looks that 0x08000000 bytes are reserved but 0x08026000 are actually required. So you will have to specify at least 0x08026000. How about 0x08100000 or 0x0900000?

The default value is 0x06000000. Above 0x08000000 you lose the linker report.
if you increase the mem value, -GHdwarf_str=0x20000000 , still have a fatal but since I have no report I don't know why.

The linker report disappears for values above dwarf_str=0x08000000. Any reason ?

--
Working on the Mercurial Integration Plug-in for RAD Studio:
https://bitbucket.org/kazssym/hgbds
Andre N

Posts: 3
Registered: 4/28/08
Re: ilink64 error Overrun on linker heap: dwarf_str  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 1, 2013 1:52 PM   in response to: Kaz Nishimura in response to: Kaz Nishimura
Kaz Nishimura wrote:
I am not sure but you might be able to make space by reducing other not-so-much-used heaps. The total heap size can be limited to the 32-bit process memory limit. ILINK64 looks quite bad in memory management.
Thanks, but no, it didn't help.
Borja Serrano

Posts: 172
Registered: 1/10/13
Re: ilink64 error Overrun on linker heap: dwarf_str  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 2, 2013 6:55 AM   in response to: Andre N in response to: Andre N
Have you tried increasing one and decreasing another one?

Andre N wrote:
Kaz Nishimura wrote:
I am not sure but you might be able to make space by reducing other not-so-much-used heaps. The total heap size can be limited to the 32-bit process memory limit. ILINK64 looks quite bad in memory management.
Thanks, but no, it didn't help.
Young Ryang

Posts: 1
Registered: 9/14/08
Re: ilink64 error Overrun on linker heap: dwarf_str  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2014 2:58 PM   in response to: Borja Serrano in response to: Borja Serrano
BUMP!

I'm running into the same issue. When I try to increase the dwarf_str heap to greater than 0x08000000, the IDE instantly locks up with:

[ilink64 Error] Fatal:Malloc of 65536 bytes failed in .\Win64\Debug\Output\ProjectName.ildw_str, line 6.

Even if the heap size is 0x08000001, I get the same error. My problem is that if I don't have the size greater than 0x08000000, I get an out of memory error. If I increase the size of the heap, I get the other error so I'm stuck basically. Has anyone been able to increase the size of dwarf_str greater than 0x08000000?
Oliver Weinheimer

Posts: 73
Registered: 8/20/04
Re: ilink64 error Overrun on linker heap: dwarf_str  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 17, 2015 4:16 AM   in response to: Andre N in response to: Andre N
This thread is 2,5 years old. ilink64 has still the same problems. I am convinced if I dig deeper I will find the same problems for ilink32 - 3 or 4 or more years ago. It is more than anoying! Nobody cares about - no information - no development - this bug is under the top 10 of popular issues - since a long long long time!

see e.g. https://quality.embarcadero.com/browse/RSP-11737
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02