Operating System - HP-UX
1753857 Members
7621 Online
108809 Solutions
New Discussion юеВ

Re: Program terminated with signal 11, Segmentation fault. SEGV_ACCERR - Invalid Permissions for object

 
zfm_1
Occasional Advisor

Program terminated with signal 11, Segmentation fault. SEGV_ACCERR - Invalid Permissions for object

I need some help as My program is randomly crash with ├в Program terminated with signal 11, Segmentation fault. SEGV_ACCERR - Invalid Permissions for object├в ,
The system is
HP-UX itanium B.11.23 U ia64 4097254385 unlimited-user license
The output of the gdb the CORE file is in the attachment
thanks for help in advance
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: Program terminated with signal 11, Segmentation fault. SEGV_ACCERR - Invalid Permissions for object

Are you sure the executable matches the core file?
Typically you don't get signal 11 on:
0x41e6070:0 <:soap>: mov r40=r8

It would also be helpful if you supplied a register dump:
info reg
zfm_1
Occasional Advisor

Re: Program terminated with signal 11, Segmentation fault. SEGV_ACCERR - Invalid Permissions for object

hi dennis, here is the output of info registers
(gdb) info registers
pr0: 0x1
pr1: 0
pr2: 0
pr3: 0
pr4: 0
pr5: 0
pr6: 0x1
pr7: 0x1
pr8: 0x1
pr9: 0x1
pr10: 0x1
pr11: 0x1
pr12: 0x1
pr13: 0
pr14: 0x1
pr15: 0x1
pr16: 0
pr17: 0
pr18: 0
pr19: 0
pr20: 0
pr21: 0
pr22: 0
---Type to continue, or q to quit---
pr23: 0
pr24: 0
pr25: 0
pr26: 0
pr27: 0
pr28: 0
pr29: 0
pr30: 0
pr31: 0
pr32: 0
pr33: 0
pr34: 0
pr35: 0
pr36: 0
pr37: 0
pr38: 0
pr39: 0
pr40: 0
pr41: 0
pr42: 0
pr43: 0
pr44: 0
pr45: 0
---Type to continue, or q to quit---
pr46: 0
pr47: 0
pr48: 0
pr49: 0
pr50: 0
pr51: 0
pr52: 0
pr53: 0
pr54: 0
pr55: 0
pr56: 0
pr57: 0
pr58: 0
pr59: 0
pr60: 0
pr61: 0
pr62: 0
pr63: 0
gr0: 0 natr0: 0
gr1: 0x2000000040011a88 natr1: 0
gr2: 0 natr2: 0
gr3: 0xd8c1 natr3: 0
gr4: 0 natr4: 0
---Type to continue, or q to quit---
gr5: 0 natr5: 0
gr6: 0 natr6: 0
gr7: 0 natr7: 0
gr8: 0 natr8: 0
gr9: 0 natr9: 0
gr10: 0x20000000403b3afb natr10: 0
gr11: 0 natr11: 0
gr12: 0x2000000077380fe0 natr12: 0
gr13: 0x20000000402d7d30 natr13: 0
gr14: 0x406c0ca natr14: 0
gr15: 0x406c0fc natr15: 0
gr16: 0x7c natr16: 0
gr17: 0x20000000403b3ac9 natr17: 0
gr18: 0x22 natr18: 0
gr19: 0x20000000403b3afc natr19: 0
gr20: 0x5 natr20: 0
gr21: 0x6 natr21: 0
gr22: 0 natr22: 0
gr23: 0 natr23: 0
gr24: 0 natr24: 0
gr25: 0 natr25: 0
gr26: 0x402d48ec00000000 natr26: 0
gr27: 0x2000000040322050 natr27: 0
---Type to continue, or q to quit---
gr28: 0xfffffff300000000 natr28: 0
gr29: 0x14cd49a327e natr29: 0
gr30: 0xe0000001025e02c0 natr30: 0
gr31: 0xc000000000000491 natr31: 0
gr32: 0x406be40 natr32: 0
gr33: 0x200000014001f274 natr33: 0
gr34: 0x2000000077380ff0 natr34: 0
gr35: 0x401974f0 natr35: 0
gr36: 0x200000014001f274 natr36: 0
gr37: 0x2000000077380ff0 natr37: 0
gr38: 0x40322010 natr38: 0
gr39: 0x3 natr39: 0
gr40: 0 natr40: 0
gr41: 0 natr41: 0
gr42: 0x403b3ac8 natr42: 0
gr43: 0x406c0ca natr43: 0
gr44: 0x403b2740 natr44: 0
gr45: 0x2000000040011a88 natr45: 0
gr46: 0xc000000000000309 natr46: 0
gr47: 0x4078620 natr47: 0
gr48: 0x403b3ac8 natr48: 0
gr49: 0x406c0ca natr49: 0
gr50: 0x20000000400120b0 natr50: 0
---Type to continue, or q to quit---
gr51: 0x40322010 natr51: 0
gr52: 0x2000000040011a88 natr52: 0
gr53: 0xc000000000000816 natr53: 0
br0: 0x41e6050
br1: 0
br2: 0
br3: 0
br4: 0
br5: 0
br6: 0x60000000c07d4840
br7: 0xe00000014c0020c0
rsc: 0x1f
bsp: 0x20000000772800d8
bspst: 0x20000000772800d8
rnat: 0
ccv: 0
unat: 0
fpsr: 0x9804c8a74433f
pfs: 0xc000000000000816
(sor:0, sol:16, sof:22)
lc: 0
ec: 0
ip: 0x41e6070:0
---Type to continue, or q to quit---
cfm: 0x816
(sor:0, sol:16, sof:22)
psr: 0x4445432076743432
Dennis Handly
Acclaimed Contributor

Re: Program terminated with signal 11, Segmentation fault. SEGV_ACCERR - Invalid Permissions for object

>here is the output of info registers

r8 is 0. That shouldn't happen on a throw.

About the only way to get to 0x41e6070:0 is by a throw. The value of cfm doesn't match for that function. This implies that you may not have the latest libunwind patch PHSS_41495. What aC++ version are you using?
zfm_1
Occasional Advisor

Re: Program terminated with signal 11, Segmentation fault. SEGV_ACCERR - Invalid Permissions for object

hi dennis, i'm using aCC: HP aC++/ANSI C B3910B A.06.10 [Mar 22 2006]
Dennis Handly
Acclaimed Contributor

Re: Program terminated with signal 11, Segmentation fault. SEGV_ACCERR - Invalid Permissions for object

>I'm using aCC: A.06.10

That's pretty old. Try PHSS_41495. If that doesn't work, what is the OPT level of the function doing the throw? Try using +O1 there.