<div dir="ltr"><div><div><div>÷ÓÅÍ ÐÒÉ×ÅÔ!<br><br></div>ÓÏÂÒÁÌ nginx ÄÌÑ Ó×ÏÅÊ ÓÉÓÔÅÍÙ ÂÅÚ ÐÒÏÂÌÅÍ (ÓÏÂÉÒÁÌ ÎÁ ÎÅÊ ÖÅ). ôÏÌØËÏ ÐÏÈÏÖÅ ÐÒÉ ÚÁÐÕÓËÅ nginx -t ÎÅ ÍÏÖÅÔ ÏÐÒÅÄÅÌÉÔØ ÔÉÐ ÐÒÏÃÅÓÓÏÒÁ. ë ÓÏÖÁÌÅÎÉÀ, ÓÉÓÔÅÍÁ ÎÁÈÏÄÉÔÓÑ ÎÁ ÎÏÓÉÔÅÌÅ ÄÏÓÔÕÐÎÏÍ ÔÏÌØËÏ ÄÌÑ ÞÔÅÎÉÑ. ðÏÜÔÏÍÕ ÏÔÄÅÂÁÖÉÔØ ÓÉÓÔÅÍÎÙÅ ÂÉÂÌÉÏÔÅËÉ ÎÅ ÐÒÅÄÓÔÁ×ÌÑÅÔÓÑ ×ÏÚÍÏÖÎÙÍ.š îÁÄÅÀÓØ ÎÁ ÐÏÍÏÝØ.<br>
<br></div>úÁÒÁÎÅÅ ÓÐÁÓÉÂÏ.<br></div>óÅÒÇÅÊ<br><br>linux 2.4.28<br>uClibc<br>i486<br><br>======<br>$ nginx -V<br>nginx version: nginx/1.5.6<br>configure arguments: --prefix=/mnt/C/sys/share/nginx --sbin-path=/mnt/C/sys/sbin/nginx --conf-path=/mnt/C/sys/etc/nginx/nginx.conf --error-log-<br>
<br>path=/mnt/C/sys/var/nginx/log/error.log --pid-path=/mnt/C/sys/var/nginx/run/nginx.pid --lock-path=/mnt/C/sys/var/nginx/run/nginx.lock --http-log-<br><br>path=/mnt/C/sys/var/nginx/log/access.log --http-client-body-temp-path=/mnt/C/sys/var/nginx/tmp/client_body_temp --http-proxy-temp-<br>
<br>path=/mnt/C/sys/var/nginx/tmp/proxy_temp --http-fastcgi-temp-path=/mnt/C/sys/var/nginx/tmp/fastcgi_temp --without-http_charset_module --without-<br><br>http_gzip_module --without-http_ssi_module --without-http_userid_module --without-http_access_module --without-http_auth_basic_module --without-<br>
<br>http_autoindex_module --without-http_geo_module --without-http_map_module --without-http_referer_module --without-http_rewrite_module --without-<br><br>http_proxy_module --without-http_fastcgi_module --without-http_memcached_module --without-http_limit_conn_module --without-http_empty_gif_module <br>
<br>--without-http_browser_module --without-http_upstream_ip_hash_module --without-mail_pop3_module --without-mail_imap_module --without-<br><br>mail_smtp_module --without-pcre --with-debug<br><br><br>=======<br>CFLAGS="-g -O0" \<br>
./configure \<br>--prefix=/mnt/C/sys/share/nginx \<br>--sbin-path=/mnt/C/sys/sbin/nginx \<br>--conf-path=/mnt/C/sys/etc/nginx/nginx.conf \<br>--error-log-path=/mnt/C/sys/var/nginx/log/error.log \<br>--pid-path=/mnt/C/sys/var/nginx/run/nginx.pid \<br>
--lock-path=/mnt/C/sys/var/nginx/run/nginx.lock \<br>--http-log-path=/mnt/C/sys/var/nginx/log/access.log \<br>--http-client-body-temp-path=/mnt/C/sys/var/nginx/tmp/client_body_temp \<br>--http-proxy-temp-path=/mnt/C/sys/var/nginx/tmp/proxy_temp \<br>
--http-fastcgi-temp-path=/mnt/C/sys/var/nginx/tmp/fastcgi_temp \<br>--without-http_charset_module \<br>--without-http_gzip_module \<br>--without-http_ssi_module \<br>--without-http_userid_module \<br>--without-http_access_module \<br>
--without-http_auth_basic_module \<br>--without-http_autoindex_module \<br>--without-http_geo_module \<br>--without-http_map_module \<br>--without-http_referer_module \<br>--without-http_rewrite_module \<br>--without-http_proxy_module \<br>
--without-http_fastcgi_module \<br>--without-http_memcached_module \<br>--without-http_limit_conn_module \<br>--without-http_empty_gif_module \<br>--without-http_browser_module \<br>--without-http_upstream_ip_hash_module \<br>
--without-mail_pop3_module \<br>--without-mail_imap_module \<br>--without-mail_smtp_module \<br>--without-pcre \<br>--with-debug<br><br>sed -i -e 's/#ifndef NGX_HAVE_GNU_CRYPT_R/#if 0/' src/os/unix/ngx_linux_config.h<br>
<br>make<br><br><br>=======<br>(gdb) run<br>Starting program: /tmp/mnt/C/sys/sbin/nginx<br><br>Program received signal SIGILL, Illegal instruction.<br>0x0805dca5 in ngx_cpuid (i=0, buf=0xbffff950) at src/core/ngx_cpuinfo.c:30<br>
30ššššš src/core/ngx_cpuinfo.c: No such file or directory.<br>ššššššš in src/core/ngx_cpuinfo.c<br>(gdb) bt<br>#0š 0x0805dca5 in ngx_cpuid (i=0, buf=0xbffff950) at src/core/ngx_cpuinfo.c:30<br>#1š 0x0805dbbb in ngx_cpuinfo () at src/core/ngx_cpuinfo.c:84<br>
#2š 0x0806e4f7 in ngx_os_init (log=0x80c27a8) at src/os/unix/ngx_posix_init.c:60<br>#3š 0x08049e21 in main (argc=1, argv=0xbffffb94) at src/core/nginx.c:312<br>#4š 0x40100b49 in __uClibc_main () from /lib/libc.so.0<br>(gdb) backtrace full<br>
#0š 0x0805dca5 in ngx_cpuid (i=0, buf=0xbffff950) at src/core/ngx_cpuinfo.c:30<br>No locals.<br>#1š 0x0805dbbb in ngx_cpuinfo () at src/core/ngx_cpuinfo.c:84<br>ššššššš vendor = (u_char *) 0x806e4d7 "\203‘\020‘‘‘\f\b\203=‘‘\f\b"<br>
ššššššš vbuf = {0, 0, 0, 0, 0}<br>ššššššš cpu = {3221224340, 3221223832, 1073744062, 1073762344}<br>ššššššš model = 3221224588<br>#2š 0x0806e4f7 in ngx_os_init (log=0x80c27a8) at src/os/unix/ngx_posix_init.c:60<br>ššššššš n = 0<br>
#3š 0x08049e21 in main (argc=1, argv=0xbffffb94) at src/core/nginx.c:312<br>ššššššš i = -1073743152<br>ššššššš log = (ngx_log_t *) 0x80c27a8<br>ššššššš cycle = (ngx_cycle_t *) 0xbffffc8c<br>ššššššš init_cycle = {conf_ctx = 0x0, pool = 0x80cd080, log = 0x80c27a8, new_log = {log_level = 0, file = 0x0, connection = 0, handler = 0, data = <br>
<br>0x0, action = 0x0, next = 0x0}, log_use_stderr = 0, files = 0x0, free_connections = 0x0,<br>š free_connection_n = 0, reusable_connections_queue = {prev = 0x0, next = 0x0}, listening = {elts = 0x0, nelts = 0, size = 0, nalloc = 0, pool = <br>
<br>0x0}, paths = {elts = 0x0, nelts = 0, size = 0, nalloc = 0, pool = 0x0}, open_files = {<br>ššš last = 0x0, part = {elts = 0x0, nelts = 0, next = 0x0}, size = 0, nalloc = 0, pool = 0x0}, shared_memory = {last = 0x0, part = {elts = 0x0, <br>
<br>nelts = 0, next = 0x0}, size = 0, nalloc = 0, pool = 0x0}, connection_n = 0, files_n = 0,<br>š connections = 0x0, read_events = 0x0, write_events = 0x0, old_cycle = 0x0, conf_file = {len = 31, data = 0x80af0e0 <br><br>
"/mnt/C/sys/etc/nginx/nginx.conf"}, conf_param = {len = 0, data = 0x0}, conf_prefix = {len = 21,<br>ššš data = 0x80af0e0 "/mnt/C/sys/etc/nginx/nginx.conf"}, prefix = {len = 23, data = 0x80af0b6 "/mnt/C/sys/share/nginx/"}, lock_file = {len = 0, <br>
<br>data = 0x0}, hostname = {len = 0, data = 0x0}}<br>ššššššš ccf = (ngx_core_conf_t *) 0x0<br>#4š 0x40100b49 in __uClibc_main () from /lib/libc.so.0<br>No symbol table info available.<br><br>===========<br><br>cat /proc/cpuinfo<br>
processoršššššš : 0<br>vendor_idšššššš : CyrixInstead<br>cpu familyššššš : 4<br>modelšššššššššš : 1<br>model nameššššš : Cx486SLC<br>steppingššššššš : unknown<br>fdiv_bugššššššš : no<br>hlt_bugšššššššš : no<br>f00f_bugššššššš : no<br>
coma_bugššššššš : no<br>fpušššššššššššš : no<br>fpu_exceptionšš : no<br>cpuid levelšššš : -1<br>wpššššššššššššš : yes<br>flagsšššššššššš :<br>bogomipsššššššš : 44.33<br><br>===========<br>$ nginx -t<br>Illegal instruction<br>
<br><br>$ strace nginx -t<br>execve("/usr/sbin/nginx", ["nginx", "-t"], [/* 31 vars */]) = 0<br>old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40005000<br>
stat("/etc/ld.so.cache", 0xbffff874)ššš = -1 ENOENT (No such file or directory)<br>open("/lib/libcrypto.so.0.9.7", O_RDONLY) = -1 ENOENT (No such file or directory)<br>open("/lib/libcrypto.so.0.9.7", O_RDONLY) = -1 ENOENT (No such file or directory)<br>
open("/usr/lib/libcrypto.so.0.9.7", O_RDONLY) = 4<br>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40006000<br>read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\266\2\0004\0\0\0"..., 4096) = 4096<br>
old_mmap(NULL, 876544, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40007000<br>old_mmap(0x40007000, 783880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c00000000) = 0x40007000<br>old_mmap(0x400c7000, 73020, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c000bf000) = 0x400c7000<br>
old_mmap(0x400d9000, 14264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x400d9000<br>close(4)ššššššššššššššššššššššššššššššš = 0<br>munmap(0x40006000, 4096)ššššššššššššššš = 0<br>
open("/lib/libc.so.0", O_RDONLY)ššššššš = 4<br>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40006000<br>read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\377\0\0004\0\0\0"..., 4096) = 4096<br>
old_mmap(NULL, 606208, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x400dd000<br>old_mmap(0x400dd000, 574824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c00000000) = 0x400dd000<br>old_mmap(0x4016a000, 4488, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c0008d000) = 0x4016a000<br>
old_mmap(0x4016c000, 19256, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x4016c000<br>close(4)ššššššššššššššššššššššššššššššš = 0<br>munmap(0x40006000, 4096)ššššššššššššššš = 0<br>
open("/lib/libdl.so.0", O_RDONLY)šššššš = 4<br>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40006000<br>read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \7\0\0004\0\0\0"..., 4096) = 4096<br>
old_mmap(NULL, 12288, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40171000<br>old_mmap(0x40171000, 4820, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c00000000) = 0x40171000<br>old_mmap(0x40173000, 1052, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c00001000) = 0x40173000<br>
close(4)ššššššššššššššššššššššššššššššš = 0<br>munmap(0x40006000, 4096)ššššššššššššššš = 0<br>ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0<br>ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0<br>
brk(0)ššššššššššššššššššššššššššššššššš = 0x80ccaa0<br>brk(0x80cdaa0)ššššššššššššššššššššššššš = 0x80cdaa0<br>brk(0x80ce000)ššššššššššššššššššššššššš = 0x80ce000<br>gettimeofday({1381849325, 873891}, NULL) = 0<br>open("/etc/TZ", O_RDONLY)šššššššššššššš = 4<br>
read(4, "FET-3\n", 68)ššššššššššššššššš = 6<br>read(4, "", 62)šššššššššššššššššššššššš = 0<br>close(4)ššššššššššššššššššššššššššššššš = 0<br>getpid()ššššššššššššššššššššššššššššššš = 10038<br>open("/mnt/C/sys/var/nginx/log/error.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0644) = 4<br>
uname({sys="Linux", node="myhost", ...})š = 0<br>_sysctl({{CTL_KERN, KERN_RTSIGMAX}, 2, 0x80cca54, 4, (nil), 0}) = 0<br>--- SIGILL (Illegal instruction) @ 0 (0) ---<br>+++ killed by SIGILL +++<br>Illegal instruction<br>
<br><br></div>