Skip to content

Segmentation fault is seen upon resizing the storage size #218

@mittachaitu

Description

@mittachaitu

Description

Upon modifying the LUN0 Storage in istgt.conf file, to reload modified configuration executed istgtcontrol refresh then segmentation fault is seen.

Expected Behavior

istgt should not crash

Steps to Reproduce

  • Run the istgt binary.
  • Modify the value of storage in /usr/local/etc/istgt/istgt.conf file
  • Execute the istgtcontrol refresh command to reload the configurations.

Logs of istgt
2019-02-11/12:13:40.023 main :3089: m#-1747536064.6923 : istgt:0.5.20121028:09:27:44:Feb 7 2019: starting

2019-02-11/12:13:40.023 main :3146: m#-1747536064.6923 : LU2 HDD UNIT
2019-02-11/12:13:40.024 istgt_lu_disk_init: 904: m#-1747536064.6923 : lu_disk_init LU2 TargetName=iqn.2016-09.com.openebs.cstor:vol1
LU2: LUN0 iqn.2016-09.com.openebs.cstor:vol1: storage_online [(null), 4GB.0MB, 1048576 blks of 4096 bytes, phy:0/3 WCE rpm:7200] q:128 thr:6/0 [0.0, 0.0]
LU2: LUN0 serial:4059aab98f093c5d95207f7af09d1413
2019-02-11/12:13:40.024 istgt_lu_disk_init:1337: m#-1747536064.6923 : LU2: LUN0 serial:4059aab98f093c5d95207f7af09d1413
2019-02-11/12:13:52.055 istgt_reload :2141: u#10.140606617675520: reload configuration#1 start

[istgt:0.5.20121028:09:27:44:Feb 7 2019]
2019-02-11/12:13:52.056 istgt_lu_disk_shut:1432: u#10.140606617675520: LU2: LUN0 iqn.2016-09.com.openebs.cstor:vol1: storage_offlinex [(null) 1048576 blocks, 4096 bytes/block] [0.0 0.0 0.0]

LU2 HDD UNIT
2019-02-11/12:13:52.056 istgt_lu_disk_init: 904: u#10.140606617675520: lu_disk_init LU2 TargetName=iqn.2016-09.com.openebs.cstor:vol1
LU2: LUN0 iqn.2016-09.com.openebs.cstor:vol1: storage_online [(null), 5GB.0MB, 1310720 blks of 4096 bytes, phy:0/3 WCE rpm:7200] q:128 thr:6/0 [0.0, 0.0]
2019-02-11/12:13:52.057 istgt_lu_disk_init:1327: u#10.140606617675520: LU2: LUN0 iqn.2016-09.com.openebs.cstor:vol1: storage_online [(null), 5GB.0MB, 1310720 blks of 4096 bytes, phy:0/3 WCE rpm:7200] q:128 thr:6/0 [0.0, 0.0]
LU2: LUN0 serial:4059aab98f093c5d95207f7af09d1413
2019-02-11/12:13:52.057 istgt_lu_disk_init:1337: u#10.140606617675520: LU2: LUN0 serial:4059aab98f093c5d95207f7af09d1413
2019-02-11/12:13:52.057 istgt_lu_reload_up:3325: u#10.140606617675520: update LU2: Name=iqn.2016-09.com.openebs.cstor:vol1
Fatal signal received: 11
Stack trace:
./istgt[0x40bd10]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7fe196c5b4b0]
./istgt[0x5a236c]
./istgt[0x5a367d]
./istgt[0x5936d1]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7fe19750b6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fe196d2d41d]
Segmentation fault (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions