Comments (10)
ref #7
from lua-resty-maxminddb.
sorry, but it still segfaulting with same error...
from lua-resty-maxminddb.
@atomyuk did you ever figure out the segfault? I'm currently running into the same issue.
from lua-resty-maxminddb.
@jloh paste your code plz
from lua-resty-maxminddb.
@anjia0532 you can see the code I'm using here and the segfaults during tests I'm getting here.
I asked on the CircleCI forums but not one seems to know there either.
Its in the maxmind code somewhere (whether its the lib or something else I'm not sure) but this is what a core dump shows:
root@7cb5f43803ab:~/project# gdb $(which openresty) core.1162.\!usr\!local\!openresty\!nginx\!sbin\!nginx
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 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-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"...
Reading symbols from /usr/bin/openresty...(no debugging symbols found)...done.
[New LWP 1162]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `nginx -p /root/project/t/servroot/ -c /root/project/t/servroot/conf/nginx.conf'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f3a3dd98e15 in MMDB_free_entry_data_list () from /usr/lib/x86_64-linux-gnu/libmaxminddb.so
(gdb) backtrace full
#0 0x00007f3a3dd98e15 in MMDB_free_entry_data_list () from /usr/lib/x86_64-linux-gnu/libmaxminddb.so
No symbol table info available.
#1 0x00007f3a3fe68554 in ?? () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
No symbol table info available.
#2 0x00007f3a3fea956a in ?? () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
No symbol table info available.
#3 0x00007f3a3febd6a6 in ?? () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
No symbol table info available.
#4 0x00007f3a3fe66463 in ?? () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
No symbol table info available.
#5 0x00000000004efcb2 in ngx_http_lua_run_thread ()
No symbol table info available.
#6 0x00000000004f2fa3 in ngx_http_lua_content_by_chunk ()
No symbol table info available.
#7 0x00000000004f2b5c in ngx_http_lua_content_handler ()
No symbol table info available.
#8 0x000000000045978e in ngx_http_core_content_phase ()
No symbol table info available.
#9 0x0000000000454065 in ngx_http_core_run_phases ()
No symbol table info available.
#10 0x000000000045eab3 in ngx_http_process_request ()
No symbol table info available.
#11 0x000000000045f351 in ?? ()
No symbol table info available.
#12 0x00000000004483eb in ?? ()
No symbol table info available.
#13 0x000000000043f4cb in ngx_process_events_and_timers ()
No symbol table info available.
#14 0x0000000000447ae0 in ngx_single_process_cycle ()
No symbol table info available.
#15 0x000000000041f9ef in main ()
No symbol table info available.
from lua-resty-maxminddb.
os version:
openresty version:
mmdb version:
lua version:
from lua-resty-maxminddb.
OS: Ubuntu 16.04 (Xenial)
Openresty: 1.13.6.2
MMDB: Latest
Lua: 5.1.5 (but probably running whatever version openresty is running?)
The weirdest thing is the tests run fine locally but fail via CI/test nginx test suite
from lua-resty-maxminddb.
switch to another CI tool(e.g. travis-ci ) ? test again
from lua-resty-maxminddb.
I've done a whole lot more debugging and this appears to be caused by luacov
, disabling this means everything works fine. Why its having issues running I'm not sure, but not an issue here. Sorry for the noise!
from lua-resty-maxminddb.
I'm sorry to not help you
from lua-resty-maxminddb.
Related Issues (20)
- Declaration specifier expected near 'ssize_t' HOT 3
- Init two DBs under different names HOT 3
- segfault HOT 2
- loop or previous error loading module 无法使用 HOT 8
- Error at determine a boolean value HOT 6
- Init two instances of maxminddb HOT 10
- not initialized HOT 5
- 该项目还活着么?生产环境是否可以使用? HOT 1
- License issue should be noticed when you copy code from lilien1010/lua-resty-maxminddb HOT 5
- Suggestion to make this usable by other context HOT 2
- Memory leak in version 1.3.2 HOT 5
- libmaxminddb 要怎么安装呀 HOT 1
- 是否需要添加前置lru缓存 HOT 2
- maxminddb.lua 丢失城市数据 HOT 3
- bad argument #1 to 'concat' (table expected, got nil) HOT 7
- Error at lookup IP HOT 14
- 查询时内存不断增长--内存泄露 HOT 8
- Issue when multiple subdivisions are returned HOT 1
- MMDB_free_entry_data_list (entry_data_list=0x23) at maxminddb.c:1860 HOT 22
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 lua-resty-maxminddb.