Wait, there is more. The latter crash is completely mysterious:

localhost> lua l = box.space[0]:insert(os.time()*2^32, 1)
---
...
localhost> lua tonumber64(box.unpack('l', l[0]))
---
error: 'lua_tointeger64: unsupported cdata type'
...
localhost> lua box.delete(0, tonumber64(box.unpack('l', l[0])))
failed to recv admin reply
reconnect: Connection refused (errno: 111)
l
Why is there an error in the first case and there is a crash in the second?

** Changed in: tarantool
       Status: New => Confirmed

** Changed in: tarantool
   Importance: Undecided => Low

** Changed in: tarantool
     Assignee: (unassigned) => Kostja Osipov (kostja)

** Changed in: tarantool
    Milestone: None => 1.4.8

** Changed in: tarantool
     Assignee: Kostja Osipov (kostja) => Dmitry Simonenko (pmwkaa)

** Changed in: tarantool
   Importance: Low => Medium

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

Title:
  tonumber64 is not transitive

Status in Tarantool - an efficient in-memory data store:
  Confirmed

Bug description:
  You can't apply tonumber64 to results of tonumber64:

  
  localhost> lua tonumber64(tonumber64(0))
  ---
  error: 'lua_tointeger64: unsupported cdata type'

To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1061147/+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