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

Test tcp/unix fail - Segmentation fault #91

Open
makorne opened this issue Apr 22, 2018 · 0 comments
Open

Test tcp/unix fail - Segmentation fault #91

makorne opened this issue Apr 22, 2018 · 0 comments
Milestone

Comments

@makorne
Copy link

makorne commented Apr 22, 2018

./tarantool-tcp

 1..7
    # *** test_connect_tcp: prep ***
    ok 1 - Checking that stream is allocated
    ok 2 - Checking s->alloc
    ok 3 - Setting URI
    ok 4 - Connecting
    ok 5 - Checking sa.alloc
    ok 6 - Setting URI
    ok 7 - Connecting
    # *** test_connect_tcp: done ***
ok 1 - subtests
    1..102
    # *** test_object: prep ***
    ok 1 - Checking that object is allocated
    ok 2 - Checking s->alloc
    ok 3 - encoding int > 0
    ok 4 - encoding int < 0
    ok 5 - encoding nil
    ok 6 - encoding str
    ok 7 - encoding strz
    ok 8 - Check type set (must fail)
    ok 9 - Reset bytestring
    ok 10 - Check type set (must be ok)
    ok 11 - Sparse array
    ok 12 - encoding nil
    ok 13 - encoding nil
    ok 14 - encoding nil
    ok 15 - encoding nil
    ok 16 - Closing container
    ok 17 - Erroneous container close
    ok 18 - Reset bytestring
    ok 19 - Check type set (must be ok)
    ok 20 - Packed array
    ok 21 - encoding nil
    ok 22 - encoding nil
    ok 23 - encoding nil
    ok 24 - encoding nil
    ok 25 - Closing container
    ok 26 - Erroneous container close
    ok 27 - Reset bytestring
    ok 28 - Check type set (must be ok)
    ok 29 - Packing map-1
    ok 30 -   Packing key (str)
    ok 31 -    Packing value (map-2)
    ok 32 -   Packing key (str)
    ok 33 -    Packing value (map-3)
    ok 34 -      Packing key (str)
    ok 35 -       Packing value (array)
    ok 36 -         Packing value (map-4)
    ok 37 -           Packing key (str)
    ok 38 -            Packing value (str)
    ok 39 -           Packing key (str)
    ok 40 -            Packing value (str)
    ok 41 -         Closing map-4
    ok 42 -         Packing value (map-5)
    ok 43 -           Packing key (str)
    ok 44 -            Packing value (str)
    ok 45 -           Packing key (str)
    ok 46 -            Packing value (str)
    ok 47 -         Closing map-5
    ok 48 -         Packing value (map-6)
    ok 49 -           Packing key (str)
    ok 50 -            Packing value (str)
    ok 51 -           Packing key (str)
    ok 52 -            Packing value (str)
    ok 53 -         Closing map-6
    ok 54 -       Closing map-3
    ok 55 -     Closing array
    ok 56 -   Packing key (str)
    ok 57 -    Packing value (str)
    ok 58 -   Packing key (str)
    ok 59 -    Packing value (str)
    ok 60 -   Closing map-2
    ok 61 - Closing map-1
    ok 62 - Reset bytestring
    ok 63 - Check type set (must be ok)
    ok 64 - Packing map-1
    ok 65 -   Packing key (str)
    ok 66 -    Packing value (map-2)
    ok 67 -   Packing key (str)
    ok 68 -    Packing value (map-3)
    ok 69 -      Packing key (str)
    ok 70 -       Packing value (array)
    ok 71 -         Packing value (map-4)
    ok 72 -           Packing key (str)
    ok 73 -            Packing value (str)
    ok 74 -           Packing key (str)
    ok 75 -            Packing value (str)
    ok 76 -         Closing map-4
    ok 77 -         Packing value (map-5)
    ok 78 -           Packing key (str)
    ok 79 -            Packing value (str)
    ok 80 -           Packing key (str)
    ok 81 -            Packing value (str)
    ok 82 -         Closing map-5
    ok 83 -         Packing value (map-6)
    ok 84 -           Packing key (str)
    ok 85 -            Packing value (str)
    ok 86 -           Packing key (str)
    ok 87 -            Packing value (str)
    ok 88 -         Closing map-6
    ok 89 -       Closing map-3
    ok 90 -     Closing array
    ok 91 -   Packing key (str)
    ok 92 -    Packing value (str)
    ok 93 -   Packing key (str)
    ok 94 -    Packing value (str)
    ok 95 -   Closing map-2
    ok 96 - Closing map-1
    ok 97 - Reset bytestring
    ok 98 - Check type set (must be ok)
    ok 99 - Packing array (size more 1 byte)
    ok 100 - Closing array (size more 1 byte)
    ok 101 - Reset bytestring
    ok 102 - Pack with format
    # *** test_object: done ***
