Skip to content

Instantly share code, notes, and snippets.

@ackalker
Created November 24, 2012 19:07
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 ackalker/4141041 to your computer and use it in GitHub Desktop.
Save ackalker/4141041 to your computer and use it in GitHub Desktop.
examples/fs-watchfile.lua: Assertion `lhandle->refCount' failed.
$ ulimit -c unlimited
$ out/Debug/luvit examples/fs-watchfile.lua
{ handlers = { change = table: 0x407a3a40 }, userdata = userdata: 0x407a38c8 }
luvit: ../src/utils.c:268: luv_handle_get_lua: Assertion `lhandle->refCount' failed.
Afgebroken (geheugendump gemaakt)
[$?=134]$ gdb out/Debug/luvit core
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/miki/vcs/git/luvit/out/Debug/luvit...done.
[New LWP 20775]
warning: Can't read pathname for load map: Invoer-/uitvoerfout.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `out/Debug/luvit examples/fs-watchfile.lua'.
Program terminated with signal 6, Aborted.
#0 0x00007f1b4b314425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: Bestand of map bestaat niet.
(gdb) bt
#0 0x00007f1b4b314425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007f1b4b317b8b in __GI_abort () at abort.c:91
#2 0x00007f1b4b30d0ee in __assert_fail_base (fmt=<optimized out>, assertion=0x638800 "lhandle->refCount",
file=0x6387da "../src/utils.c", line=<optimized out>, function=<optimized out>) at assert.c:94
#3 0x00007f1b4b30d192 in __GI___assert_fail (assertion=0x638800 "lhandle->refCount",
file=0x6387da "../src/utils.c", line=268, function=0x638840 <__PRETTY_FUNCTION__.8299> "luv_handle_get_lua")
at assert.c:103
#4 0x000000000043fa49 in luv_handle_get_lua (lhandle=0x407a38c8) at ../src/utils.c:268
#5 0x000000000044aab1 in luv_on_fs_event (handle=0x1999840, filename=0x7fff175491f0 "bar", events=1, status=0)
at ../src/luv_fs_watcher.c:26
#6 0x0000000000511af6 in uv__inotify_read (loop=0x93d200 <default_loop_struct>,
dummy=0x93d450 <default_loop_struct+592>, events=1) at ../deps/uv/src/unix/linux/inotify.c:163
#7 0x00000000004f2661 in uv__io_rw (ev=0x93d8e0 <default_loop_struct>, w=0x93d450 <default_loop_struct+592>,
events=1) at ../deps/uv/src/unix/core.c:622
#8 0x00000000004fc4ba in ev_invoke_pending (loop=0x93d8e0 <default_loop_struct>)
at ../deps/uv/src/unix/ev/ev.c:2145
#9 0x00000000004f1dca in uv__poll (loop=0x93d200 <default_loop_struct>) at ../deps/uv/src/unix/core.c:248
#10 0x00000000004f1e14 in uv__run (loop=0x93d200 <default_loop_struct>) at ../deps/uv/src/unix/core.c:257
#11 0x00000000004f1e73 in uv_run (loop=0x93d200 <default_loop_struct>) at ../deps/uv/src/unix/core.c:265
#12 0x000000000044e10a in luv_run (L=0x41fb2378) at ../src/luv_misc.c:216
#13 0x00000000004aef76 in lj_BC_FUNCC ()
#14 0x000000000047432e in lua_call (L=0x41fb2378, nargs=1, nresults=1) at ../deps/luajit/src/lj_api.c:1016
#15 0x000000000046105e in lj_cf_package_require (L=0x41fb2378) at ../deps/luajit/src/lib_package.c:423
#16 0x00000000004aef76 in lj_BC_FUNCC ()
#17 0x0000000000474492 in lua_pcall (L=0x41fb2378, nargs=0, nresults=-1, errfunc=0)
at ../deps/luajit/src/lj_api.c:1034
#18 0x000000000043ef9b in luvit_run (L=0x41fb2378) at ../src/luvit_init.c:270
#19 0x000000000043e361 in main (argc=2, argv=0x196c010) at ../src/luvit_main.c:70
(gdb) q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment