﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1261	nginx 1.13.0/Solaris 11.3/amd64; coredump when using ssl_session_cache	Slarky@…		"Hi, nginx 1.13 dumps core on Solaris 11.3 with Oracle Developer Studio 12.5 when compiled with -m64:

{{{
$ ./configure --with-cc=/opt/developerstudio12.5/bin/cc --with-cpu-opt=amd64 --prefix=/tmp/nginx13 --with-http_ssl_module
}}}

Remove 2x -fast -xipo from objs/Makefile !

{{{
$ gmake
...
/opt/developerstudio12.5/bin/cc -c -m64 -errwarn=%all -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/include/pcre -I objs \
        -o objs/src/core/ngx_times.o \
        src/core/ngx_times.c src/os/unix/ngx_sunpro_amd64.il
""src/core/ngx_times.c"", line 87: argument #2 is incompatible with prototype:
        prototype: pointer to void : ""src/core/ngx_times.c"", line 0
        argument : pointer to volatile unsigned long
""src/core/ngx_times.c"", line 203: argument #2 is incompatible with prototype:
        prototype: pointer to void : ""src/core/ngx_times.c"", line 0
        argument : pointer to volatile unsigned long
cc: acomp failed for src/core/ngx_times.c
}}}

Remove -errwarn=%all from objs/Makefile as well...

{{{
$ gmake
...
$ gmake install
}}}

Add ""ssl_session_cache shared:SSL:10m;"" to /tmp/nginx13/conf/nginx.conf

{{{
$ /tmp/nginx13/sbin/nginx -t
nginx: the configuration file /tmp/nginx13/conf/nginx.conf syntax is ok
Memory fault(coredump)

$ dbx objs/nginx core
program terminated by signal SEGV (no mapping at the fault address)
Current function is ngx_slab_alloc
  176       return p;
(dbx) where                                                                  
=>[1] ngx_slab_alloc(pool = <bad address 0xffff80feffffffd8>, size = <bad address 0xffff80feffffffd0>), line 176 in ""ngx_slab.c""

(dbx) list 165 177
  165   void *
  166   ngx_slab_alloc(ngx_slab_pool_t *pool, size_t size)
  167   {
  168       void  *p;
  169   
  170       ngx_shmtx_lock(&pool->mutex);
  171   
  172       p = ngx_slab_alloc_locked(pool, size);
  173   
  174       ngx_shmtx_unlock(&pool->mutex);
  175   
  176       return p;
  177   }
}}}"	defect	closed	minor		nginx-module	1.11.x	fixed	solaris, 64bit, ssl, coredump		SunOS solaris 5.11 11.3 i86pc i386 i86pc	"nginx version: nginx/1.13.0
built by Sun C 5.14 SunOS_i386 2016/05/31
built with OpenSSL 1.0.2k  26 Jan 2017
TLS SNI support enabled
configure arguments: --with-cc=/opt/developerstudio12.5/bin/cc --with-cpu-opt=amd64 --prefix=/tmp/nginx13 --with-http_ssl_module"
