List Info

Thread: OS X compile trouble with realloc?




OS X compile trouble with realloc?
country flaguser name
United States
2007-03-23 03:11:46

Hi all,

After getting git, and pulling, I make'd, and the end of the long
text flow I saw this:

./_build/binaries/io_static build.io
io_static(16337) malloc: *** vm_allocate(size=131072) failed (error
code=3)
io_static(16337) malloc: *** error: can't allocate region
io_static(16337) malloc: *** set a breakpoint in szone_error to debug
make: *** [addons] Bus error

I noticed no error messages during the previous text flow.

After some fiddling around, thanks Quag, I pasted this horrid message
in IRC that in Darwin, there can be problems with realloc, according
to Bob Ippolito:

> The implementation of realloc on Darwin never frees memory, so when
> using a
> large buffer size on incomplete reads you end up with lots of small
> strings that
>; actually take up a large allocation.

http://mail.python.org/pipermail/python-bugs-list/2006-March/032629.html

This could be of importance to the Io effort.

best regards,
Olle Jonsson
Copenhagen, Denmark

__._,_.___
.

__,_._,___
Re: OS X compile trouble with realloc?
country flaguser name
United States
2007-03-23 18:55:42


On Mar 23, 2007, at 1:11 AM, Olle Jonsson wrote:

> Hi all,
>;
> After getting git, and pulling, I make'd, and the end of the long
>; text flow I saw this:
>
> ./_build/binaries/io_static build.io
> io_static(16337) malloc: *** vm_allocate(size=131072) failed (error
> code=3)
> io_static(16337) malloc: *** error: can't allocate region
> io_static(16337) malloc: *** set a breakpoint in szone_error to debug
> make: *** [addons] Bus error
>
> I noticed no error messages during the previous text flow.
>
> After some fiddling around, thanks Quag, I pasted this horrid message
> in IRC that in Darwin, there can be problems with realloc, according
> to Bob Ippolito:
>
>> The implementation of realloc on Darwin never frees memory, so when
>;> using a
>> large buffer size on incomplete reads you end up with lots of small
>> strings that
>;> actually take up a large allocation.
>
> http://mail.python.org/pipermail/python-bugs-list/2006-March/
> 032629.html
>
> This could be of importance to the Io effort.

Thank's Olle. I haven't seen that problem on OSX, but I'll look into
it. Are you on OSX 10.4?

- Steve

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )