Operating System - HP-UX
1826103 Members
4802 Online
109690 Solutions
New Discussion

C++ program generated core

 
tash S
Frequent Advisor

C++ program generated core

Hello All,

We are currently trying to port a C++ application on Solaris to HP-UX 11.11.
This application is the plugin for Apache 2.x.
Normmally it work. But when stopping apache process (, core is generated.
We have already ported the application on windows successfully. We have use aCC compiler. I am not sure whether this is patch problem or other OS related problem.
If anyone thinks that this is patch problem, please let me know.

=============================
# gdb /opt/hpws/apache/bin/httpd core
HP gdb 5.2 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00
and target hppa1.1-hp-hpux11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.2 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
SEGV_UNKNOWN - Unknown Error
#0 0xc020dee0 in kill+0x10 () from /usr/lib/libc.2
(gdb) info thread all
* 1 system thread 15066 0xc020dee0 in kill+0x10 () from /usr/lib/libc.2
(gdb) thread 1
[Current thread is already 1 (system thread 15066)]
(gdb)
[Current thread is already 1 (system thread 15066)]
(gdb) bt
#0 0xc020dee0 in kill+0x10 () from /usr/lib/libc.2
#1 0x62d44 in sig_coredump (sig=11) at mpm_common.c:955
#2
#3 0xc26dcba0 in ()
warning: Attempting to unwind past bad PC 0xc26dcba0
#4 0xc376e47c in aaaAuthn::~aaaAuthn (this=0x7aeb2bf0, #free=2) at ./xxx.cpp:115
#5 0xc1ce734c in _niam_body+0x12c () from /usr/lib/libCsup_v2.2
#6 0xc1ce73b4 in _niam+0x1c () from /usr/lib/libCsup_v2.2
#7 0xc01849ec in exit+0x74 () from /usr/lib/libc.2
#8 0x53aac in destroy_and_exit_process (process=0x40012c78, process_exit_value=0) at main.c:210
#9 0x55738 in main (argc=5, argv=0x7aff0784) at main.c:624
(gdb) quit
=============================

Thank in advance.
10 REPLIES 10
Arunvijai_4
Honored Contributor

Re: C++ program generated core

Hi,

Which version of aCC you are using ? You haven't specified that.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
tash S
Frequent Advisor

Re: C++ program generated core

Here is aCC version I use:

A.03.70

Thanks,
tash S
Arunvijai_4
Honored Contributor

Re: C++ program generated core

Hi,

Perhaps you can try installing PHSS_33944 http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHSS_33944&sel={hpux:11.11,}&BC=main|search|

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
tash S
Frequent Advisor

Re: C++ program generated core

We can not install the paches in the following reason.
Even if we installed the pache about PHSS_33035.

Any ideas?
========================

bash-2.04# swinstall -x autoreboot=true -p -s /var/tmp/patches5/PHSS_33944.depo
t \*

======= 08/08/06 16:45:16 JST BEGIN swinstall SESSION
(non-interactive) (jobid=xxx-hp-0216)

* Session started for user "root@xxx-hp".

* Beginning Selection
* Target connection succeeded for "xxx-hp:/".
NOTE: The software "PHSS_33944" was successfully marked, but it
depends on the following software items which could not be
found in the source. However, these items may already be in
the target. This will be checked during the Analysis Phase:
PHSS_33035.CORE-64SLIB,fa=HP-UX_B.11.11_32/64
PHSS_33035.CORE-SHLIBS,fa=HP-UX_B.11.11_32/64
PHSS_33035.LANG-MIN,fa=HP-UX_B.11.11_32/64
* Source: /var/tmp/patches5/PHSS_33944.depot
* Targets: xxx-hp:/
* Software selections:
PHSS_33944.CORE-64SLIB,r=1.0,a=HP-UX_B.11.11_32/64,v=HP,fr=1.0,fa=H
P-UX_B.11.11_32/64
PHSS_33944.CORE-SHLIBS,r=1.0,a=HP-UX_B.11.11_32/64,v=HP,fr=1.0,fa=H
P-UX_B.11.11_32/64
PHSS_33944.LANG-64ALIB,r=1.0,a=HP-UX_B.11.11_32/64,v=HP,fr=1.0,fa=H
P-UX_B.11.11_32/64
PHSS_33944.LANG-MIN,r=1.0,a=HP-UX_B.11.11_32/64,v=HP,fr=1.0,fa=HP-U
X_B.11.11_32/64
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/.sw/sessions/swinstall.last".
* The analysis phase succeeded for "xxx-hp:/".
* Analysis succeeded.


NOTE: More information may be found in the agent logfile using the
command "swjob -a log xxx-hp-0216 @ rsasj-hp:/".

======= 08/08/06 16:45:21 JST END swinstall SESSION (non-interactive)
(jobid=xxx-hp-0216)


===================

regards;
-tash s
Arunvijai_4
Honored Contributor

Re: C++ program generated core

Hi,

PHSS_33944 has a dependency towards PHSS_33035. You can download both of them together, make a single bundle then, install it.

It should work that way.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
tash S
Frequent Advisor

Re: C++ program generated core

Hi,

Can you clarify the following phase
"make a single bundle then" ?

I installed PHSS_33035.
And after that, I am trying to install PHSS_33944.

Can I have special command in order to "make a single bundle then"?

Thanks in advance,
-tash S

Arunvijai_4
Honored Contributor

Re: C++ program generated core

Hi,

There is an option to download both the patches in a single zip file. Later, unzip it to /tmp/patches. You will find "README_hp-ux". It has got all the information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
tash S
Frequent Advisor

Re: C++ program generated core

Hi,
I installed the both using
swinstall -x autoreboot=true -s /var/tmp/patches/depot \*,

And I reboot HP-UX box.

but swlist said in the following.
====================================
bash-2.04# swlist -l fileset -a state PHCO_33035
# Initializing...
# Contacting target "xxx-hp"...
ERROR: Software "PHCO_33035" was not found on host "xxx-hp:/".
bash-2.04# swlist -l fileset -a state PHCO_33944
# Initializing...
# Contacting target "rsasj-hp"...
ERROR: Software "PHCO_33944" was not found on host "xxx-hp:/".
====================================
regard;
-tash S
tash S
Frequent Advisor

Re: C++ program generated core

Hello Arun,

After I installed PHSS_33944, the result was the same,which means that it generated core.


>Perhaps you can try installing PHSS_33944 >http://www1.itrc.hp.com/service/patch/patch>Detail.do?patchid=PHSS_33944&sel=
>{hpux:11.11,}&BC=main|search|

Any other idea?

Thanks in advance.
-tash S
tash S
Frequent Advisor

Re: C++ program generated core

Hi All,

Actually we use Rogue Wave C++ library.

The other platform like Solaris is OK, so
I was wondering why it is.

aCC version is A.03.70.

Does HP-UX 11i and aCC include any Rogue Wave's debbuging tool ?

Thank you in advance.
tash S