编译参数:
nginx version: openresty/1.19.3.2
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu116.04.12)
built with OpenSSL 1.1.1k 25 Mar 2021
TLS SNI support enabled
configure arguments: --prefix=/data/openresty/nginx --with-cc-opt='-O2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -DNGX_LUA_ABORT_AT_PANIC -I/data/openresty/zlib/include -I/data/openresty/pcre/include -I/data/openresty/openssl111/include' --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.19 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../ngx_stream_lua-0.0.9 --with-ld-opt='-Wl,-rpath,/data/openresty/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/data/openresty/zlib/lib -L/data/openresty/pcre/lib -L/data/openresty/openssl111/lib -Wl,-rpath,/data/openresty/zlib/lib:/data/openresty/pcre/lib:/data/openresty/openssl111/lib' --with-file-aio --with-pcre-jit --with-compat --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_slice_module --with-threads --add-module=/opt/openresty/openresty/modules/nginx-upsync-module-v2.1.3.2 --with-stream
DWARF信息
objdump --dwarf=str /data/openresty/nginx/sbin/nginx | wc -l
14417
符号表
nm -l -a -A /data/openresty/nginx/sbin/nginx | grep 'ngx_cycle' | grep ' B '
/data/openresty/nginx/sbin/nginx:0000000000c0e590 B ngx_cycle /opt/openresty/openresty/build/nginx-1.19.3/src/core/ngx_cycle.c:21
/data/openresty/nginx/sbin/nginx:0000000000c0e540 B ngx_dump_config /opt/openresty/openresty/build/nginx-1.19.3/src/core/ngx_cycle.c:29
/data/openresty/nginx/sbin/nginx:0000000000c0e560 B ngx_old_cycles /opt/openresty/openresty/build/nginx-1.19.3/src/core/ngx_cycle.c:22
/data/openresty/nginx/sbin/nginx:0000000000c0e588 B ngx_quiet_mode /opt/openresty/openresty/build/nginx-1.19.3/src/core/ngx_cycle.c:30
/data/openresty/nginx/sbin/nginx:0000000000c0e548 B ngx_test_config /opt/openresty/openresty/build/nginx-1.19.3/src/core/ngx_cycle.c:28
进程信息
root 32564 0.0 0.1 139800 46996 ? Ss 05:57 0:00 nginx: master process /data/openresty/nginx/sbin/nginx -g daemon on; master_process on;
root 32565 0.4 0.2 155244 66720 ? S 05:57 1:09 nginx: worker process
systemtap的错误:
semantic error: while processing probe process("/data/openresty_package/bin/ubuntu-16.04-48e63af-v0.1.4-2021-09-23T10:48:13+00:00/openresty/nginx/sbin/nginx").function("ngx_process_events_and_timers@src/event/ngx_event.c:194") from: process("/data/openresty_package/bin/ubuntu-16.04-48e63af-v0.1.4-2021-09-23T10:48:13+00:00/openresty/nginx/sbin/nginx").function("ngx_process_events_and_timers")
semantic error: unable to find global 'ngx_cycle' in 00/openresty/nginx/sbin/nginx, in ngx_cycle.c: operator '@var' at <input>:12:17
source: part = &@var("ngx_cycle@ngx_cycle.c")->shared_memory->part
^
semantic error: unable to find global 'ngx_cycle' in 13+00, in ngx_cycle.c: operator '@var' at :12:17
source: part = &@var("ngx_cycle@ngx_cycle.c")->shared_memory->part
^
semantic error: unable to find global 'ngx_cycle' in 48, in ngx_cycle.c: operator '@var' at :12:17
source: part = &@var("ngx_cycle@ngx_cycle.c")->shared_memory->part
^
semantic error: unable to find global 'ngx_cycle' in /data/openresty_package/bin/ubuntu-16.04-48e63af-v0.1.4-2021-09-23T10, in ngx_cycle.c: operator '@var' at :12:17
source: part = &@var("ngx_cycle@ngx_cycle.c")->shared_memory->part
^
Pass 2: analysis failed. [man error::pass2]
systemtap的参数
Systemtap translator/driver (version 2.9/0.165, Debian version 2.9-2ubuntu2.1 (xenial))
Copyright (C) 2005-2015 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: AVAHI LIBSQLITE3 NLS NSS TR1_UNORDERED_MAP