Operating System - HP-UX
1827862 Members
1513 Online
109969 Solutions
New Discussion

sendsig: useracc failed. - possible stack overflow

 
Adarsh Thampan
Advisor

sendsig: useracc failed. - possible stack overflow

Hi ,

My program throws the following output and dumps.

sendsig: useracc failed. 0x20000000658afc00 0x00000000005000

Pid 15708 was killed due to failure in writing the signal context- possible stack overflow.
Illegal instruction


The core file analysis is attached.


We have used pthreads and I have observed that the stack size in the core is 524848 ( calculated based on 1st frame SP - last frame SP ) .


1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: sendsig: useracc failed. - possible stack overflow

It looks like you have already figured out your problem. You need a larger thread stack.
Note: 1/2 of your pthread_attr_setstacksize(3) goes to the RSE stack.