1833760 Members
2130 Online
110063 Solutions
New Discussion

C executable core dumps

 
Gary Malpass
New Member

C executable core dumps

I can successfully build and run Pro*C code generated on a 64 bit machine. However when I make the file on our 32 bit machine, the file calls cc but not the linker. The executable is much smaller and coredumps when run.
Our C compiler is HP/C/ANSI C Developer's Bundle hor HP-UX 11.00 (product B3901BA). Or database is Oracle 8.1.7.
3 REPLIES 3
Sridhar Bhaskarla
Honored Contributor

Re: C executable core dumps

Hi Gary,

I am not a programmer..

The executable size will be lesser on 32bit than 64bit OS.

Dumping core could be due to a lot of other reasons. Do a file on core and see the output. Depending on the info you get, your admin may need to increase the kernel parameters related to memory segment sizes.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: C executable core dumps

Hi Gary:

I have compiled Pro/C on both 64-bit 11x and 32-bit 11x without problems. Check your environment very carefully making sure that all the need environments are defined and exported. I trust that you are not trying to compile manually but are using makefiles. If done correctly, you can transfer you sourse and makefiles to either platform and simply run make. As a first step, I suggest that you
get a very baby program working in the 32-bit environment. If you can't get one of the sample programs to compile/link/execute then you are never going to get your application to work.

Regards, Clay
If it ain't broke, I can fix that.
Gary Malpass
New Member

Re: C executable core dumps

Thanks for all your help.

We have found that the reason for our problem is that we were missing patch PHSS_24830 from our system. Once this specific ansiC HP11.11.02 compiler fix was implemented we were able to operate correctly.