** Changed in: tarantool
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1025547

Title:
  if lua function returns empty table libtarantool's iterators segfault

Status in Tarantool - an efficient in-memory data store:
  Fix Released

Bug description:
  I have part of code like this:
  
https://github.com/mailru/tarantool/blob/master/client/tarantool/tc_print.c#L67

  And I worte some tests for the code:

  https://github.com/unera/dr-tarantool/blob/master/t/test-
  data/init.lua#L7

  function test_return(...)
      return { ... }
  end

  if we call function 'test_return' with some arguments, the code works
  fine, but if function returns empty table, iterators will segfault.

  A test that demonstrates the problem here: 
https://github.com/unera/dr-tarantool/blob/master/t/100-lua_segfault.t
  Binary packet that was returned by tarantool can be found here: 
https://github.com/unera/dr-tarantool/raw/master/t/test-data/lua-return-empty-tuple-type_00022-code_000-ok.bin

  tarantool returned package that has length = 28 bytes, code = 0

  function 'tnt_reply' returned 0 for the package, and then tnt_iter*
  functions segfaulted.

To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1025547/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to