Comments (5)
I don't know why OpenSSL initialization caused core dump, does the original nginx work fine?
Execute ./configure --prefix=/usr/local/nginx_fstack --with-ff_module --with-debug
and recompile.
Paste the backtrace again.
from f-stack.
I have been already use "--with-debug", and nginx is more than 10M Bytes.
linux-1ryy:/usr/local/nginx_fstack/sbin # ll
-rwxr-xr-x 1 root root 10390160 Jun 17 15:22 nginx
-rwxr-xr-x 1 root root 5929968 Jun 17 11:35 nginx.old
I try to gdb nginx, and check where it happends.
from f-stack.
Nginx 1.12 can work well on this machine, but nginx_fstack (nginx 1.11 ) always go wrong.
And it receive SIGSEGV before main() function,
Does the ff-stack have any openssl-version requirements?
- gdb /usr/local/nginx_fstack/sbin/nginx
- Reading symbols from /usr/local/nginx_fstack/sbin/nginx...done.
- (gdb) b main
- Breakpoint 1 at 0x42e0f2: file src/core/nginx.c, line 192.
- (gdb) run config.ini -c 1 --proc-type=primary --num-procs=1 --proc-id=0
- Starting program: /usr/local/nginx_fstack/sbin/nginx config.ini -c 1 --proc-type=primary --num-procs=1 --proc-id=0
- Missing separate debuginfos, use: zypper install glibc-debuginfo-2.19-31.9.x86_64
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/lib64/libthread_db.so.1".
- Program received signal SIGSEGV, Segmentation fault.
- 0x0000000000000000 in ?? ()
- Missing separate debuginfos, use: zypper install libopenssl1_0_0-debuginfo-1.0.1i-34.1.x86_64
- (gdb) bt
- #0 0x0000000000000000 in ?? ()
- #1 0x00007ffff6b3dae1 in RAND_poll () from /lib64/libcrypto.so.1.0.0
- #2 0x00007ffff6b3c8b4 in ssleay_rand_bytes () from /lib64/libcrypto.so.1.0.0
- #3 0x00007ffff6b3d1d3 in ?? () from /lib64/libcrypto.so.1.0.0
- #4 0x00007ffff6bab8e5 in ?? () from /lib64/libcrypto.so.1.0.0
- #5 0x00007ffff6bac00f in FIPS_drbg_instantiate () from /lib64/libcrypto.so.1.0.0
- #6 0x00007ffff6b3d773 in RAND_init_fips () from /lib64/libcrypto.so.1.0.0
- #7 0x00007ffff6ab7110 in OPENSSL_init_library () from /lib64/libcrypto.so.1.0.0
- #8 0x00007ffff7dea92a in call_init.part () from /lib64/ld-linux-x86-64.so.2
- #9 0x00007ffff7deaa13 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
- #10 0x00007ffff7ddd1ca in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
- #11 0x0000000000000007 in ?? ()
- #12 0x00007fffffffe688 in ?? ()
- #13 0x00007fffffffe6ab in ?? ()
- #14 0x00007fffffffe6b6 in ?? ()
- #15 0x00007fffffffe6b9 in ?? ()
- #16 0x00007fffffffe6bb in ?? ()
- #17 0x00007fffffffe6cf in ?? ()
- #18 0x00007fffffffe6dd in ?? ()
- #19 0x0000000000000000 in ?? ()
from f-stack.
Thanks for LogWang's help, it works ok on suse12.
from f-stack.
And something should be taken in account, some funcs is replaced before main() executed. such as:
6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol strtoull' [GLIBC_2.2.5] 6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol
strstr' [GLIBC_2.2.5]
6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libpthread.so.0 [0]: normal symbol open' [GLIBC_2.2.5] 6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol
flock' [GLIBC_2.2.5]
6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol dirfd' [GLIBC_2.2.5] 6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol
fnmatch' [GLIBC_2.2.5]
6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol closedir' [GLIBC_2.2.5] 6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol
qsort' [GLIBC_2.2.5]
6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol backtrace' [GLIBC_2.2.5] 6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol
backtrace_symbols' [GLIBC_2.2.5]
6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol free' [GLIBC_2.2.5] 6961: binding file /usr/local/nginx_fstack/sbin/nginx [0] to /lib64/libc.so.6 [0]: normal symbol
abort' [GLIBC_2.2.5]
These funcs in glibc are replaced by same name function in nginx bin file,
Is there any good way to correct it?
from f-stack.
Related Issues (20)
- Nginx becomes unresponsive when running in the multiprocess mode on an AVX2 machine. HOT 1
- In the consumer mode Fstack has pool performance comparing to Linux socket HOT 3
- How to add a NAT policy? HOT 2
- Failed during "f-stack/lib" make HOT 4
- make error in f-stack/lib HOT 2
- Meet a problem on Ubuntu22.04 HOT 1
- Support DPDK LTS HOT 3
- IPv6 address not pingable HOT 1
- DPDK: unable to ping DPDK-kni-captured NIC port HOT 2
- Cannot ping config.ini ip after run helloword HOT 2
- Unable to establish communication with the assigned IP HOT 3
- SCTP support
- [Security] Buffer overflow in freebsd/contrib/openzfs/module/lua/ldo.c
- How to config bonding mode?
- F-Stack multiple process howto
- How to set a specified IPv6 address to ff_bind() without error?
- Does F-stack support ENA on AWS? HOT 2
- helloworld_epoll --conf ../config.ini --proc-type=primary --proc-id=0 fail to bind port1 192.168.1.3 HOT 1
- Failed to launch multiple nginx workers using vmxnet3 driver HOT 1
- F-Stack Redis does not seems to listen on port 6379
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from f-stack.