My Oracle Support Banner

cc Errors With Solaris Studio 12.3 on Solaris 11.4 When using Debug Or Optimized Options (Doc ID 2710039.1)

Last updated on SEPTEMBER 17, 2020

Applies to:

Oracle Solaris Studio - Version 12.3 and later
Information in this document applies to any platform.

Symptoms

Solaris Studio 12.3 crashes on Solaris 11.4 when asking for debug or optimized build

Compiling a tiny C program with a single 'printf hello world' shows errors when using the debug (-g) or optimized build.


$ cc -m64 hello.c -o hello
$ cc -g -m64 hello.c -o hello
cc: Fatal error in $STUDIO_HOME/prod/bin/acomp
cc: Status 139
 

$ cc -xO2 -m64 hello.c -o hello
Assertion failed: (cp >= min_heap_addr) && (cp <= cached_sbrk), file ../src/malloc.c, line 727
cc: Fatal error in $STUDIO_HOME/prod/bin/cg
cc: Status 134

Any C program of any size will error in the same manner.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.