Aditya Kulkarni
2004-02-02 09:17:16 UTC
Hi all,
I am developing an application which is linked with a shared library.
My piece of code runs inside a pthread using default stack size of
64KB.
I am calling a function inside the library. Unfortunately, the
function defines a 64KB automatic variable. Since the default stack
size on HPUX 11.00, 11.11 is 64KB, the stack gets overrun, and I get a
core dump.
Limitations that I am facing:
[1] The shared library which I link is shipped by someone else, who is
not in my organisation.
[2] The thread in which my piece of code runs, is created by someone
else, so I cant increase the stack size of the thread.
So, whats the solution ?
Thanks
Aditya Kulkarni
I am developing an application which is linked with a shared library.
My piece of code runs inside a pthread using default stack size of
64KB.
I am calling a function inside the library. Unfortunately, the
function defines a 64KB automatic variable. Since the default stack
size on HPUX 11.00, 11.11 is 64KB, the stack gets overrun, and I get a
core dump.
Limitations that I am facing:
[1] The shared library which I link is shipped by someone else, who is
not in my organisation.
[2] The thread in which my piece of code runs, is created by someone
else, so I cant increase the stack size of the thread.
So, whats the solution ?
Thanks
Aditya Kulkarni