Operating System - HP-UX
1833780 Members
2200 Online
110063 Solutions
New Discussion

Re: HP-UX 11.00 cc compiler crash (error 1405)

 

HP-UX 11.00 cc compiler crash (error 1405)

"uname -a" on my HP machine returns this:
HP-UX gumby B.11.00 U 9000/800 1516750518 unlimited-user license

When I try to compile one of my .c files like this:
cc -v +u1 +DD64 +O2 +Z -DALL_PUP_VERSIONS -DINV -I../includes
combined_source_tgz1.c -c

the C compiler crashes with this:
cc: error 1405: "/opt/ansic/lbin/ccom" terminated abnormally with signal 11,
*** Error exit code 9

I was still able to crash the HP-UX 11.00 C compiler with +O1 (rather than +O2) and even without optimization. So it appears optimization is not the cause of this
problem.

So I tried to install patches "PHSS_25171 s700_800 11.00 ANSI C compiler cumulative patch" and "PHSS_25249 s700_800 11.00 +O4/PBO compiler cumulative patch" on this machine, but, for some reason, they will not install!

Please see attached file for:
1.) complete output from the aforementioned cc command that causes cc to crash
2.) the output of the "swlist" on this machine
3.) the error messages spat out when trying to install patches PHSS_25171 and PHSS_25249
12 REPLIES 12
Santosh Nair_1
Honored Contributor

Re: HP-UX 11.00 cc compiler crash (error 1405)

Looks like the ansi C compiler was not installed properly. Check to see that all the filesets were installed and configured:

swlist -a state -l fileset

and check for any filesets that say installed, i.e. not configured.

-Santosh
Life is what's happening while you're busy making other plans

Re: HP-UX 11.00 cc compiler crash (error 1405)

Attached to this posting is the output of the "swlist -a state -l fileset" command. It looks like everything listed here is "configured" and not "installed"

It's really perplexing why I can't install patches PHSS_25171 or PHSS_25249
T G Manikandan
Honored Contributor

Re: HP-UX 11.00 cc compiler crash (error 1405)

Hello,

Patch PHSS_25171 is dependent on patches
s700: 11.00: PHSS_22217
s800: 11.00: PHSS_22217
have you installed them?
What are the error messages?


Thanks
G Manikandan

Stefan Farrelly
Honored Contributor

Re: HP-UX 11.00 cc compiler crash (error 1405)

Brian,

good you posted the sw logs. It looks to me the patches youre trying to apply are for version 11.0 of the ANSI/C compiler, and you already have 11.02.02 installed (which probably already includes these fixes). Can you do an;

swlist -l fileset B3901BA

and post the results.

Cheers,

Stefan
Im from Palmerston North, New Zealand, but somehow ended up in London...

Re: HP-UX 11.00 cc compiler crash (error 1405)

G Manikandan,

Right, PHSS_25171 is dependent on PHSS_22217, but when you look at the "PHSS_22217 patch description" on the http://us-support2.external.hp.com/ website, you see that it is superseded / replaced by PHSS_25249. And I can't install this PHSS_25249 either! If you look at my original posting (above), there is a .txt file attached to it. Click on the little paperclip thingy (near the upper right corner of my original posting). You see near the bottom of this attachment the error messages I'm getting when I try to install either patch PHSS_25171 or PHSS_25249

Thanks,
/ Brian

Re: HP-UX 11.00 cc compiler crash (error 1405)

Stefan,

Attached is the output of the command "swlist -l fileset B3901BA"

/ Brian

Re: HP-UX 11.00 cc compiler crash (error 1405)

Below (as well as attached) is a .c file that demonstrates the crash! Just try to compile this .c file like so:

cc +u1 +DD64 +Z sample.c -c

and you will (probably) see:

cc: error 1405: "/opt/ansic/lbin/ccom" terminated abnormally with signal 11.
-----------------------------
#include
#include
#include

typedef struct str_test{
unsigned long size_test;
unsigned char * data;
}*TEST;

void useless_func(TEST t,unsigned long newsize)
{
return;
}

void failure_func(TEST t,unsigned long l)
{
unsigned long i;
i=l/8;
if(i+1>t->size_test){
useless_func(t,
(((unsigned long)(t->size_test)*1.3)>(i+1)) ?
(unsigned long)(t->size_test*1.3) :
(i+1));
}
}
T G Manikandan
Honored Contributor

Re: HP-UX 11.00 cc compiler crash (error 1405)

Hello,
You have the new file sets i.e.11.11 version.
The C compiler you have got is for 11.00.
I am not sure whether one can additionally install the filesets of 11.00 version.
T G Manikandan
Honored Contributor

Re: HP-UX 11.00 cc compiler crash (error 1405)

Hello,
You have the new file sets i.e.11.11 version.
The C compiler you have got is for 11.00.
I am not sure whether one can additionally install the filesets of 11.00 version.
The link below shows the c compiler for HP UX versions.
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B3899BA
T G Manikandan
Honored Contributor

Re: HP-UX 11.00 cc compiler crash (error 1405)

Hello,
sorry for my earlier posting.I was really confused.

You have the compiler for 11.11
just try the link below for the patch
PHSS_24830.

http://us-support.external.hp.com/cki/bin/doc.pl/sid=1830c6060e2df862e8/screen=ckiDisplayDocument?docId=200000056482621


Thanks
G Manikandan

Re: HP-UX 11.00 cc compiler crash (error 1405)

T G Manikandan,

I am confused. This HP-UX 11.00 machine was originally configured by HP. Why do I have the HP-UX 11i C compiler on my HP-UX 11.0 machine?

Also, can you please copy the sample .c file (from my posting above) and compile it on your 64-bit HP-UX machine and see if the compiler crashes for you as well?!

Thanks,
/ Brian

Re: HP-UX 11.00 cc compiler crash (error 1405)

Gahh, I meant:

Why do I have the HP-UX 11.11 C compiler on my HP-UX 11.00 machine?