Re: Big memory leak in division operator example !

new topic     » goto parent     » topic index » view thread      » older message » newer message

On OpenEuphoria.org's Linux machine I see your reported leak
when I run exu for 3.1, but not when I run exu for 3.0.0
Perhaps someone can test some pre-3.1 versions of Euphoria for Linux.

I don't see a leak on Windows or DOS, so I don't think
this is a case of incorrect reference counting, which
would be a cross-platform issue.

I'm not sure that you can trust all the details reported
by valgrind, since Euphoria stores pointers to 
f.p. numbers and sequences by shifting the address to
the right by 3 bits, since it "knows" that all allocated blocks
will be on 8-byte (000) boundaries. valgind can't possibly know
that Euphoria is doing this, or take it into account.

I'm guessing something changed recently that may have upset
the "dirty" knowledge that Euphoria for Linux uses regarding
malloc(). e.g. it assumes that the length of a malloc'd block
is stored just before the block.

I don't have time to look at this any further right now.

Matt - did you change something regarding the use of malloc
on Linux? Or was it just for your version of FreeBSD?

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu