Re: writing to freed memory--issues



Jordan Abel wrote:


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.

Actually, this one is trivial. The malloc wasn't allocating 2^30, it
was allocating 0, since SIZE*sizeof(int) == 1<<32 == 0.

.



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: Physicans Nightmare Comes True! Patients In Charge of The Place!
    ... theatre[the mercer complex] and my technical crew put the show in. ... i had worked on a megan terry play called people vs ranchman that devane ... "A Funny Thing That Happened On The Way To The Forum". ...
    (alt.med.fibromyalgia)
  • Re: The King is Gone. The Regency has been Declared!
    ... Though I would say channeling Ethan will never be funny, unless it's in a ryb-esque way. ... And which had pretty well dropped off the face of RAA/RAAM by 2000, because we'd all had our laffs, and, like every other craze that had us laffing, we got bored with it, found something else to play with, realized there wasn't, and got back to work on topic. ... We've got more interesting things to talk about in 2006, now that Clinton isn't president, there's more anime to talk about than what you get raw at the club or dig up on Suncoast shelves, AOL is now throwing itself on our tender mercies, and the Internet is more than just what Al Gore invented anymore. ...
    (rec.arts.anime.misc)
  • Re: not how this works
    ... they got really drunk, harassed the pretty waitres etc. before one ... player got this look, and he called the guy close. ... but "funny" guy reacted with "ARE YOU KIDDING ME! ... play private parties and weddings. ...
    (rec.music.makers.guitar.jazz)