Operating System - HP-UX
1753940 Members
9514 Online
108811 Solutions
New Discussion юеВ

Program received signal SIGSEGV, Segmentation fault

 
suniljohns
New Member

Program received signal SIGSEGV, Segmentation fault

Hi,

I am getting this below error while executing a code that was earlier working.

Program received signal SIGSEGV, Segmentation fault
si_code: 2 - SEGV_ACCERR - Invalid Permissions for object.
updateTranAmt () at tmp_0162.cxx:1
1 tmp_0162.cxx: No such file or directory.
in tmp_0162.cxx

Please explain why this error comes.
updateTranAmt is a global function that is being called by another function.
2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: Program received signal SIGSEGV, Segmentation fault

You need to use a debugger to look at your application and figure out why you have a bad pointer. The first thing to do is get a stack trace.
If using threads, you could have a thread stack overflow.
Andre-Marcel Hellmund
Frequent Advisor

Re: Program received signal SIGSEGV, Segmentation fault

http://www.hp.com/go/wdb is a good starting point for debugging with a lot of documentation on howto use wdb