Skip to content

Instantly share code, notes, and snippets.

@katlogic
Created October 2, 2015 12:52
Show Gist options
  • Save katlogic/bc267dcfc217e0ef2a58 to your computer and use it in GitHub Desktop.
Save katlogic/bc267dcfc217e0ef2a58 to your computer and use it in GitHub Desktop.
gdb ./luajit-ljx
GNU gdb (Gentoo 7.7.1 p1) 7.7.1
Copyright (C) 2014 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://bugs.gentoo.org/>.
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 ./luajit-ljx...done.
(gdb) r types.lua
Starting program: /home/sd/d/ljx/src/luajit-ljx types.lua
warning: Cannot call inferior functions, Linux kernel PaX protection forbids return to non-executable pages!
Program received signal SIGSEGV, Segmentation fault.
0x000009cff1b4fa58 in parse_body (ls=0x75689b679af0, e=0x75689b679550, needself=0, line=12) at lj_parse.c:1965
1965 pfs->bcbase = ls->bcstack + oldbase; /* May have been reallocated. */
(gdb) back
#0 0x000009cff1b4fa58 in parse_body (ls=0x75689b679af0, e=0x75689b679550, needself=0, line=12) at lj_parse.c:1965
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment