Re: writing to freed memory--issues
- From: Jordan Abel <random832@xxxxxxxxx>
- Date: 27 Mar 2006 20:15:42 GMT
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.
.
- Follow-Ups:
- Re: writing to freed memory--issues
- From: bill pursell
- Re: writing to freed memory--issues
- From: bill pursell
- Re: writing to freed memory--issues
- References:
- writing to freed memory--issues
- From: bill pursell
- writing to freed memory--issues
- Prev by Date: Re: writing to freed memory--issues
- Next by Date: Re: feature tests for pthreads implementation and configuration?
- Previous by thread: Re: writing to freed memory--issues
- Next by thread: Re: writing to freed memory--issues
- Index(es):
Relevant Pages
|