Giter Site home page Giter Site logo

Comments (10)

anjia0532 avatar anjia0532 commented on May 26, 2024

ref #7

from lua-resty-maxminddb.

atomyuk avatar atomyuk commented on May 26, 2024

sorry, but it still segfaulting with same error...

from lua-resty-maxminddb.

jloh avatar jloh commented on May 26, 2024

@atomyuk did you ever figure out the segfault? I'm currently running into the same issue.

from lua-resty-maxminddb.

anjia0532 avatar anjia0532 commented on May 26, 2024

@jloh paste your code plz

from lua-resty-maxminddb.

jloh avatar jloh commented on May 26, 2024

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

anjia0532 avatar anjia0532 commented on May 26, 2024

os version:
openresty version:
mmdb version:
lua version:

from lua-resty-maxminddb.

jloh avatar jloh commented on May 26, 2024

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.

anjia0532 avatar anjia0532 commented on May 26, 2024

switch to another CI tool(e.g. travis-ci ) ? test again

from lua-resty-maxminddb.

jloh avatar jloh commented on May 26, 2024

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.

anjia0532 avatar anjia0532 commented on May 26, 2024

I'm sorry to not help you

from lua-resty-maxminddb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.