#968 closed defect (worksforme)

Error in `nginx: worker process': free(): invalid pointer: 0x08962628

Reported by: bigras.bruno@… Owned by:
Priority: minor Milestone:
Component: documentation Version: 1.9.x
Keywords: Cc:
Sensitive: no
uname -a: Linux ubuntu 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:41 UTC 2016 i686 i686 i686 GNU/Linux
nginx -V: nginx version: nginx/1.9.15 built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1) built with OpenSSL 1.0.1f 6 Jan 2014 TLS SNI support enabled configure arguments: --add-module=/home/bbigras/nginx/nginx-1.9.15/debian/modules/naxsi/naxsi_src --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_perl_module=dynamic --add-dynamic-module=debian/extra/njs-1c50334fbea6/nginx --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --add-module=/home/bbigras/nginx/nginx-1.9.15/debian/modules/ngx_devel_kit --add-module=/home/bbigras/nginx/nginx-1.9.15/debian/modules/lua-nginx-module --add-module=/home/bbigras/nginx/nginx-1.9.15/debian/modules/nginx-auth-ldap --add-module=/home/bbigras/nginx/nginx-1.9.15/debian/modules/nchan-0.99.12 --with-file-aio --with-ipv6 --with-http_v2_module --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro'

Description

I was reloading the config on Ubuntu using service nginx reload.

from the log:

*** Error in `nginx: worker process': free(): invalid pointer: 0x08962628 ***
2016/05/02 16:58:05 [alert] 19498#19498: worker process 19500 exited on signal 6 (core dumped)
$ ls -l /var/crash/
total 984
-rw-r----- 1 www-data whoopsie 1006353 mai  2 16:58 _usr_sbin_nginx.33.crash
Reading symbols from /usr/sbin/nginx...Reading symbols from /usr/lib/debug/.build-id/7c/6f589235091c270b13731c005969fc22f4c29d.debug...done.
done.
[New LWP 19500]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Core was generated by `nginx: worker process                   '.
Program terminated with signal SIGABRT, Aborted.
#0  0xb774f428 in __kernel_vsyscall ()
(gdb) bt
#0  0xb774f428 in __kernel_vsyscall ()
#1  0xb7279607 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#2  0xb727ca33 in __GI_abort () at abort.c:89
#3  0xb72b3e53 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0xb73b0edc "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#4  0xb72be33a in malloc_printerr (action=<optimized out>, str=0xb73ac9ed "free(): invalid pointer", ptr=0x8962628) at malloc.c:4996
#5  0xb72befad in _int_free (av=0xb73f5420 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3840
#6  0xb72c1cb3 in __GI___libc_free (mem=<optimized out>) at malloc.c:2946
#7  0x0806552f in ngx_destroy_pool (pool=0x89949c0) at src/core/ngx_palloc.c:85
#8  0x0807f6e5 in ngx_event_expire_timers () at src/event/ngx_event_timer.c:94
#9  0x0807f34a in ngx_process_events_and_timers (cycle=cycle@entry=0x87e5498) at src/event/ngx_event.c:256
#10 0x08085976 in ngx_worker_process_cycle (cycle=0x87e5498, data=0x1) at src/os/unix/ngx_process_cycle.c:753
#11 0x080843a6 in ngx_spawn_process (cycle=cycle@entry=0x87e5498, proc=proc@entry=0x80858f0 <ngx_worker_process_cycle>, data=data@entry=0x1, name=name@entry=0x8171fbb "worker process",
    respawn=respawn@entry=-3) at src/os/unix/ngx_process.c:198
#12 0x08085b53 in ngx_start_worker_processes (cycle=cycle@entry=0x87e5498, n=2, type=type@entry=-3) at src/os/unix/ngx_process_cycle.c:358
#13 0x08086540 in ngx_master_process_cycle (cycle=cycle@entry=0x87e5498) at src/os/unix/ngx_process_cycle.c:130
#14 0x080633de in main (argc=3, argv=0xbfb7e7f4) at src/core/nginx.c:367

Change History (2)

comment:1 Changed 20 months ago by mdounin

Please try to reproduce the problem without any 3rd party modules compiled in.

comment:2 Changed 19 months ago by mdounin

  • Resolution set to worksforme
  • Status changed from new to closed

Feedback timeout. Likely a problem in a 3rd party module.

Note: See TracTickets for help on using tickets.