Do you have a complete program that demonstrates the problem?
32MB seems pretty trivial for a modern desktop or laptop computer, so if you are running this on an rdinary computer I wouldn't jump to the conclusion it ran out of memory, and I wouldn't even ask about what (RAM, HDD, kernel parameters, etc.) might limit memory.
More likely it is some other bug in the code.
If you are running this on some very limited embedded system or an obsolete computer, then you might consider memory limits.
Edit: I looked at your other thread
There the problem clearly is that you ran out of memory, because you tried to allocate an impossibly large amount. But now you're asking about a seg fault. Your post implies you think it is still a memory capacity problem, but the difference in results (seg fault vs. bad alloc) should tell you that you are looking at a different kind of problem.