ok 2 - subtests
    1..5
    # *** test_request_01: prep ***
    ok 1 - Check connection creation
    ok 2 - Setting URI
    ok 3 - Connecting
    ok 4 - Check object creation
    ok 5 - Append elem
    # *** test_request_01: done ***
ok 3 - subtests
    1..15
    # *** test_request_02: prep ***
    ok 1 - Check connection creation
    ok 2 - Setting URI
    ok 3 - Connecting
    ok 4 - Check object creation
    ok 5 - Create key
    ok 6 - Create key
    ok 7 - Check request creation
    ok 8 - Check that we inited select
    ok 9 - Set space
    ok 10 - Set index
    ok 11 - Set key
    ok 12 - Compile request
    ok 13 - Send package to server
    ok 14 - Init reply
    ok 15 - Read reply
    # *** test_request_02: done ***
ok 4 - subtests
    1..15
    # *** test_request_03: prep ***
    ok 1 - Check connection creation
    ok 2 - Setting URI
    ok 3 - Connecting
    ok 4 - Check object creation
    ok 5 - Create key
    ok 6 - Create key
    ok 7 - Check request creation
    ok 8 - Check that we inited select
    not ok 9 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 354
    not ok 10 - Set index
    #   Failed test 'Set index'
    #   in tarantool-c/test/tarantool_tcp.c at line 355
    ok 11 - Set key
    ok 12 - Compile request
    ok 13 - Send package to server
    ok 14 - Init reply
    ok 15 - Read reply
    # *** test_request_03: done ***
    # Looks like you failed 2 test of 15 run.
not ok 5 - subtests
#   Failed test 'subtests'
#   in tarantool-c/test/test.c at line 53
    1..18
    # *** test_request_04: prep ***
    ok 1 - Check connection creation
    ok 2 - Setting URI
    ok 3 - Connecting
    ok 4 - Check object creation
    ok 5 - Create key
    ok 6 - Create key
    ok 7 - Check request creation
    ok 8 - Check that we inited select
    not ok 9 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 395
    not ok 10 - Set index
    #   Failed test 'Set index'
    #   in tarantool-c/test/tarantool_tcp.c at line 396
    ok 11 - Set key
    ok 12 - Set offset
    ok 13 - Set limit
    ok 14 - Set iterator
    ok 15 - Compile request
    ok 16 - Send package to server
    ok 17 - Init reply
    ok 18 - Read reply
    # *** test_request_04: done ***
    # Looks like you failed 2 test of 18 run.
not ok 6 - subtests
#   Failed test 'subtests'
#   in tarantool-c/test/test.c at line 53
    1..351
    # *** test_request_05: prep ***
    ok 1 - Check connection creation
    ok 2 - Setting URI
    ok 3 - Connecting
    ok 4 - Check request creation
    ok 5 - Check that we inited insert
    not ok 6 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 441
    ok 7 - Set tuple
    ok 8 - Compile request
    ok 9 - Check request creation
    ok 10 - Check that we inited insert
    not ok 11 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 441
    ok 12 - Set tuple
    ok 13 - Compile request
    ok 14 - Check request creation
    ok 15 - Check that we inited insert
    not ok 16 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 441
    ok 17 - Set tuple
    ok 18 - Compile request
    ok 19 - Check request creation
    ok 20 - Check that we inited insert
    not ok 21 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 441
    ok 22 - Set tuple
    ok 23 - Compile request
    ok 24 - Check request creation
    ok 25 - Check that we inited insert
    not ok 26 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 441
    ok 27 - Set tuple
    ok 28 - Compile request
    ok 29 - Check request creation
    ok 30 - Check that we inited insert
    not ok 31 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 441
    ok 32 - Set tuple
    ok 33 - Compile request
    ok 34 - Check request creation
    ok 35 - Check that we inited insert
    not ok 36 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 441
    ok 37 - Set tuple
    ok 38 - Compile request
    ok 39 - Check request creation
    ok 40 - Check that we inited insert
    not ok 41 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 441
    ok 42 - Set tuple
    ok 43 - Compile request
    ok 44 - Check request creation
    ok 45 - Check that we inited insert
    not ok 46 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 441
    ok 47 - Set tuple
    ok 48 - Compile request
    ok 49 - Check request creation
    ok 50 - Check that we inited insert
    not ok 51 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 441
    ok 52 - Set tuple
    ok 53 - Compile request
    ok 54 - Send package to server
    not ok 55 - check that we get answer
    #   Failed test 'check that we get answer'
    #   in tarantool-c/test/tarantool_tcp.c at line 457
