{"action":"created","issue":{"url":"https://api.github.com/repos/spdk/spdk/issues/363","repository_url":"https://api.github.com/repos/spdk/spdk","labels_url":"https://api.github.com/repos/spdk/spdk/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/spdk/spdk/issues/363/comments","events_url":"https://api.github.com/repos/spdk/spdk/issues/363/events","html_url":"https://github.com/spdk/spdk/issues/363","id":340468555,"node_id":"MDU6SXNzdWUzNDA0Njg1NTU=","number":363,"title":"ASAN errors when running bdevperf application with nonexistent subsystem","user":{"login":"ChenWang01","id":28883265,"node_id":"MDQ6VXNlcjI4ODgzMjY1","avatar_url":"https://avatars1.githubusercontent.com/u/28883265?v=4","gravatar_id":"","url":"https://api.github.com/users/ChenWang01","html_url":"https://github.com/ChenWang01","followers_url":"https://api.github.com/users/ChenWang01/followers","following_url":"https://api.github.com/users/ChenWang01/following{/other_user}","gists_url":"https://api.github.com/users/ChenWang01/gists{/gist_id}","starred_url":"https://api.github.com/users/ChenWang01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChenWang01/subscriptions","organizations_url":"https://api.github.com/users/ChenWang01/orgs","repos_url":"https://api.github.com/users/ChenWang01/repos","events_url":"https://api.github.com/users/ChenWang01/events{/privacy}","received_events_url":"https://api.github.com/users/ChenWang01/received_events","type":"User","site_admin":false},"labels":[{"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":"peluse","id":4650360,"node_id":"MDQ6VXNlcjQ2NTAzNjA=","avatar_url":"https://avatars1.githubusercontent.com/u/4650360?v=4","gravatar_id":"","url":"https://api.github.com/users/peluse","html_url":"https://github.com/peluse","followers_url":"https://api.github.com/users/peluse/followers","following_url":"https://api.github.com/users/peluse/following{/other_user}","gists_url":"https://api.github.com/users/peluse/gists{/gist_id}","starred_url":"https://api.github.com/users/peluse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peluse/subscriptions","organizations_url":"https://api.github.com/users/peluse/orgs","repos_url":"https://api.github.com/users/peluse/repos","events_url":"https://api.github.com/users/peluse/events{/privacy}","received_events_url":"https://api.github.com/users/peluse/received_events","type":"User","site_admin":false},"assignees":[{"login":"peluse","id":4650360,"node_id":"MDQ6VXNlcjQ2NTAzNjA=","avatar_url":"https://avatars1.githubusercontent.com/u/4650360?v=4","gravatar_id":"","url":"https://api.github.com/users/peluse","html_url":"https://github.com/peluse","followers_url":"https://api.github.com/users/peluse/followers","following_url":"https://api.github.com/users/peluse/following{/other_user}","gists_url":"https://api.github.com/users/peluse/gists{/gist_id}","starred_url":"https://api.github.com/users/peluse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peluse/subscriptions","organizations_url":"https://api.github.com/users/peluse/orgs","repos_url":"https://api.github.com/users/peluse/repos","events_url":"https://api.github.com/users/peluse/events{/privacy}","received_events_url":"https://api.github.com/users/peluse/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2018-07-12T02:35:06Z","updated_at":"2018-07-19T11:31:38Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The  application report ASAN AddressSanitizer error when use configuration file with nonexistent subsystem.\r\n\r\n## Expected Behavior\r\nThe application should exit normally with no ASAN errors.\r\n\r\n## Current Behavior\r\n```\r\nStarting SPDK v18.07-pre / DPDK 18.02.0 initialization...\r\n[ DPDK EAL parameters: bdevtest -c 0x1 -m 1024 --file-prefix=spdk_pid24094 ]\r\nEAL: Detected 36 lcore(s)\r\nEAL: No free hugepages reported in hugepages-1048576kB\r\nEAL: Multi-process socket /var/run/.spdk_pid24094_unix\r\nEAL: Probing VFIO support...\r\napp.c: 529:spdk_app_start: *NOTICE*: Total cores available: 1\r\nreactor.c: 718:spdk_reactors_init: *NOTICE*: Occupied cpu socket mask is 0x1\r\nreactor.c: 492:_spdk_reactor_run: *NOTICE*: Reactor started on core 0 on socket 0\r\nnvme_rdma.c: 223:nvme_rdma_get_event: *ERROR*: Expected RDMA_CM_EVENT_ESTABLISHED but received RDMA_CM_EVENT_REJECTED (8) from CM event channel (status = 8)\r\nnvme_rdma.c: 548:nvme_rdma_connect: *ERROR*: RDMA connect error\r\nnvme_rdma.c: 778:nvme_rdma_qpair_connect: *ERROR*: Unable to connect the rqpair\r\nnvme_rdma.c:1115:nvme_rdma_ctrlr_construct: *ERROR*: failed to create admin qpair\r\nnvme.c: 384:nvme_ctrlr_probe: *ERROR*: Failed to construct NVMe controller for SSD: 192.168.3.1\r\nbdev_nvme.c:1227:bdev_nvme_library_init: *ERROR*: Unable to connect to provided trid (traddr: 192.168.3.1)\r\nbdev.c: 813:spdk_bdev_initialize: *ERROR*: bdev modules init failed\r\nsubsystem.c: 120:spdk_subsystem_init_next: *ERROR*: Init subsystem bdev failed\r\napp.c: 613:spdk_app_stop: *WARNING*: spdk_app_stop'd on non-zero\r\nASAN:DEADLYSIGNAL\r\n=================================================================\r\n==24094==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000409ce0 bp 0x7ffd2c84cfa8 sp 0x7ffd2c84cd60 T0)\r\n==24094==The signal is caused by a READ memory access.\r\n==24094==Hint: address points to the zero page.\r\n    #0 0x409cdf in blockdev_heads_destroy /home/wangchen/spdk/test/bdev/bdevperf/bdevperf.c:167\r\n    #1 0x406d54 in main /home/wangchen/spdk/test/bdev/bdevperf/bdevperf.c:1046\r\n    #2 0x7f2a0de37f29 in __libc_start_main (/lib64/libc.so.6+0x20f29)\r\n    #3 0x408e09 in _start (/home/wangchen/spdk/test/bdev/bdevperf/bdevperf+0x408e09)\r\n\r\nAddressSanitizer can not provide additional info.\r\nSUMMARY: AddressSanitizer: SEGV /home/wangchen/spdk/test/bdev/bdevperf/bdevperf.c:167 in blockdev_heads_destroy\r\n==24094==ABORTING\r\n```\r\n\r\n\r\n## Possible Solution\r\nIt seems the address points to the zero page in function blockdev_heads_destroy(),in the spdk/test/bdev/bdevperf/bdevperf.c file\r\n\r\n## Steps to Reproduce\r\n1.  add bdev RDMA configuration to bdev.conf.in\r\n```\r\n     [Nvme]\r\n        TransportID \"trtype:RDMA adrfam:IPv4 traddr:192.168.3.1 trsvcid:4420 subnqn:nqn.2016-06.io.spdk:cnode1\" nvme0\r\n```\r\n\r\n2.  run: ./bdevperf/bdevperf -c  ../bdev.conf.in -q 32 -s 4096 -w read -t 10\r\n\r\n## Context (Environment including OS version, SPDK version, etc.)\r\nOS: Fedora release 27 (Twenty Seven)\r\nLinux version: 4.17.3-100.fc27.x86_64\r\ngcc version: 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)\r\nSPDK: master (commit id: fdec444aa8538aa6d782ad867821cf086e645e01)\r\n"},"comment":{"url":"https://api.github.com/repos/spdk/spdk/issues/comments/406245160","html_url":"https://github.com/spdk/spdk/issues/363#issuecomment-406245160","issue_url":"https://api.github.com/repos/spdk/spdk/issues/363","id":406245160,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjI0NTE2MA==","user":{"login":"peluse","id":4650360,"node_id":"MDQ6VXNlcjQ2NTAzNjA=","avatar_url":"https://avatars1.githubusercontent.com/u/4650360?v=4","gravatar_id":"","url":"https://api.github.com/users/peluse","html_url":"https://github.com/peluse","followers_url":"https://api.github.com/users/peluse/followers","following_url":"https://api.github.com/users/peluse/following{/other_user}","gists_url":"https://api.github.com/users/peluse/gists{/gist_id}","starred_url":"https://api.github.com/users/peluse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peluse/subscriptions","organizations_url":"https://api.github.com/users/peluse/orgs","repos_url":"https://api.github.com/users/peluse/repos","events_url":"https://api.github.com/users/peluse/events{/privacy}","received_events_url":"https://api.github.com/users/peluse/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T11:31:38Z","updated_at":"2018-07-19T11:31:38Z","author_association":"CONTRIBUTOR","body":"Yup, I understand.  A few partial fixes have gone in already. I still have this on my plate but a few other things have come up that need attention first.  Will get back on it soon though!"}}
{"actor":{"display_login":"peluse"}}