Skip Montanaro wrote: > > MAL> The C program can suck memory in large chunks and consume great > MAL> amounts of stack, it just doesn't dump core... (don't know what I'm > MAL> doing wrong here). > > Are you overwriting all that memory you malloc with random junk? If not, > the stack and the heap may have collided but not corrupted each other. Not random junk, but all 1s: int recurse(int depth) { char buffer[2048]; memset(buffer, 1, sizeof(buffer)); /* Call recursively */ printf("%d\n",depth); recurse(depth + 1); } main() { recurse(0); } Perhaps I need to go up a bit on the stack to trigger the collision (i.e. go down two levels, then up one, etc.) ?! -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4