ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nginx -t > Illegal instruction


  • To: nginx-ru@xxxxxxxxx
  • Subject: nginx -t > Illegal instruction
  • From: Sergey Talchuk <tals1975@xxxxxxxxx>
  • Date: Tue, 15 Oct 2013 18:14:21 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wbt4+1D4GcP/4Ecc4gzjAhDvd5uXgyCan3y4ngfvhjo=; b=qoX8HkOOYRfJmM5LBSRrYABU8sDZ2FSQXopD22HlgGt9JboHbq5WM9coL95wFWv0US ZvAoCFEDsBOco5PknzI2QmoHAB2fxAUPo0bJO+v+cL2WURQYx5MCnKhOhAxZsgovnFra b33L9pR8ELetmuyAyvcFsMJ5qWTYL3JHhn9BjKug5bi/jlwk19WSBShbFHbPUMGdXR3r 33OdnHsxNC09Yjg4HzyVEn6CbvMeRjv92KRBturV4Hm4jxVvPtYi5AoQIU07NULRxsOT CBjDXQCozTl+ONT8B6khye2iBNhlSiIW/KGNQGjISMOZpMG4hWi/x+dZA4TCy81g1HfJ a3Gg==

÷ÓÅÍ ÐÒÉ×ÅÔ!

ÓÏÂÒÁÌ nginx ÄÌÑ Ó×ÏÅÊ ÓÉÓÔÅÍÙ ÂÅÚ ÐÒÏÂÌÅÍ (ÓÏÂÉÒÁÌ ÎÁ ÎÅÊ ÖÅ). ôÏÌØËÏ ÐÏÈÏÖÅ ÐÒÉ ÚÁÐÕÓËÅ nginx -t ÎÅ ÍÏÖÅÔ ÏÐÒÅÄÅÌÉÔØ ÔÉÐ ÐÒÏÃÅÓÓÏÒÁ. ë ÓÏÖÁÌÅÎÉÀ, ÓÉÓÔÅÍÁ ÎÁÈÏÄÉÔÓÑ ÎÁ ÎÏÓÉÔÅÌÅ ÄÏÓÔÕÐÎÏÍ ÔÏÌØËÏ ÄÌÑ ÞÔÅÎÉÑ. ðÏÜÔÏÍÕ ÏÔÄÅÂÁÖÉÔØ ÓÉÓÔÅÍÎÙÅ ÂÉÂÌÉÏÔÅËÉ ÎÅ ÐÒÅÄÓÔÁ×ÌÑÅÔÓÑ ×ÏÚÍÏÖÎÙÍ.š îÁÄÅÀÓØ ÎÁ ÐÏÍÏÝØ.

úÁÒÁÎÅÅ ÓÐÁÓÉÂÏ.
óÅÒÇÅÊ

linux 2.4.28
uClibc
i486

======
$ nginx -V
nginx version: nginx/1.5.6
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-

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-

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-

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-

http_gzip_module --without-http_ssi_module --without-http_userid_module --without-http_access_module --without-http_auth_basic_module --without-

http_autoindex_module --without-http_geo_module --without-http_map_module --without-http_referer_module --without-http_rewrite_module --without-

http_proxy_module --without-http_fastcgi_module --without-http_memcached_module --without-http_limit_conn_module --without-http_empty_gif_module

--without-http_browser_module --without-http_upstream_ip_hash_module --without-mail_pop3_module --without-mail_imap_module --without-

mail_smtp_module --without-pcre --with-debug


=======
CFLAGS="-g -O0" \
./configure \
--prefix=/mnt/C/sys/share/nginx \
--sbin-path=/mnt/C/sys/sbin/nginx \
--conf-path=/mnt/C/sys/etc/nginx/nginx.conf \
--error-log-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-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-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-http_gzip_module \
--without-http_ssi_module \
--without-http_userid_module \
--without-http_access_module \
--without-http_auth_basic_module \
--without-http_autoindex_module \
--without-http_geo_module \
--without-http_map_module \
--without-http_referer_module \
--without-http_rewrite_module \
--without-http_proxy_module \
--without-http_fastcgi_module \
--without-http_memcached_module \
--without-http_limit_conn_module \
--without-http_empty_gif_module \
--without-http_browser_module \
--without-http_upstream_ip_hash_module \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
--without-pcre \
--with-debug

sed -i -e 's/#ifndef NGX_HAVE_GNU_CRYPT_R/#if 0/' src/os/unix/ngx_linux_config.h

make


=======
(gdb) run
Starting program: /tmp/mnt/C/sys/sbin/nginx

Program received signal SIGILL, Illegal instruction.
0x0805dca5 in ngx_cpuid (i=0, buf=0xbffff950) at src/core/ngx_cpuinfo.c:30
30ššššš src/core/ngx_cpuinfo.c: No such file or directory.
ššššššš in src/core/ngx_cpuinfo.c
(gdb) bt
#0š 0x0805dca5 in ngx_cpuid (i=0, buf=0xbffff950) at src/core/ngx_cpuinfo.c:30
#1š 0x0805dbbb in ngx_cpuinfo () at src/core/ngx_cpuinfo.c:84
#2š 0x0806e4f7 in ngx_os_init (log=0x80c27a8) at src/os/unix/ngx_posix_init.c:60
#3š 0x08049e21 in main (argc=1, argv=0xbffffb94) at src/core/nginx.c:312
#4š 0x40100b49 in __uClibc_main () from /lib/libc.so.0
(gdb) backtrace full
#0š 0x0805dca5 in ngx_cpuid (i=0, buf=0xbffff950) at src/core/ngx_cpuinfo.c:30
No locals.
#1š 0x0805dbbb in ngx_cpuinfo () at src/core/ngx_cpuinfo.c:84
ššššššš vendor = (u_char *) 0x806e4d7 "\203‘\020‘‘‘\f\b\203=‘‘\f\b"
ššššššš vbuf = {0, 0, 0, 0, 0}
ššššššš cpu = {3221224340, 3221223832, 1073744062, 1073762344}
ššššššš model = 3221224588
#2š 0x0806e4f7 in ngx_os_init (log=0x80c27a8) at src/os/unix/ngx_posix_init.c:60
ššššššš n = 0
#3š 0x08049e21 in main (argc=1, argv=0xbffffb94) at src/core/nginx.c:312
ššššššš i = -1073743152
ššššššš log = (ngx_log_t *) 0x80c27a8
ššššššš cycle = (ngx_cycle_t *) 0xbffffc8c
ššššššš init_cycle = {conf_ctx = 0x0, pool = 0x80cd080, log = 0x80c27a8, new_log = {log_level = 0, file = 0x0, connection = 0, handler = 0, data = "">
0x0, action = "" next = 0x0}, log_use_stderr = 0, files = 0x0, free_connections = 0x0,
š free_connection_n = 0, reusable_connections_queue = {prev = 0x0, next = 0x0}, listening = {elts = 0x0, nelts = 0, size = 0, nalloc = 0, pool =

0x0}, paths = {elts = 0x0, nelts = 0, size = 0, nalloc = 0, pool = 0x0}, open_files = {
ššš last = 0x0, part = {elts = 0x0, nelts = 0, next = 0x0}, size = 0, nalloc = 0, pool = 0x0}, shared_memory = {last = 0x0, part = {elts = 0x0,

nelts = 0, next = 0x0}, size = 0, nalloc = 0, pool = 0x0}, connection_n = 0, files_n = 0,
š connections = 0x0, read_events = 0x0, write_events = 0x0, old_cycle = 0x0, conf_file = {len = 31, data = ""

"/mnt/C/sys/etc/nginx/nginx.conf"}, conf_param = {len = 0, data = "" conf_prefix = {len = 21,
ššš data = "" "/mnt/C/sys/etc/nginx/nginx.conf"}, prefix = {len = 23, data = "" "/mnt/C/sys/share/nginx/"}, lock_file = {len = 0,

data = "" hostname = {len = 0, data = "">ššššššš ccf = (ngx_core_conf_t *) 0x0
#4š 0x40100b49 in __uClibc_main () from /lib/libc.so.0
No symbol table info available.

===========

cat /proc/cpuinfo
processoršššššš : 0
vendor_idšššššš : CyrixInstead
cpu familyššššš : 4
modelšššššššššš : 1
model nameššššš : Cx486SLC
steppingššššššš : unknown
fdiv_bugššššššš : no
hlt_bugšššššššš : no
f00f_bugššššššš : no
coma_bugššššššš : no
fpušššššššššššš : no
fpu_exceptionšš : no
cpuid levelšššš : -1
wpššššššššššššš : yes
flagsšššššššššš :
bogomipsššššššš : 44.33

===========
$ nginx -t
Illegal instruction


$ strace nginx -t
execve("/usr/sbin/nginx", ["nginx", "-t"], [/* 31 vars */]) = 0
old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40005000
stat("/etc/ld.so.cache", 0xbffff874)ššš = -1 ENOENT (No such file or directory)
open("/lib/libcrypto.so.0.9.7", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libcrypto.so.0.9.7", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libcrypto.so.0.9.7", O_RDONLY) = 4
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40006000
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
old_mmap(NULL, 876544, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40007000
old_mmap(0x40007000, 783880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c00000000) = 0x40007000
old_mmap(0x400c7000, 73020, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c000bf000) = 0x400c7000
old_mmap(0x400d9000, 14264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x400d9000
close(4)ššššššššššššššššššššššššššššššš = 0
munmap(0x40006000, 4096)ššššššššššššššš = 0
open("/lib/libc.so.0", O_RDONLY)ššššššš = 4
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40006000
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
old_mmap(NULL, 606208, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x400dd000
old_mmap(0x400dd000, 574824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c00000000) = 0x400dd000
old_mmap(0x4016a000, 4488, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c0008d000) = 0x4016a000
old_mmap(0x4016c000, 19256, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x4016c000
close(4)ššššššššššššššššššššššššššššššš = 0
munmap(0x40006000, 4096)ššššššššššššššš = 0
open("/lib/libdl.so.0", O_RDONLY)šššššš = 4
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40006000
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
old_mmap(NULL, 12288, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xbffff90c00000000) = 0x40171000
old_mmap(0x40171000, 4820, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c00000000) = 0x40171000
old_mmap(0x40173000, 1052, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xbffff90c00001000) = 0x40173000
close(4)ššššššššššššššššššššššššššššššš = 0
munmap(0x40006000, 4096)ššššššššššššššš = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
brk(0)ššššššššššššššššššššššššššššššššš = 0x80ccaa0
brk(0x80cdaa0)ššššššššššššššššššššššššš = 0x80cdaa0
brk(0x80ce000)ššššššššššššššššššššššššš = 0x80ce000
gettimeofday({1381849325, 873891}, NULL) = 0
open("/etc/TZ", O_RDONLY)šššššššššššššš = 4
read(4, "FET-3\n", 68)ššššššššššššššššš = 6
read(4, "", 62)šššššššššššššššššššššššš = 0
close(4)ššššššššššššššššššššššššššššššš = 0
getpid()ššššššššššššššššššššššššššššššš = 10038
open("/mnt/C/sys/var/nginx/log/error.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0644) = 4
uname({sys="Linux", node="myhost", ...})š = 0
_sysctl({{CTL_KERN, KERN_RTSIGMAX}, 2, 0x80cca54, 4, (nil), 0}) = 0
--- SIGILL (Illegal instruction) @ 0 (0) ---
+++ killed by SIGILL +++
Illegal instruction


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.