Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why is Pro C precompiler getting segmentation fault on every file?

user1088574Dec 11 2014 — edited Dec 11 2014

Our Pro C precompiler gets a segmentation fault every time we try to compile a program.  It happens on every program - even existing code that compiled on other systems.  A stack trace of the core file shows the same location in Pro C on every seg fault. This is a new installation that has not been used before.  Is something missing or not set up correctly?

System: HP-UX B.11.31 U ia64

Oracle: Pro*C/C++: Release 12.1.0.1.0

Test Program:

#include <stdio.h>
#include <string.h>
#include <sqlca.h>

main()
{
  exec sql begin declare section;
    char *AIM_PSWD;
  exec sql end declare section;

  AIM_PSWD = getenv("AIM_PSWD");

  exec sql connect :AIM_PSWD;
  if (sqlca.sqlcode != 0)
    fprintf(stderr,"%s: error connecting to database %d\n",argv[0],sqlca.sqlcode);
  else
    printf("Connected\n");
}

command and response:

uklvg002:src$ proc iname=testit.pc oname=testit.c include=${ORACLE_HOME}/precomp/public

Pro*C/C++: Release 12.1.0.1.0 - Production on Thu Dec 11 08:40:58 2014

Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

System default option values taken from: /u01/app/oracle/product/12.1.0.1/client_2/precomp/admin/pcscfg.cfg

Memory fault(coredump)

Stack trace:

Core was generated by `proc'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object
#0  0x4e303d0:0 in kguinit () at kgu.c:173
173     kgu.c: No such file or directory.
        in kgu.c
(gdb) bt
#0  0x4e303d0:0 in kguinit () at kgu.c:173
#1  0x44b87f0:0 in psiksu () at psi.c:2235
#2  0x42ee390:0 in pcgini () at pcg.c:293
#3  0x42ae1d0:0 in pc2main () at main.c:514
#4  0x42ad2f0:0 in pcmain () at spcmain.c:26
#5  0x60000000de051ec0:0 in lpmcall () at lpmcal.c:326
#6  0x60000000de058c00:0 in lpmpmai () at lpmpmai.c:199
#7  0x42a0920:0 in main () at s0main.c:176

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2015
Added on Dec 11 2014
1 comment
1,839 views