linux - how to increase Stack Size of a running program in C -


i trying identify way if can increase stack size of running program after getting sigsegv. know can increase size of stack ulimit -c but, did not solve problem. because process dead. want handle situation process not killed after segfault. setrlimit() 1 way can used exceed stack size statically. don't want block more memory need.

under linux, setting higher limit stack size not commit memory process. memory paged in required.

the default stack size in quite large already. should run under debugger or produce core upon sigsegv analyze going on. might have deep recursion, or inordinate amount of local variable space, possibly via vlas allocated mistake. increasing stack space may hide problem while, not reliable solution.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -