You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/01 06:00:44 UTC

[GitHub] [apisix] pioneer-hash commented on issue #4351: request help: Apisix generates extra core.* files when it starts

pioneer-hash commented on issue #4351:
URL: https://github.com/apache/apisix/issues/4351#issuecomment-851841914


   > Can you use `bt` in gdb to get the full backtrace?
   > We need a minimal case to reproduce it.
   > Any interesting thing in the error.log?
   full backtrace:
   ```
   [e3base@bogo apisix-2.6]$ gdb -q openresty core.30419
   Reading symbols from /mios/ispthird/openresty/11931/nginx/sbin/nginx...done.
   warning: core file may not match specified executable file.
   [New LWP 30419]
   [Thread debugging using libthread_db enabled]
   Using host libthread_db library "/lib64/libthread_db.so.1".
   Core was generated by `openresty -p /e3base/openresty/apisix-2.6 -c /mios/ispthird/openresty/ap'.
   Program terminated with signal 11, Segmentation fault.
   #0  0x000000000069b4f2 in openssl_lh_strcasehash (c=0x7fef857ec98b <Address 0x7fef857ec98b out of bounds>) at crypto/lhash/lhash.c:361
   361     crypto/lhash/lhash.c: No such file or directory.
   Missing separate debuginfos, use: debuginfo-install glibc-2.17-196.el7.x86_64 libgcc-4.8.5-16.el7.x86_64 nss-softokn-freebl-3.28.3-6.el7.x86_64
   (gdb) bt
   #0  0x000000000069b4f2 in openssl_lh_strcasehash (c=0x7fef857ec98b <Address 0x7fef857ec98b out of bounds>) at crypto/lhash/lhash.c:361
   #1  0x00000000006a7444 in obj_name_hash (a=0x7fff0b530b00) at crypto/objects/o_names.c:166
   #2  0x000000000069b155 in getrn (rhash=<synthetic pointer>, data=0x7fff0b530b00, lh=0xbe51b0) at crypto/lhash/lhash.c:302
   #3  OPENSSL_LH_delete (lh=0xbe51b0, data=data@entry=0x7fff0b530b00) at crypto/lhash/lhash.c:135
   #4  0x00000000006a7a36 in lh_OBJ_NAME_delete (d=0x7fff0b530b00, lh=<optimized out>) at crypto/objects/obj_local.h:12
   #5  OBJ_NAME_remove (name=0x7fef857ec98b <Address 0x7fef857ec98b out of bounds>, type=<optimized out>) at crypto/objects/o_names.c:274
   #6  0x000000000069b44c in doall_util_fn (use_arg=0, func_arg=0x0, arg=0x0, func=<optimized out>, lh=0xbe51b0) at crypto/lhash/lhash.c:198
   #7  OPENSSL_LH_doall (lh=0xbe51b0, func=func@entry=0x6a7ab0 <names_lh_free_doall>) at crypto/lhash/lhash.c:206
   #8  0x00000000006a7c17 in lh_OBJ_NAME_doall (doall=0x6a7ab0 <names_lh_free_doall>, lh=<optimized out>) at crypto/objects/obj_local.h:12
   #9  OBJ_NAME_cleanup (type=type@entry=1) at crypto/objects/o_names.c:396
   #10 0x0000000000691a88 in evp_cleanup_int () at crypto/evp/names.c:83
   #11 0x0000000000698aef in OPENSSL_cleanup () at crypto/init.c:606
   #12 0x00007fef8f382a69 in __run_exit_handlers () from /lib64/libc.so.6
   #13 0x00007fef8f382ab5 in exit () from /lib64/libc.so.6
   #14 0x0000000000490fc7 in ngx_daemon (log=0xc01d98) at src/os/unix/ngx_daemon.c:28
   #15 0x000000000046b116 in main (argc=<optimized out>, argv=<optimized out>) at src/core/nginx.c:351
   (gdb)
   
   ```
   Openresty  version : 1.19.3.1
   error.log: 
   ```
   2021/05/31 14:08:35 [warn] 27808#27808: *45 [lua] init.lua:290: sync_local_conf_to_etcd(): sync local conf to etcd, context: ngx.timer
   2021/05/31 14:09:36 [alert] 27807#27807: cache loader process 27811 exited on signal 11 (core dumped)
   2021/05/31 14:13:09 [alert] 27807#27807: worker process 27808 exited on signal 11 (core dumped)
   2021/05/31 14:13:09 [alert] 28585#28585: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:09 [alert] 27807#27807: worker process 27809 exited on signal 11 (core dumped)
   2021/05/31 14:13:09 [alert] 28588#28588: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:09 [alert] 27807#27807: worker process 28585 exited on signal 11 (core dumped)
   2021/05/31 14:13:09 [alert] 28592#28592: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:09 [alert] 27807#27807: worker process 28588 exited on signal 11 (core dumped)
   2021/05/31 14:13:09 [alert] 28594#28594: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:10 [alert] 27807#27807: worker process 28592 exited on signal 11 (core dumped)
   2021/05/31 14:13:10 [alert] 28596#28596: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:10 [alert] 27807#27807: worker process 28594 exited on signal 11 (core dumped)
   2021/05/31 14:13:10 [alert] 28597#28597: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:11 [alert] 27807#27807: worker process 28597 exited on signal 11 (core dumped)
   2021/05/31 14:13:11 [alert] 27807#27807: worker process 28596 exited on signal 11 (core dumped)
   2021/05/31 14:13:11 [alert] 28600#28600: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:11 [alert] 28601#28601: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:11 [alert] 27807#27807: worker process 28601 exited on signal 11 (core dumped)
   2021/05/31 14:13:11 [alert] 28605#28605: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:11 [alert] 27807#27807: worker process 28600 exited on signal 11 (core dumped)
   2021/05/31 14:13:11 [alert] 28606#28606: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:11 [alert] 27807#27807: worker process 28606 exited on signal 11 (core dumped)
   2021/05/31 14:13:11 [alert] 27807#27807: worker process 28605 exited on signal 11 (core dumped)
   2021/05/31 14:13:11 [alert] 28609#28609: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:11 [alert] 28610#28610: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:12 [alert] 27807#27807: worker process 28610 exited on signal 11 (core dumped)
   2021/05/31 14:13:12 [alert] 28613#28613: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   2021/05/31 14:13:12 [alert] 27807#27807: worker process 28609 exited on signal 11 (core dumped)
   2021/05/31 14:13:12 [alert] 28614#28614: setrlimit(RLIMIT_CORE, 17179869184) failed (1: Operation not permitted)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org