Operating System - HP-UX
1819681 Members
3540 Online
109605 Solutions
New Discussion юеВ

Core dump/abort error when built with -AA option

 
Namrata
Occasional Advisor

Core dump/abort error when built with -AA option

Hi All,

I am trying to compile & link my code on hpux. It compiles & links without errors, but when I try to run the exe thus created, I encounter the following errors:
"ABORT instruction (core dumped)"

The stack trace being:

Program received signal SIGABRT, Aborted.
0x6ffae8a0 in kill+0x10 () from /usr/lib/libc.2
(gdb) where
#0 0x6ffae8a0 in kill+0x10 () from /usr/lib/libc.2
#1 0x6ff4b7bc in raise+0x24 () from /usr/lib/libc.2
#2 0x6ff8be5c in abort_C+0x16c () from /usr/lib/libc.2
#3 0x6ff8beb4 in abort+0x1c () from /usr/lib/libc.2
#4 0x6fd6b488 in std::terminate+0x38 () from /usr/lib//libCsup_v2.2
#5 0x6fd6bfa8 in RethrowException+0x88 () from /usr/lib//libCsup_v2.2
#6 0x6fd6c2f0 in __rethrow+0x134 () from /usr/lib//libCsup_v2.2
#7 0x26544 in devtech_private::::__sinit_UnicodeConvers
ion_cpp+0x60 ()
#8 0x6fd6f1a8 in __mainHelper+0x40 () from /usr/lib//libCsup_v2.2
#9 0x6fd6f4dc in _main+0xec () from /usr/lib//libCsup_v2.2

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

Compiling options:
C_MACRO = -D UNIX_ENV
OPTIMIZATION_CFLAGS = -O
OTHER_CFLAGS = -g -AA
==========
Linking options:

$(LINK) -AA -o $(TARGET_DIR)/$(TARGET) \
$(PROJECT_OBJECTS) \
-L $(PRJROOT)/external/zstring/binaries/hpux-gcc
32-release \
-lzstring \
-L $(PRJROOT)/external/cppunit/binaries/hpux \
-lcppunit \
-lcppunitconsole \
-ldebugconsole \
-lc

======================
LINK & CC being = /opt/aCC/bin/aCC

Looking at the above output, could you suggest some measures to get rid of it. Do I need to include some standard C++ libraries or the like (may be a path to libc.2 and so on).
Would be grateful if you could have a look. I have been struggling against this since quite long and my deadline is quite close.

Attached is the makefile used to link & compile the code & thereby create the executable.

Regards,
Namrata
6 REPLIES 6
Stephen Keane
Honored Contributor

Re: Core dump/abort error when built with -AA option

The solution to

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=225571

seems to be adding the -mt option. Would that help in your case?
Namrata
Occasional Advisor

Re: Core dump/abort error when built with -AA option

Hi Stephen,

Thanks for the prompt reply.
I did try the -mt compiler option in my make file, but that too does not seem too have an impact.
The "ABORT instruction (core dumped)" still persists.

Thanks & Regards,
Namrata
Stephen Keane
Honored Contributor

Re: Core dump/abort error when built with -AA option

Which version of aCC are you using?

Are you using Orbix2000?
ranganath ramachandra
Esteemed Contributor

Re: Core dump/abort error when built with -AA option

when linking with -AA or -AP, you need to make sure that all libraries in the link line have also been linked similarly (using -AA or -AP).

you should not link -AA-linked binaries with -AP-linked binaries.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Namrata
Occasional Advisor

Re: Core dump/abort error when built with -AA option

Hi Stephen,

The aCC version is : aC++ A.03.10 (Hp-UX 11.00)
Regards,
Namrata.
Stephen Keane
Honored Contributor

Re: Core dump/abort error when built with -AA option

Can you run a chatr on your executable to see which libraries it is picking up?

# chatr your_exe