[#7055] More on VC++ 2005 — Austin Ziegler <halostatue@...>

Okay. I've got Ruby compiling. I'm attempting to get everything in

17 messages 2006/01/05
[#7058] Re: More on VC++ 2005 — nobuyoshi nakada <nobuyoshi.nakada@...> 2006/01/06

Hi,

[#7084] mathn: ugly warnings — hadmut@... (Hadmut Danisch)

Hi,

22 messages 2006/01/10
[#7097] Re: mathn: ugly warnings — Daniel Berger <Daniel.Berger@...> 2006/01/10

Hadmut Danisch wrote:

[#7098] Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/10

Daniel Berger wrote:

[#7118] Re: Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/12

*Dean Wampler *<deanwampler gmail.com> writes:

[#7226] Fwd: Re: Question about massive API changes — "Sean E. Russell" <ser@...>

Hello,

23 messages 2006/01/28
[#7228] Re: Question about massive API changes — Caleb Tennis <caleb@...> 2006/01/28

>

bcc32's memory manager bug

From: "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date: 2006-01-25 05:01:48 UTC
List: ruby-core #7203
Hi.

I found serious bug of bcc32. Following code crashes.

#include <stdio.h>
#include <stdlib.h>

int main()
{
    for (int i = 0; i < 10000; ++i)
    {
        void *p = malloc(1048574); // > 1MB?

        free(p);
    }
}

And following script crashes.

s = "." * 529671

10000.times do |i|
  puts i
  GC.start
  "" << s
end

I recommend for C++Builder user. to apply following patch.

Index: Makefile.sub
===================================================================
RCS file: /src/ruby/bcc32/Makefile.sub,v
retrieving revision 1.42.2.28
diff -u -w -b -p -r1.42.2.28 Makefile.sub
--- Makefile.sub	25 Oct 2005 17:00:01 -0000	1.42.2.28
+++ Makefile.sub	17 Jan 2006 16:57:50 -0000
@@ -125,7 +125,7 @@ RFLAGS = $(iconinc)
 !ifndef EXTLIBS
 EXTLIBS =
 !endif
-LIBS = cw32i.lib import32.lib ws2_32.lib $(EXTLIBS)
+LIBS = usebormm.lib cw32i.lib import32.lib ws2_32.lib $(EXTLIBS)
 MISSING = acosh.obj crypt.obj erf.obj win32.obj
 
 !ifndef STACK


This patch tell the program to use borlndmm.dll as memory manager
instead of RTL's internal memory manager which is really buggy.

But for Free compiler user, usebormm.lib, memmgr.lib and borlndmm.dll
are not bundled there, that prevents me from commiting this patch.

Any ideas?



In This Thread

Prev Next