Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why nginx coredump on Suse12 ? Give me some advice, please! #38

Closed
ghost opened this issue Jun 19, 2017 · 5 comments
Closed

Why nginx coredump on Suse12 ? Give me some advice, please! #38

ghost opened this issue Jun 19, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Jun 19, 2017

SUSE 12SP1, x86_64, gcc version 4.8.5 (SUSE Linux) , OpenSSL 1.0.1i-fips
All following steps are OK, except the last one core dump.

@whl739
Copy link
Member

whl739 commented Jun 19, 2017

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.

@ghost
Copy link
Author

ghost commented Jun 19, 2017

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.

@ghost
Copy link
Author

ghost commented Jun 19, 2017

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?

@whl739 whl739 closed this as completed in 10c5711 Jun 20, 2017
@ghost
Copy link
Author

ghost commented Jun 20, 2017

Thanks for LogWang's help, it works ok on suse12.

@ghost
Copy link
Author

ghost commented Jun 20, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant