# pkg_info | grep nginx<br>nginx-devel-0.8.34  Robust and small WWW server<br><br># nginx -V<br>nginx version: nginx/HOSTNAME<br>configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt=&#39;-I /usr/local/include&#39; --with-ld-opt=&#39;-L /usr/local/lib&#39; --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=wwwuser --group=wwwgrp --with-file-aio --http-client-body-temp-path=/tmp/nginx/client_body_temp --http-proxy-temp-path=/usr/local/www/tmp/nginx/proxy_temp --http-fastcgi-temp-path=/tmp/nginx/fastcgi_temp --http-log-path=/var/log/nginx-access.log --with-http_flv_module --with-http_geoip_module --with-http_perl_module --with-http_realip_module --with-http_stub_status_module --add-module=/usr/ports/www/nginx-devel/work/nginx_uploadprogress_module-0.8 --with-pcre<br>
<br># tail -f nginx-error.log<br>2010/03/30 04:56:33 [alert] 22147#0: worker process 22202 exited on signal 11 (core dumped)<br>2010/03/30 04:56:38 [alert] 22147#0: worker process 22223 exited on signal 11 (core dumped)<br>
2010/03/30 04:56:42 [alert] 22147#0: worker process 22231 exited on signal 11 (core dumped)<br>2010/03/30 04:56:47 [alert] 22147#0: worker process 222383 exited on signal 11 (core dumped)<br><br># gdb -c /spool/core/nginx.core.22972 /usr/local/sbin/nginx<br>
<br><br>GNU gdb 6.1.1 [FreeBSD]<br>Copyright 2004 Free Software Foundation, Inc.<br>GDB is free software, covered by the GNU General Public License, and you are<br>welcome to change it and/or distribute copies of it under certain conditions.<br>
Type &quot;show copying&quot; to see the conditions.<br>There is absolutely no warranty for GDB.  Type &quot;show warranty&quot; for details.<br>This GDB was configured as &quot;amd64-marcel-freebsd&quot;...(no debugging symbols found)...<br>
Core was generated by `nginx&#39;.<br>Program terminated with signal 11, Segmentation fault.<br>Reading symbols from /lib/libcrypt.so.5...(no debugging symbols found)...done.<br>Loaded symbols for /lib/libcrypt.so.5<br>Reading symbols from /usr/local/lib/libpcre.so.0...(no debugging symbols found)...done.<br>
Loaded symbols for /usr/local/lib/libpcre.so.0<br>Reading symbols from /lib/libmd.so.5...(no debugging symbols found)...done.<br>Loaded symbols for /lib/libmd.so.5<br>Reading symbols from /lib/libz.so.5...(no debugging symbols found)...done.<br>
Loaded symbols for /lib/libz.so.5<br>Reading symbols from /usr/local/lib/libGeoIP.so.5...(no debugging symbols found)...done.<br>Loaded symbols for /usr/local/lib/libGeoIP.so.5<br>Reading symbols from /usr/local/lib/perl5/5.10.1/mach/CORE/libperl.so...(no debugging symbols found)...done.<br>
Loaded symbols for /usr/local/lib/perl5/5.10.1/mach/CORE/libperl.so<br>Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.<br>Loaded symbols for /lib/libm.so.5<br>Reading symbols from /lib/libutil.so.8...(no debugging symbols found)...done.<br>
Loaded symbols for /lib/libutil.so.8<br>Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.<br>Loaded symbols for /lib/libc.so.7<br>Reading symbols from /usr/local/lib/perl5/site_perl/5.10.1/mach/auto/nginx/nginx.so...(no debugging symbols found)...done.<br>
Loaded symbols for /usr/local/lib/perl5/site_perl/5.10.1/mach/auto/nginx/nginx.so<br>Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.<br>Loaded symbols for /libexec/ld-elf.so.1<br>#0  0x0000000800b24c63 in _GeoIP_seek_record () from /usr/local/lib/libGeoIP.so.5<br>
(gdb)<br>(gdb)<br>(gdb) bt<br>#0  0x0000000800b24c63 in _GeoIP_seek_record () from /usr/local/lib/libGeoIP.so.5<br>#1  0x0000000800b25208 in GeoIP_id_by_ipnum () from /usr/local/lib/libGeoIP.so.5<br>#2  0x0000000800b25259 in GeoIP_country_code_by_ipnum () from /usr/local/lib/libGeoIP.so.5<br>
#3  0x0000000000454b4c in ngx_http_file_cache_create_key ()<br>#4  0x0000000000439568 in ngx_http_get_indexed_variable ()<br>#5  0x000000000043c341 in ngx_http_script_copy_var_len_code ()<br>#6  0x000000000045c595 in ngx_http_file_cache_create_key ()<br>
#7  0x0000000000441d93 in ngx_http_upstream_hide_headers_hash ()<br>#8  0x00000000004386e6 in ngx_http_read_client_request_body ()<br>#9  0x000000000045b743 in ngx_http_file_cache_create_key ()<br>#10 0x0000000000460cf9 in ngx_http_upstream_init_ip_hash ()<br>
#11 0x000000000042eb8c in ngx_http_core_content_phase ()<br>#12 0x000000000042a03d in ngx_http_core_run_phases ()<br>#13 0x000000000042dc54 in ngx_http_named_location ()<br>#14 0x000000000042f39c in ngx_http_core_try_files_phase ()<br>
#15 0x000000000042a03d in ngx_http_core_run_phases ()<br>#16 0x0000000000432edc in ngx_http_test_reading ()<br>#17 0x0000000000433a05 in ngx_http_test_reading ()<br>#18 0x000000000041f79a in ngx_event_process_posted ()<br>
#19 0x0000000000424d3a in ngx_single_process_cycle ()<br>#20 0x000000000042384f in ngx_spawn_process ()<br>#21 0x0000000000425966 in ngx_master_process_cycle ()<br>#22 0x000000000040c36a in main ()<br>(gdb) q<br><br><br># cat nginx.conf<br>
<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><div style="margin-left: 40px;">http {<br></div><div style="margin-left: 40px;">...<br> geoip_country GeoIP.dat;<br>
...<br><br>location ~ \.php$ {<br>...<br>fastcgi_param  GEOIP_COUNTRY_CODE $geoip_country_code;<br clear="all">...<br>}<br>}<br></div></blockquote><br>-- <br>Yours sincerely,<br>Vladimir Getmanshchuk<br><br>UNIX System Administrator<br>
Openfilm, LLC<br><br>Email: <a href="mailto:vladget@openfilm.com">vladget@openfilm.com</a><br>Skype: vladimir.getmanshchuk<br><br>