Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash atexit if You use triggers #583

Closed
unera opened this issue Oct 14, 2014 · 0 comments
Closed

Crash atexit if You use triggers #583

unera opened this issue Oct 14, 2014 · 0 comments
Labels
bug Something isn't working crash

Comments

@unera
Copy link
Collaborator

unera commented Oct 14, 2014

example test:

#!/usr/bin/env tarantool
-- vim: set ft=lua :

tap = require 'tap'
fio = require 'fio'
log = require 'log'

tempdir = fio.tempdir()

box.cfg {
    wal_dir = tempdir,
    snap_dir = tempdir,
    sophia_dir = tempdir
}

local function test_replace(old_tuple, new_tuple)

end


box.schema.create_space('abc')
box.space.abc:create_index('pk', { type = 'tree' })
box.space.abc:on_replace(test_replace)


cleanup_list = fio.glob(fio.pathjoin(tempdir), '*')
for _, file in pairs(cleanup_list) do
    fio.unlink(file)
end
fio.rmdir(tempdir)
os.exit(0)

crash log:


Program terminated with signal SIGABRT, Aborted.
#0  0x00007f86935c2077 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: Нет такого файла или каталога.
(gdb) bt
#0  0x00007f86935c2077 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007f86935c3458 in __GI_abort () at abort.c:89
#2  0x000000000041fdfc in sig_fatal_cb (signo=<optimized out>)
    at /home/unera/work/tarantool/src/tarantool.cc:212
#3  <signal handler called>
#4  0x00000000004d6420 in index2adr ()
#5  0x00000000004d7dd2 in lua_rawgeti ()
#6  0x00000000004e8283 in luaL_unref ()
#7  0x000000000049a170 in lbox_trigger_destroy (trigger=0x1ce5a60)
    at /home/unera/work/tarantool/src/lua/trigger.cc:35
#8  0x0000000000438739 in trigger_destroy (list=0x1ce6678)
    at /home/unera/work/tarantool/src/trigger.h:103
#9  space_delete (space=0x1ce6630)
    at /home/unera/work/tarantool/src/box/space.cc:124
#10 0x000000000043ad53 in schema_free ()
    at /home/unera/work/tarantool/src/box/schema.cc:368
#11 0x000000000042183e in box_free ()
    at /home/unera/work/tarantool/src/box/box.cc:360
#12 0x00000000004200a7 in tarantool_free ()
    at /home/unera/work/tarantool/src/tarantool.cc:491
#13 0x00007f86935c4b39 in __run_exit_handlers (status=0,
    listp=0x7f869392f5a8 <__exit_funcs>,
    run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#14 0x00007f86935c4b85 in __GI_exit (status=<optimized out>) at exit.c:104
#15 0x00000000005169db in lj_cf_os_exit ()
#16 0x00000000004eb9a8 in lj_BC_FUNCC ()
#17 0x0000000000498748 in lbox_call (nreturns=0, nargs=<optimized out>,
    L=0x40935378) at /home/unera/work/tarantool/src/lua/utils.h:442
#18 run_script(typedef __va_list_tag __va_list_tag *) (ap=<optimized out>)
    at /home/unera/work/tarantool/src/lua/init.cc:414
#19 0x0000000000484e89 in fiber_loop (data=<optimized out>)
    at /home/unera/work/tarantool/src/fiber.cc:391
#20 0x00000000004b6cc7 in coro_init ()
    at /home/unera/work/tarantool/third_party/coro/coro.c:95
(gdb) quit

@unera unera added crash bug Something isn't working labels Oct 14, 2014
@unera unera closed this as completed in 8402343 Oct 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash
Projects
None yet
Development

No branches or pull requests

1 participant