agentzh,
我在检查一个共享内存问题时运行 ngx-shm 提示下面的问题,请问可能是什么原因?列表时报几个shdict坏了,读其中一个好的的时候继续失败。操作系统版本和软件版本在最下面。
[root@ptest nginx-systemtap-toolkit]# ./ngx-shm -p 345
Tracing 345 (/usr/local/openresty/nginx/sbin/nginx)...
WARNING: shm zone "xingxing" is corrupted or not yet loaded into the process memory space: pool != pool->addr (pool->addr: 0x0)
shm zone "xingxing"
owner: ngx_http_lua_shdict
total size: 6144000 KB
WARNING: shm zone "xingxing1G" is corrupted or not yet loaded into the process memory space: pool != pool->addr (pool->addr: 0x0)
shm zone "xingxing1G"
owner: ngx_http_lua_shdict
total size: 1024000 KB
shm zone "xx1"
owner: ngx_http_lua_shdict
total size: 1024000 KB
shm zone "xx2"
owner: ngx_http_lua_shdict
total size: 1024000 KB
shm zone "xx3"
owner: ngx_http_lua_shdict
total size: 1024000 KB
WARNING: shm zone "xx-test" is corrupted or not yet loaded into the process memory space: pool != pool->addr (pool->addr: 0x0)
shm zone "xx-test"
owner: ngx_http_lua_shdict
total size: 10240 KB
Use the -n <zone> option to see more details about each zone.
39 microseconds elapsed in the probe.
[root@ptest nginx-systemtap-toolkit]# ./ngx-shm -p 345 -n xx2
ERROR: read fault [man error::fault] at 0x00002aac9eb6b0e0 (addr) near operator '@cast' at <input>:76:26
Tracing 345 (/usr/local/openresty/nginx/sbin/nginx)...
shm zone "xx2"
owner: ngx_http_lua_shdict
total size: 1024000 KB
WARNING: Number of errors: 1, skipped probes: 0
WARNING: /opt/bin/staprun exited with status: 1
Pass 5: run failed. [man error::pass5]
[root@ptest nginx-systemtap-toolkit]# uname -a
Linux ptest 2.6.18-371.4.1.el5.centos.plus #1 SMP Thu Jan 30 06:16:27 EST 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@ptest nginx-systemtap-toolkit]# /usr/local/openresty/nginx/sbin/nginx -V
nginx version: openresty/
1.5.8.1
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-54)
TLS SNI support disabled
configure arguments: --prefix=/usr/local/openresty/nginx --add-module=../ngx_devel_kit-0.2.19 --add-module=../echo-nginx-module-0.51 --add-module=../xss-nginx-module-0.04 --add-module=../ngx_coolkit-0.2rc1 --add-module=../set-misc-nginx-module-0.24 --add-module=../form-input-nginx-module-0.07 --add-module=../encrypted-session-nginx-module-0.03 --add-module=../srcache-nginx-module-0.25 --add-module=../ngx_lua-0.9.4 --add-module=../headers-more-nginx-module-0.25 --add-module=../array-var-nginx-module-0.03 --add-module=../memc-nginx-module-0.14 --add-module=../redis2-nginx-module-0.10 --add-module=../redis-nginx-module-0.3.7 --add-module=../auth-request-nginx-module-0.2 --add-module=../rds-json-nginx-module-0.13 --add-module=../rds-csv-nginx-module-0.05 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --with-pcre-jit --with-pcre-conf-opt=--enable-utf --with-pcre=/root/software/ngx_openresty-1.5.8.1/../pcre-8.34 --with-http_ssl_module
[root@ptest nginx-systemtap-toolkit]# /opt/bin/stap -v
A script must be specified.
Try '--help' for more information.
[root@passport94 nginx-systemtap-toolkit]# /opt/bin/stap -V
Systemtap translator/driver (version 2.3/0.156, non-git sources)
Copyright (C) 2005-2013 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: LIBRPM LIBSQLITE3 BOOST_SHARED_PTR TR1_UNORDERED_MAP NLS JAVA
谢谢