Error after compiling nginx with pagespeed

209 views
Skip to first unread message

Andres Galindo

unread,
Sep 3, 2014, 2:01:06 PM9/3/14
to ngx-pagesp...@googlegroups.com
I get the following error when trying to access a page:
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid
2014/09/03 12:57:51 [alert] 28026#0: worker process 28031 exited on signal 6 (core dumped)

I've isolated it to pagespeed since it only happens when I have pagespeed set to on. 

Below are my configure flags
[root@606565-app3 nginx-1.6.0]# nginx -V
nginx version: nginx/1.6.0
built by gcc 4.8.2 20131212 (Red Hat 4.8.2-8) (GCC) 
TLS SNI support enabled
configure arguments: --add-module=/root/ngx_pagespeed-release-1.8.31.4-beta --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --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-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_spdy_module --with-cc-opt='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-debug


I add "--with-debug" to see if I could get any additional information. Anyone have this issue before? How did you resolve it?

Cheers,
Andres.

Otto van der Schaaf

unread,
Sep 3, 2014, 4:17:52 PM9/3/14
to ngx-pagesp...@googlegroups.com
Could you post a little bit more lines from error.log leading up to the crash (say 100 lines)? Would it be possible to pm me a link to download the core dump? I'd love to look into this.

Otto


--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.
Visit this group at http://groups.google.com/group/ngx-pagespeed-discuss.
For more options, visit https://groups.google.com/d/optout.

Andres Galindo

unread,
Sep 4, 2014, 2:32:18 PM9/4/14
to ngx-pagesp...@googlegroups.com
Hi Otto, that's actually the only thing the error log spits out when I attempt to load a page. Does this link outline the appropriate process to produce a core dump?

To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-discuss+unsub...@googlegroups.com.

Otto van der Schaaf

unread,
Sep 4, 2014, 4:15:53 PM9/4/14
to ngx-pagesp...@googlegroups.com
Yes, that is the correct process for creating a core dump. 

Otto

To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.

Otto van der Schaaf

unread,
Sep 19, 2014, 5:40:28 AM9/19/14
to ngx-pagesp...@googlegroups.com
Hi Andres,

ngx_pagespeed 1.9.32.1-beta was released yesterday, which contains fixes related to compatibility with nginx's SPDY module.
Could you retry?

Otto

Pham Thanh Dong

unread,
Dec 1, 2014, 4:48:47 AM12/1/14
to ngx-pagesp...@googlegroups.com
Hi Otto,

My ngx_pagespeed got the same exiting signal code as Andres's

2014/11/30 03:51:37 [alert] 61954#0: worker process 61956 exited on signal 6 (core dumped)

I think the version on my host is up2date:

nginx -V
nginx version: nginx/1.6.2
built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 
TLS SNI support enabled
configure arguments: --add-module=/opt/nginx_modules/ngx_pagespeed-release-1.9.32.2-beta --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module --add-module=/opt/nginx_modules/build/ngx_http_auth_pam_module-1.2 --add-module=/opt/nginx_modules/build/nginx-dav-ext-module-master --add-module=/opt/nginx_modules/build/echo-nginx-module-0.56 --add-module=/opt/nginx_modules/build/nginx-upstream-fair-master --add-module=/opt/nginx_modules/build/ngx_http_substitutions_filter_module-3e67e52

Hope you can help me to go through the core dump in the attachment and plz suggest how to solve it?

Dongpt


Vào 16:40:28 UTC+7 Thứ sáu, ngày 19 tháng chín năm 2014, Otto van der Schaaf đã viết:
Otto


To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-discuss+unsubscri...@googlegroups.com.
core_dongpt.gz

Otto van der Schaaf

unread,
Dec 1, 2014, 5:03:09 AM12/1/14
to ngx-pagesp...@googlegroups.com
Thanks for the report.  I'd love to figure out the cause of that. 
I'll PM you to see if we can have a look together via IM/screen sharing to figure out what is going on.

Otto

To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.

Dipen Patel

unread,
May 23, 2015, 11:38:36 AM5/23/15
to ngx-pagesp...@googlegroups.com
Hello i am using nginx version: nginx/1.7.7 + ngx_pagespeed-release-1.8.31.4-beta.
so we got below error and nginx is not working.

 tail -f logs/error.log
2015/05/23 23:25:17 [alert] 21453#0: worker process 21607 exited on signal 6
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid




Jeff Kaufman

unread,
May 28, 2015, 10:01:39 AM5/28/15
to ngx-pagesp...@googlegroups.com
That looks like a segfault / memory issue. Did it print any kind of
backtrace or leave a core dump? If not, could you do:

* add this to your nginx configuration:
worker_rlimit_core 500M;
working_directory /tmp/;

* then when it happens again:
gdb /path/to/nginx /tmp/nginx.core
> backtrace full

And send us the backtrace?
Reply all
Reply to author
Forward
0 new messages