# tnt_next error Space '0' does not exist
    ok 56 - Check request creation
    ok 57 - Check that we inited replace
    not ok 58 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 491
    ok 59 - Set tuple
    ok 60 - Compile request
    ok 61 - Check request creation
    ok 62 - Check that we inited replace
    not ok 63 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 491
    ok 64 - Set tuple
    ok 65 - Compile request
    ok 66 - Check request creation
    ok 67 - Check that we inited replace
    not ok 68 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 491
    ok 69 - Set tuple
    ok 70 - Compile request
    ok 71 - Check request creation
    ok 72 - Check that we inited replace
    not ok 73 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 491
    ok 74 - Set tuple
    ok 75 - Compile request
    ok 76 - Check request creation
    ok 77 - Check that we inited replace
    not ok 78 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 491
    ok 79 - Set tuple
    ok 80 - Compile request
    ok 81 - Send package to server
    not ok 82 - check that we get answer
    #   Failed test 'check that we get answer'
    #   in tarantool-c/test/tarantool_tcp.c at line 507
# tnt_next error Space '0' does not exist
    ok 83 - Check object creation
    ok 84 - Create key
    not ok 85 - Set space
    #   Failed test 'Set space'
    #   in tarantool-c/test/tarantool_tcp.c at line 533
Segmentation fault

tarantool 1.9 from deb on debian wheezy

tarantool -v

Tarantool 1.9.0-83-g4158922
Target: Linux-x86_64-RelWithDebInfo
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_BACKTRACE=ON
Compiler: /usr/lib/ccache/cc /usr/lib/ccache/g++
C_FLAGS:-g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -fopenmp -msse2 -std=c11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -fno-gnu89-inline
CXX_FLAGS:-g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -fopenmp -msse2 -std=c++11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-invalid-offsetof

tarantool 1.9 from deb on debian stretch:

ok 4 - subtests
    1..15
    # *** test_request_03: prep ***
    ok 1 - Check connection creation
    ok 2 - Setting URI
    ok 3 - Connecting
    ok 4 - Check object creation
    ok 5 - Create key
    ok 6 - Create key
    ok 7 - Check request creation
    ok 8 - Check that we inited select
    not ok 9 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 348
    not ok 10 - Set index
    #   Failed test 'Set index'
    #   in /tarantool-c/test/tarantool_tcp.c at line 349
    ok 11 - Set key
    ok 12 - Compile request
    ok 13 - Send package to server
    ok 14 - Init reply
    ok 15 - Read reply
    # *** test_request_03: done ***
    # Looks like you failed 2 test of 15 run.
not ok 5 - subtests
#   Failed test 'subtests'
#   in /tarantool-c/test/test.c at line 53
    1..18
    # *** test_request_04: prep ***
    ok 1 - Check connection creation
    ok 2 - Setting URI
    ok 3 - Connecting
    ok 4 - Check object creation
    ok 5 - Create key
    ok 6 - Create key
    ok 7 - Check request creation
    ok 8 - Check that we inited select
    not ok 9 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 389
    not ok 10 - Set index
    #   Failed test 'Set index'
    #   in /tarantool-c/test/tarantool_tcp.c at line 390
    ok 11 - Set key
    ok 12 - Set offset
    ok 13 - Set limit
    ok 14 - Set iterator
    ok 15 - Compile request
    ok 16 - Send package to server
    ok 17 - Init reply
    ok 18 - Read reply
    # *** test_request_04: done ***
    # Looks like you failed 2 test of 18 run.
