Operating System - HP-UX
1752761 Members
5633 Online
108789 Solutions
New Discussion юеВ

Re: HP-UX 11.23, gcc4.3.1, __cxa_throw, application coredumps

 
SOLVED
Go to solution
blackwater
Regular Advisor

Re: HP-UX 11.23, gcc4.3.1, __cxa_throw, application coredumps

Should I call sigaltstack() once right after entering main() like this:

int main()
{
sigaltstack();
// creating threads and doing real work

return 0;
}

or allocating memory for sigaltstack() and calling sigaltstack() in main() and in each thread?
Dennis Handly
Acclaimed Contributor

Re: HP-UX 11.23, gcc4.3.1, __cxa_throw, application coredumps

>Should I call sigaltstack() once right after entering main() like this:

You need one per thread. Since you don't have a stack overflow you don't need it.
blackwater
Regular Advisor

Re: HP-UX 11.23, gcc4.3.1, __cxa_throw, application coredumps

I will change the application in order to use sigwaitinfo() for handling SIGTERM and SIGINT.