Skip to content

Instantly share code, notes, and snippets.

@hnakamur
Created September 12, 2012 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hnakamur/3707718 to your computer and use it in GitHub Desktop.
Save hnakamur/3707718 to your computer and use it in GitHub Desktop.
SIGSEGV on Linux
(gdb) set follow-fork-mode child
(gdb) run tools/checkit tests/test-fs.lua
Starting program: /home/hnakamur/mysrc/lev/build/lev tools/checkit tests/test-fs.lua
[Thread debugging using libthread_db enabled]
[New process 32304]
[Thread debugging using libthread_db enabled]
process 32304 is executing new program: /home/hnakamur/mysrc/lev/build/lev
[Thread debugging using libthread_db enabled]
*lev core started: 32304
✔ fs_sync_test: 10/10 within 0.239 ms
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7fe67e0 (LWP 32304)]
0x00000000004713d8 in lj_tab_setstr ()
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.80.el6_3.5.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.9-33.el6_3.2.x86_64 libcom_err-1.41.12-12.el6.x86_64 libgcc-4.4.6-4.el6.x86_64 libselinux-2.0.94-5.3.el6.x86_64 openssl-1.0.0-20.el6_2.5.x86_64 zlib-1.2.3-27.el6.x86_64
(gdb) list
808 }
809 }
810 return 0;
811 }
812
813 int main(int argc, char **argv)
814 {
815 int status;
816 struct Smain s;
817 lua_State *L = lua_open(); /* create state */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment