-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
libiscsi test suite can cause double free in spdk iSCSI target #89
Comments
I have a question for Ctrl-c in step3, it kill the iSCSI target or the iscsi-test-cu? |
@optimistyzy - do you mean Step 4? If so, the Ctrl-C should be only be done on |
Valgrind output:
|
On Dec 18, 2016, at 11:53 PM, Sitsofe Wheeler <notifications@github.com<mailto:notifications@github.com>> wrote:
Valgrind output:
==55224== Invalid free() / delete / delete[] / realloc()
==55224== at 0x4C2EDEB: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==55224== by 0x420A74: spdk_put_pdu (iscsi_subsystem.c:502)
==55224== by 0x411C14: spdk_iscsi_conn_flush_pdus_internal (conn.c:1125)
==55224== by 0x412017: spdk_iscsi_conn_flush_pdus (conn.c:1176)
==55224== by 0x412017: spdk_iscsi_conn_execute (conn.c:1260)
==55224== by 0x4120D2: spdk_iscsi_conn_login_do_work (conn.c:1314)
==55224== by 0x432725: _spdk_reactor_run (reactor.c:328)
==55224== by 0x432B5D: spdk_reactors_start (reactor.c:541)
==55224== by 0x431AD4: spdk_app_start (app.c:436)
==55224== by 0x404831: main (iscsi_tgt.c:188)
==55224== Address 0xf46d440 is 0 bytes inside a block of size 8,192 free'd
==55224== at 0x4C2EDEB: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==55224== by 0x420A74: spdk_put_pdu (iscsi_subsystem.c:502)
==55224== by 0x411E79: spdk_iscsi_conn_handle_incoming_pdus (conn.c:1210)
==55224== by 0x411E79: spdk_iscsi_conn_execute (conn.c:1257)
==55224== by 0x4120D2: spdk_iscsi_conn_login_do_work (conn.c:1314)
==55224== by 0x432725: _spdk_reactor_run (reactor.c:328)
==55224== by 0x432B5D: spdk_reactors_start (reactor.c:541)
==55224== by 0x431AD4: spdk_app_start (app.c:436)
==55224== by 0x404831: main (iscsi_tgt.c:188)
==55224== Block was alloc'd at
==55224== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==55224== by 0x41728A: spdk_iscsi_op_login_rsp_init (iscsi.c:1815)
==55224== by 0x41728A: spdk_iscsi_op_login (iscsi.c:2172)
==55224== by 0x419424: spdk_iscsi_execute (iscsi.c:4245)
==55224== by 0x411E6D: spdk_iscsi_conn_handle_incoming_pdus (conn.c:1209)
==55224== by 0x411E6D: spdk_iscsi_conn_execute (conn.c:1257)
==55224== by 0x4120D2: spdk_iscsi_conn_login_do_work (conn.c:1314)
==55224== by 0x432725: _spdk_reactor_run (reactor.c:328)
==55224== by 0x432B5D: spdk_reactors_start (reactor.c:541)
==55224== by 0x431AD4: spdk_app_start (app.c:436)
==55224== by 0x404831: main (iscsi_tgt.c:188)
Hi Sitsofe,
We have reproduced your issue and have a couple of patches we will be pushing to fix this issue shortly. Thanks for the report.
…-Jim
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#89 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABDT6V9z55_-7MG_E7KAQ1awAOgU0GPUks5rJinOgaJpZM4LQAJG>.
|
The issue is solved, the related patches will be pushed later. |
Thanks all! |
@sitofe Can you retest this case, I think that this issue has been fixed. |
We believe this issue is fixed. If the original submitter can reproduce, please re-open. |
Description of the problem
Repeatedly running libiscsi's test suite against a spdk memory based iSCSI target resulted in a double free.
Step to reproduce:
sudo app/iscsi_tgt/iscsi_tgt -c app/iscsi_tgt/iscsi.conf
iscsi-test-cu -V -t SCSI.Read6 iscsi://127.0.0.1/iqn.2016-06.io.spdk:disk1/0
iscsi-test-cu -V -t SCSI.Read6 iscsi://127.0.0.1/iqn.2016-06.io.spdk:disk1/0
Expected result:
Test suite not to hang after 3? iSCSI target not to crash after 5?
Actual result:
After 3 libiscsi's test suite hangs on
After 5 the iSCSI target prints this:
How reproducible is the problem?
The problem is reproducible every time.
Version information:
libiscsi commit 3a598ea8465c8204688c6ccbc6d74003342f6651
spdk commit b8da09b
dpdk-16.11
The text was updated successfully, but these errors were encountered: