{"action":"created","issue":{"url":"https://api.github.com/repos/spdk/spdk/issues/521","repository_url":"https://api.github.com/repos/spdk/spdk","labels_url":"https://api.github.com/repos/spdk/spdk/issues/521/labels{/name}","comments_url":"https://api.github.com/repos/spdk/spdk/issues/521/comments","events_url":"https://api.github.com/repos/spdk/spdk/issues/521/events","html_url":"https://github.com/spdk/spdk/issues/521","id":385579434,"node_id":"MDU6SXNzdWUzODU1Nzk0MzQ=","number":521,"title":"run autotest in vagrant sock.sh report memory leak error","user":{"login":"yidong0635","id":39082016,"node_id":"MDQ6VXNlcjM5MDgyMDE2","avatar_url":"https://avatars1.githubusercontent.com/u/39082016?v=4","gravatar_id":"","url":"https://api.github.com/users/yidong0635","html_url":"https://github.com/yidong0635","followers_url":"https://api.github.com/users/yidong0635/followers","following_url":"https://api.github.com/users/yidong0635/following{/other_user}","gists_url":"https://api.github.com/users/yidong0635/gists{/gist_id}","starred_url":"https://api.github.com/users/yidong0635/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yidong0635/subscriptions","organizations_url":"https://api.github.com/users/yidong0635/orgs","repos_url":"https://api.github.com/users/yidong0635/repos","events_url":"https://api.github.com/users/yidong0635/events{/privacy}","received_events_url":"https://api.github.com/users/yidong0635/received_events","type":"User","site_admin":false},"labels":[{"id":1011845630,"node_id":"MDU6TGFiZWwxMDExODQ1NjMw","url":"https://api.github.com/repos/spdk/spdk/labels/Low","name":"Low","color":"eaa8d9","default":false},{"id":235898962,"node_id":"MDU6TGFiZWwyMzU4OTg5NjI=","url":"https://api.github.com/repos/spdk/spdk/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"yidong0635","id":39082016,"node_id":"MDQ6VXNlcjM5MDgyMDE2","avatar_url":"https://avatars1.githubusercontent.com/u/39082016?v=4","gravatar_id":"","url":"https://api.github.com/users/yidong0635","html_url":"https://github.com/yidong0635","followers_url":"https://api.github.com/users/yidong0635/followers","following_url":"https://api.github.com/users/yidong0635/following{/other_user}","gists_url":"https://api.github.com/users/yidong0635/gists{/gist_id}","starred_url":"https://api.github.com/users/yidong0635/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yidong0635/subscriptions","organizations_url":"https://api.github.com/users/yidong0635/orgs","repos_url":"https://api.github.com/users/yidong0635/repos","events_url":"https://api.github.com/users/yidong0635/events{/privacy}","received_events_url":"https://api.github.com/users/yidong0635/received_events","type":"User","site_admin":false},"assignees":[{"login":"yidong0635","id":39082016,"node_id":"MDQ6VXNlcjM5MDgyMDE2","avatar_url":"https://avatars1.githubusercontent.com/u/39082016?v=4","gravatar_id":"","url":"https://api.github.com/users/yidong0635","html_url":"https://github.com/yidong0635","followers_url":"https://api.github.com/users/yidong0635/followers","following_url":"https://api.github.com/users/yidong0635/following{/other_user}","gists_url":"https://api.github.com/users/yidong0635/gists{/gist_id}","starred_url":"https://api.github.com/users/yidong0635/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yidong0635/subscriptions","organizations_url":"https://api.github.com/users/yidong0635/orgs","repos_url":"https://api.github.com/users/yidong0635/repos","events_url":"https://api.github.com/users/yidong0635/events{/privacy}","received_events_url":"https://api.github.com/users/yidong0635/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-29T05:46:03Z","updated_at":"2018-11-30T01:54:19Z","closed_at":null,"author_association":"CONTRIBUTOR","body":" run autotest by setting up a vagrant machine. \r\nit reports errors in auto test.\r\nStarting SPDK v19.01-pre / DPDK 18.08.0 initialization...\r\n[ DPDK EAL parameters: hello_sock --no-shconf -c 0x1 --base-virtaddr=0x200000000000 --file-prefix=spdk_pid32589 ]\r\nEAL: Detected 16 lcore(s)\r\nEAL: Detected 1 NUMA nodes\r\nEAL: Probing VFIO support...\r\napp.c: 609:spdk_app_start: *NOTICE*: Total cores available: 1\r\nreactor.c: 293:_spdk_reactor_run: *NOTICE*: Reactor started on core 0\r\nhello_sock.c: 385:hello_start: *NOTICE*: Successfully started the application\r\nhello_sock.c: 346:hello_sock_listen: *NOTICE*: Listening connection on 10.0.0.1:3260\r\n 18:56:59       # message='**MESSAGE:This is a test message to the server**'\r\n  18:56:59      # echo '**MESSAGE:This' is a test message to the 'server**'\r\n  18:56:59      # socat - tcp:10.0.0.1:3260\r\nhello_sock.c: 300:hello_sock_accept_poll: *NOTICE*: Accepting a new connection from (10.0.0.2, 54776) to (10.0.0.1, 3260)\r\nhello_sock.c: 269:hello_sock_cb: *NOTICE*: Connection closed\r\n 18:56:59       # response='**MESSAGE:This is a test message to the server**'\r\n 18:56:59       # '[' '**MESSAGE:This is a test message to the server**' '!=' '**MESSAGE:This is a test message to the server**' ']'\r\n 18:56:59       # trap - SIGINT SIGTERM EXIT\r\n 18:56:59       # killprocess 32589\r\n 18:56:59       # '[' -z 32589 ']'\r\n 18:56:59       # kill -0 32589\r\n 18:56:59       # echo 'killing process with pid 32589'\r\nkilling process with pid 32589\r\n 18:56:59       # kill 32589\r\n 18:56:59       # wait 32589\r\nhello_sock.c: 122:hello_sock_close_timeout_poll: *NOTICE*: Connection closed\r\nhello_sock.c: 432:main: *NOTICE*: Exiting from application\r\n\r\n=================================================================\r\n==32589==ERROR: LeakSanitizer: detected memory leaks\r\n\r\nIndirect leak of 55664 byte(s) in 994 object(s) allocated from:\r\n    #0 0x7ffff6efca38 in __interceptor_calloc (/lib64/libasan.so.4+0xdea38)\r\n    #1 0x42299e in spdk_poller_register /home/vagrant/master/build-20181128184932/spdk/lib/thread/thread.c:525\r\n    #2 0x406de0 in hello_sock_quit /home/vagrant/master/build-20181128184932/spdk/examples/sock/hello_world/hello_sock.c:138\r\n    #3 0x408d48 in hello_sock_accept_poll /home/vagrant/master/build-20181128184932/spdk/examples/sock/hello_world/hello_sock.c:285\r\n    #4 0x421ee5 in spdk_thread_poll /home/vagrant/master/build-20181128184932/spdk/lib/thread/thread.c:402\r\n    #5 0x41b61e in _spdk_reactor_run /home/vagrant/master/build-20181128184932/spdk/lib/event/reactor.c:313\r\n    #6 0x41bdc5 in spdk_reactors_start /home/vagrant/master/build-20181128184932/spdk/lib/event/reactor.c:413\r\n    #7 0x4167d9 in spdk_app_start /home/vagrant/master/build-20181128184932/spdk/lib/event/app.c:657\r\n    #8 0x40a157 in main /home/vagrant/master/build-20181128184932/spdk/examples/sock/hello_world/hello_sock.c:427\r\n    #9 0x7ffff43f3889 in __libc_start_main (/lib64/libc.so.6+0x20889)\r\n\r\nSUMMARY: AddressSanitizer: 55664 byte(s) leaked in 994 allocation(s).\r\n  18:57:00      # trap - ERR\r\n  18:57:00      # print_backtrace\r\n  18:57:00      # [[ ehxBE =~ e ]]\r\n  18:57:00      # local shell_options=ehxBE\r\n  18:57:00      # set +x\r\n========== Backtrace start: ==========\r\n\r\n\r\n## Expected Behavior\r\nrun autotest without fail\r\nrun_test suite ./test/iscsi_tgt/iscsi_tgt.sh posix\r\n\r\n## Current Behavior\r\nreport memory leak and stopped.\r\n\r\n## Possible Solution\r\n\r\n\r\n## Steps to Reproduce\r\nhttps://review.gerrithub.io/c/spdk/spdk/+/434478\r\nin VM，run this command：\r\nsudo ~/spdk_repo/spdk/scripts/vagrant/run-autorun.sh -d /home/vagrant/spdk_repo/spdk\r\n\r\n\r\n## Context (Environment including OS version, SPDK version, etc.)\r\ncommit: 2bebd09bd724016656fe69cdcee36fd0da532233\r\n"},"comment":{"url":"https://api.github.com/repos/spdk/spdk/issues/comments/443062281","html_url":"https://github.com/spdk/spdk/issues/521#issuecomment-443062281","issue_url":"https://api.github.com/repos/spdk/spdk/issues/521","id":443062281,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzA2MjI4MQ==","user":{"login":"liang2yan","id":29114155,"node_id":"MDQ6VXNlcjI5MTE0MTU1","avatar_url":"https://avatars2.githubusercontent.com/u/29114155?v=4","gravatar_id":"","url":"https://api.github.com/users/liang2yan","html_url":"https://github.com/liang2yan","followers_url":"https://api.github.com/users/liang2yan/followers","following_url":"https://api.github.com/users/liang2yan/following{/other_user}","gists_url":"https://api.github.com/users/liang2yan/gists{/gist_id}","starred_url":"https://api.github.com/users/liang2yan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liang2yan/subscriptions","organizations_url":"https://api.github.com/users/liang2yan/orgs","repos_url":"https://api.github.com/users/liang2yan/repos","events_url":"https://api.github.com/users/liang2yan/events{/privacy}","received_events_url":"https://api.github.com/users/liang2yan/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T01:54:19Z","updated_at":"2018-11-30T01:54:19Z","author_association":"CONTRIBUTOR","body":"@yidong0635 , check if nightly testing has this issue."}}
{"actor":{"display_login":"liang2yan"}}