On Fri, Feb 18, 2011 at 11:14 AM, [email protected]
<[email protected]>wrote:

> Hi
>
> I was getting segmentation fault in a simple program meant to recursively
> calculate the factorial of a number (>5000). Some digging around revealed
> that it was because the stack size was limited to 1 MB.
> I added this to my /home/<username>/.bashrc
> ulimit -s unlimited
> and voila!! the program successfully calculated it upto 7000.
>
>
Blog it.

-- 
LUG@IITD - http://tinyurl.com/ycueutm

Reply via email to