not ok 6 - subtests
#   Failed test 'subtests'
#   in /tarantool-c/test/test.c at line 53
    1..351
    # *** test_request_05: prep ***
    ok 1 - Check connection creation
    ok 2 - Setting URI
    ok 3 - Connecting
    ok 4 - Check request creation
    ok 5 - Check that we inited insert
    not ok 6 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 435
    ok 7 - Set tuple
    ok 8 - Compile request
    ok 9 - Check request creation
    ok 10 - Check that we inited insert
    not ok 11 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 435
    ok 12 - Set tuple
    ok 13 - Compile request
    ok 14 - Check request creation
    ok 15 - Check that we inited insert
    not ok 16 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 435
    ok 17 - Set tuple
    ok 18 - Compile request
    ok 19 - Check request creation
    ok 20 - Check that we inited insert
    not ok 21 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 435
    ok 22 - Set tuple
    ok 23 - Compile request
    ok 24 - Check request creation
    ok 25 - Check that we inited insert
    not ok 26 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 435
    ok 27 - Set tuple
    ok 28 - Compile request
    ok 29 - Check request creation
    ok 30 - Check that we inited insert
    not ok 31 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 435
    ok 32 - Set tuple
    ok 33 - Compile request
    ok 34 - Check request creation
    ok 35 - Check that we inited insert
    not ok 36 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 435
    ok 37 - Set tuple
    ok 38 - Compile request
    ok 39 - Check request creation
    ok 40 - Check that we inited insert
    not ok 41 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 435
    ok 42 - Set tuple
    ok 43 - Compile request
    ok 44 - Check request creation
    ok 45 - Check that we inited insert
    not ok 46 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 435
    ok 47 - Set tuple
    ok 48 - Compile request
    ok 49 - Check request creation
    ok 50 - Check that we inited insert
    not ok 51 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 435
    ok 52 - Set tuple
    ok 53 - Compile request
    ok 54 - Send package to server
    not ok 55 - check that we get answer
    #   Failed test 'check that we get answer'
    #   in /tarantool-c/test/tarantool_tcp.c at line 451
# tnt_next error Space '0' does not exist
    ok 56 - Check request creation
    ok 57 - Check that we inited replace
    not ok 58 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 485
    ok 59 - Set tuple
    ok 60 - Compile request
    ok 61 - Check request creation
    ok 62 - Check that we inited replace
    not ok 63 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 485
    ok 64 - Set tuple
    ok 65 - Compile request
    ok 66 - Check request creation
    ok 67 - Check that we inited replace
    not ok 68 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 485
    ok 69 - Set tuple
    ok 70 - Compile request
    ok 71 - Check request creation
    ok 72 - Check that we inited replace
    not ok 73 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 485
    ok 74 - Set tuple
    ok 75 - Compile request
    ok 76 - Check request creation
    ok 77 - Check that we inited replace
    not ok 78 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 485
    ok 79 - Set tuple
    ok 80 - Compile request
    ok 81 - Send package to server
    not ok 82 - check that we get answer
    #   Failed test 'check that we get answer'
    #   in /tarantool-c/test/tarantool_tcp.c at line 501
# tnt_next error Space '0' does not exist
    ok 83 - Check object creation
    ok 84 - Create key
    not ok 85 - Set space
    #   Failed test 'Set space'
    #   in /tarantool-c/test/tarantool_tcp.c at line 527
Segmentation fault
@makorne makorne changed the title Test connect tcp/unix fail Test tcp/unix fail Apr 28, 2018
@makorne makorne changed the title Test tcp/unix fail Test tcp/unix fail - Segmentation fault Apr 28, 2018
@makorne makorne changed the title Test tcp/unix fail - Segmentation fault Test tcp fail - Segmentation fault Apr 28, 2018
@makorne makorne changed the title Test tcp fail - Segmentation fault Test tcp/unix fail - Segmentation fault Apr 29, 2018
@kyukhin kyukhin added this to the wishlist milestone Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants