Re: writing to freed memory--issues



On 2006-03-27, bill pursell <bill.pursell@xxxxxxxxx> wrote:
1) what is special about 33790? Why does the segfault keep occurring
at that point?

I don't know if this is why it's special, but 33790=32768+1024-2

2) Why does the fault occur at idx==0 for SIZE between 2^15 and 2^27?

magic.

3) Why does malloc fail for 2^28 and 2^29, but succeed for 2^30?

magic. maybe 2^30 is where it switches to using mmap. no idea.

When you play with undefined behavior, sometimes you get funny results.
.



Relevant Pages

  • Re: writing to freed memory--issues
    ... maybe 2^30 is where it switches to using mmap. ... When you play with undefined behavior, sometimes you get funny results. ...
    (comp.os.linux.development.apps)
  • Re: writing to freed memory--issues
    ... maybe 2^30 is where it switches to using mmap. ... When you play with undefined behavior, sometimes you get funny results. ...
    (comp.os.linux.development.apps)
  • Re: Where & how to deallocate resources in Python C extension
    ... As part of the initialization ... it makes some calls to mmap, I am wondering should I be making ... The kernel should remove the mapping when your process exits anyway -- ... cleanup in your extension's module under some funny name. ...
    (comp.lang.python)
  • Re: Ping: MartinM
    ... my misconception. ... I was under the impression you had to do funny things with switches and soldering irons. ...
    (uk.rec.cycling)
  • Re: The real Woodstock (for what its worth)
    ... uh oh, he switches over to the willy-dozer, PERFECT!...LOL, it wouldn't ... be near as funny if you weren't serious about your silly handles! ... we better be on our toes now...willy-dozer is loose and on the ...
    (alt.gathering.rainbow)