Operating System - HP-UX
1752806 Members
6058 Online
108789 Solutions
New Discussion

Re: Application crash in exit ()

 
Dennis Handly
Acclaimed Contributor

Re: Application crash in exit ()

>here is what is installed: # Bundle(s):

This lumps all of the patches into a bundle so we can't see the aC++ runtime patches.
You would probably need to use:
swlist -l patch "PHSS_*" | grep aC

>I will ask the customer to upgrade but to be honest I'm a bit pessimistic.

Well, it does work on your system. :-)
Other than the patch level, what is different on the customer's system? The same application but different data?
Is there a trivial way to get into your application and then exit, so you can see if that path fails?
wangnijie8634
Occasional Visitor

Re: Application crash in exit ()

Hi, all:

 

I meeting the same problem on our system, it coredump on last line of our program "return 0",

 

$ gdb -c core
Core was generated by `SimpappClient'.
(gdb) where
#0  0xc0000000003f3938 in __cxxTerm_body+0x18 () from /usr/lib/pa20_64/libCsup.2
#1  0xc0000000003f39c8 in __cxxTerm+0x20 () from /usr/lib/pa20_64/libCsup.2
#2  0xc0000000001c3428 in exit+0x80 () from /usr/lib/pa20_64/libc.2
#3  0xc00000000000a084 in UT_exit+0x64 () from /usr/lib/pa20_64/dld.sl
#4  0xc00000000000a0a4 in exit+0x14 () from /usr/lib/pa20_64/dld.sl
#5  0xc00000000000a168 in $START$+0xb0 () from /usr/lib/pa20_64/dld.sl
Error accessing memory address 0x0: Invalid argument.

 

 

Does the problem is solved? If it does, how did you guys slove it? Thanks.

wangnijie8634
Occasional Visitor

Re: Application crash in exit ()

Here is my version of acc

 

$ /usr/sbin/swlist -l patch "PHSS_*" | grep aC
# PHSS_30414                            1.0            aC++ Runtime (IA: A.05.56, PA: A.03.50)
# PHSS_32511                            1.0            HP aC++ Compiler (A.03.63)

Dennis Handly
Acclaimed Contributor

Re: Application crash in exit ()

>#0  0xc0000000003f3938 in __cxxTerm_body+0x18 /usr/lib/pa20_64/libCsup.2

 

This could occur if you call atexit(3) and you have unloaded the shlib that contains the function.

 

>PHSS_32511       HP aC++ Compiler (A.03.63)

 

This is 6+ years old.

 

wangnijie8634
Occasional Visitor

Re: Application crash in exit ()

Did you mean that, I have unloaded the shlib that contains function __cxxTerm_body, then I call atexit(3) , so it cordump?

Dennis Handly
Acclaimed Contributor

Re: Application crash in exit ()

>I have unloaded the shlib that contains function __cxxTerm_body

 

No, you have unloaded the atexit registered function that __cxxTerm_body was going to call.

Basically shouldn't be using atexit(3) in C++, especially if you have shlibs.