chenqiaorui commented on issue #7550:
URL: https://github.com/apache/apisix/issues/7550#issuecomment-1207715323

   hi, spacewander.
   After i type `lbt`, it return "No global L located (tried globalL and 
ngx_cycle)".
   
   The details:
   ```
   [root@ricky apisix-debug]# ps aux|grep nginx
   root       1748  0.0  0.0  27660  1584 ?        Ss   14:14   0:00 nginx: 
master process openresty -p /opt/apisix-debug
   nobody     1749  0.0  0.0  28108  2336 ?        S    14:14   0:00 nginx: 
worker process
   root       1751  0.0  0.0 112812   980 pts/0    R+   14:14   0:00 grep 
--color=auto nginx
   [root@ricky apisix-debug]# gdb -p 1749
   GNU gdb (GDB) 8.2.1
   Copyright (C) 2018 Free Software Foundation, Inc.
   License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
   This is free software: you are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.
   Type "show copying" and "show warranty" for details.
   This GDB was configured as "x86_64-pc-linux-gnu".
   Type "show configuration" for configuration details.
   For bug reporting instructions, please see:
   <http://www.gnu.org/software/gdb/bugs/>.
   Find the GDB manual and other documentation resources online at:
       <http://www.gnu.org/software/gdb/documentation/>.
   
   For help, type "help".
   Type "apropos word" to search for commands related to "word".
   Attaching to process 1749
   Reading symbols from /usr/local/openresty/nginx/sbin/nginx...(no debugging 
symbols found)...done.
   Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
   Reading symbols from /lib64/libpthread.so.0...(no debugging symbols 
found)...done.
   [Thread debugging using libthread_db enabled]
   Using host libthread_db library "/lib64/libthread_db.so.1".
   Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols 
found)...done.
   Reading symbols from 
/usr/local/openresty/luajit/lib/libluajit-5.1.so.2...(no debugging symbols 
found)...done.
   Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
   Reading symbols from /usr/local/openresty/pcre/lib/libpcre.so.1...(no 
debugging symbols found)...done.
   Reading symbols from /usr/local/openresty/openssl111/lib/libssl.so.1.1...(no 
debugging symbols found)...done.
   Reading symbols from 
/usr/local/openresty/openssl111/lib/libcrypto.so.1.1...(no debugging symbols 
found)...done.
   Reading symbols from /usr/local/openresty/zlib/lib/libz.so.1...(no debugging 
symbols found)...done.
   Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
   Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols 
found)...done.
   Reading symbols from /lib64/libfreebl3.so...Reading symbols from 
.gnu_debugdata for /lib64/libfreebl3.so...(no debugging symbols found)...done.
   (no debugging symbols found)...done.
   Reading symbols from /lib64/libgcc_s.so.1...(no debugging symbols 
found)...done.
   Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols 
found)...done.
   0x00007f143fac20c3 in __epoll_wait_nocancel () from /lib64/libc.so.6
   (gdb) source luajit21.py
   (gdb) lbt
   No global L located (tried globalL and ngx_cycle)
   ```
   
   What should  i do?
   
   added  ~/.gdbinit configuration:
   ```
   directory /opt/apisix-debug/openresty-gdb-utils-lbt_gc64
     
   py import sys
   py sys.path.append("/opt/apisix-debug/openresty-gdb-utils-lbt_gc64")
   
   source luajit20.gdb
   source ngx-lua.gdb
   source luajit21.py
   source ngx-raw-req.py
   set python print-stack full


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to