Operating System - HP-UX
1834043 Members
2454 Online
110063 Solutions
New Discussion

Re: Problem when using Pro*C from C or C++!!

 
Giri Shankar
New Member

Problem when using Pro*C from C or C++!!

We are trying to compile our code in 64 BIT IA using aCC version 6.10. The code compiles fine. But when a C/C++ program calls a Pro *C program, it goves the following Error. Can somebody help? I am not sure which option we should use to compile the Pro *C program?

Core was generated by `CCDBGenSvr'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object

warning: Load module /mnt/ims/oracle/product/10.2.0/client/lib/libclntsh.so.10.1 has been stripped.
Debugging information is not available.


warning: Load module /mnt/ims/oracle/product/10.2.0/client/lib/libnnz10.so has been stripped.
Debugging information is not available.

#0 0xc00000000031c520:0 in T_19_462b_cl___doprnt_main+0x8620 ()
from /usr/lib/hpux64/libc.so.1
(gdb) bt
#0 0xc00000000031c520:0 in T_19_462b_cl___doprnt_main+0x8620 ()
from /usr/lib/hpux64/libc.so.1
#1 0xc00000000030bbd0:0 in _doprnt+0x30 () from /usr/lib/hpux64/libc.so.1
#2 0xc0000000003316c0:0 in vsprintf+0xa0 () from /usr/lib/hpux64/libc.so.1
#3 0xc0000000050f85e0:0 in userlog () at tmulog.c:51
#4 0x40000000000052e0:0 in hatpReadErrorCodes ()
at /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/reconora.c:509
#5 0x4000000000002840:0 in tpsvrinit ()
at /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/CCDBGenInit.c:377
#6 0xc00000000511fb60:0 in _tmmain () at stdmain.c:222
#7 0xc0000000050f8270:0 in _tmstartserver () at tmstrtsrvr.c:128
#8 0x4000000000002210:0 in main () at BS-1a3b.c:76
4 REPLIES 4
Giri Shankar
New Member

Re: Problem when using Pro*C from C or C++!!

This is the complier option we are giving...

aCC +DD64 +Olit=all -Wl,+s -D__BIGMSGQUEUE_ENABLED -mt -I$TUXDIR/include -o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/bin/cpmUpdCustSvr BS-5dd6.c -L${TUXDIR}/lib /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/cpmUpdCustInit.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/cpm_cfg.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/cpmUpdCustMain.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/cpmUpdCustSeg.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/cpmUpdCustPersDetSeg.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/cpmUpdCustCompSeg.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/cpmUpdPsychoSeg.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/cpmUpdStatSeg.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/dedup_config.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/dedup_config_prt.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/ddConsolidate.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/ddConsolidate_tables.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/profiler.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/reconora.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/txn_type_masking_utils.o /mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink/obj/llist.o -ltux -lbuft -lsql -lusort -lrms -lfs -lfml -lfml32 -lengine -lnsl -L/mnt/ims/oracle/product/10.2.0/client/lib -lclntsh -lsql -L/mnt/classic/home/isacfai/sources/06_18_2007/fai/fai-midtier/svcelink -L/opt/perf/lib/hpux64 -larm -lnsl -lrms -lssl -lcrypto -ltux -lbuft -lsql -lusort -lrms -lfs -lfml -lfml32 -lengine -lnsl +s
Dennis Handly
Acclaimed Contributor

Re: Problem when using Pro*C from C or C++!!

Have you successfully ported to 64 bit before? (Did you use +w64bit and +wlint?) If not, why not make sure your application works in 32 bit before you port?

The latest patch is A.06.14, PHSS_35975.

Usually, if you are aborting in _doprnt, you have passed bad args to vsprintf. Since you are in the main thread, it is not likely you have a thread stack overflow.

Which frame is your call to Pro*C?

I'm not sure what this trailing "+s" is for? You have -Wl,+s and +s isn't a valid compiler option.

Re: Problem when using Pro*C from C or C++!!

hi Dennis,

Thanks for the info.

I booted the 32 bit application and it compiles and works fine. I only get this when I build it in 64 bit and try to boot the application. And I get this only when I access pro*C programs from a C ++ or a C program.

Girish
Dennis Handly
Acclaimed Contributor

Re: Problem when using Pro*C from C or C++!!

>I only get this when I build it in 64 bit

It looks like either you or Pro*C didn't port to 64 bit correctly.
Was frame #8 your last frame before calling Pro*C?