My program is not dumping core when hitting a segmentation violation inside a thread.
However, it dumps core when the segv occurs within main.
Any ideas on how to diagnose this?
AIX 5.3
My program is not dumping core when hitting a segmentation violation inside a thread.
However, it dumps core when the segv occurs within main.
Any ideas on how to diagnose this?
AIX 5.3
Step through a debugger with your code.
I introduced the segv intentionally via the following
char *x;
x=0
*x = 5;
But no core file is generated, when this is in one of the threads, but in main I get a core file.
So my question is why isn't a core generated for the threads segmentation violation?
Hope that clarifies the question.
thanks for any input.
Ken
Can you post the threads version of the entire code.
Unfortunately no.
There is nothing special going on though.