Operating System - HP-UX
1833875 Members
1795 Online
110063 Solutions
New Discussion

Segmentation fault (program cc1plus)

 
SOLVED
Go to solution
Dario_1
Trusted Contributor

Segmentation fault (program cc1plus)

Good Morning!

We are getting the following error when trying to compile using HP's version 3.2 gcc:

Pid 17226 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.
g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.

maxssiz is already at 32MB.

Any ideas on how to fix this error.

Thx, Dario
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Segmentation fault (program cc1plus)

Well, maxssiz is only one of the possible problems. You need to also check maxdsiz (very likely) or you may need to add more swap space or enable pseudo-swap (kernel parameter swapmem_on=1).

For a development machine, maxssiz at 32MB might be a little low although I would not exceed 64MB except in very unusual cases because it can lead to very poor programming practices.
If it ain't broke, I can fix that.
Dario_1
Trusted Contributor

Re: Segmentation fault (program cc1plus)

Clay:

Thank you for the answer.

Regards,

Dario
Dario_1
Trusted Contributor

Re: Segmentation fault (program cc1plus)

Guys:

I made maxssiz 50MB and it worked. Now I am getting the following library error:

ld: Can't find library or mismatched ABI for -lgcc
Fatal error.
collect2: ld returned 1 exit status

Here is the output of getconf KERNEL_BITS = 64
and we are running 11i.

Also here is the file command executed in every file under /usr/local/pa20_64/bin

addr2line: ELF-64 executable object file - PA-RISC 2.0 (LP64)
ar: ELF-64 executable object file - PA-RISC 2.0 (LP64)
as: ELF-64 executable object file - PA-RISC 2.0 (LP64)
c++: ELF-64 executable object file - PA-RISC 2.0 (LP64)
c++filt: ELF-64 executable object file - PA-RISC 2.0 (LP64)
cpp: ELF-64 executable object file - PA-RISC 2.0 (LP64)
g++: ELF-64 executable object file - PA-RISC 2.0 (LP64)
gas: ELF-64 executable object file - PA-RISC 2.0 (LP64)
gasp: ELF-64 executable object file - PA-RISC 2.0 (LP64)
gcc: ELF-64 executable object file - PA-RISC 2.0 (LP64)
gcc64: ELF-64 executable object file - PA-RISC 2.0 (LP64)
gccbug: commands text
gcov: ELF-64 executable object file - PA-RISC 2.0 (LP64)
gprof: ELF-64 executable object file - PA-RISC 2.0 (LP64)
hppa64-hp-hpux11.00-c++: ELF-64 executable object file - PA-RISC 2.0 (LP6
4)
hppa64-hp-hpux11.00-g++: ELF-64 executable object file - PA-RISC 2.0 (LP6
4)
hppa64-hp-hpux11.00-gcc: ELF-64 executable object file - PA-RISC 2.0 (LP6
4)
hppa64-hp-hpux11.00-gcc-3.2: ELF-64 executable object file - PA-RISC 2.0 (LP6
4)
ld: ELF-64 executable object file - PA-RISC 2.0 (LP64)
nm: ELF-64 executable object file - PA-RISC 2.0 (LP64)
objcopy: ELF-64 executable object file - PA-RISC 2.0 (LP64)
objdump: ELF-64 executable object file - PA-RISC 2.0 (LP64)
ranlib: ELF-64 executable object file - PA-RISC 2.0 (LP64)
readelf: ELF-64 executable object file - PA-RISC 2.0 (LP64)
size: ELF-64 executable object file - PA-RISC 2.0 (LP64)
strings: ELF-64 executable object file - PA-RISC 2.0 (LP64)
strip: ELF-64 executable object file - PA-RISC 2.0 (LP64)

Any ideas, thank you.