Drive-Trust-Alliance / sedutil

DTA sedutil Self encrypting drive software
613 stars 237 forks source link

Assertion `str_WWN.length()==(2*sizeof(device_info.worldWideName))' failed. #482

Open tavianator opened 1 week ago

tavianator commented 1 week ago
root@tachyon ~ # nvme list
Node                  Generic               SN                   Model                                    Namespace  Usage                      Format           FW Rev  
--------------------- --------------------- -------------------- ---------------------------------------- ---------- -------------------------- ---------------- --------
/dev/nvme0n1          /dev/ng0n1            S5-------------      Samsung SSD 980 PRO 1TB                  0x1        961.78  GB /   1.00  TB    512   B +  0 B   5B2QGXA7
/dev/nvme1n1          /dev/ng1n1            S5-------------      Samsung SSD 980 PRO 1TB                  0x1        963.89  GB /   1.00  TB    512   B +  0 B   5B2QGXA7
/dev/nvme2n1          /dev/ng2n1            S5-------------      Samsung SSD 970 EVO Plus 1TB             0x1        984.09  GB /   1.00  TB    512   B +  0 B   2B2QEXM7
/dev/nvme3n1          /dev/ng3n1            S5-------------      Samsung SSD 970 EVO Plus 1TB             0x1        979.63  GB /   1.00  TB    512   B +  0 B   2B2QEXM7
root@tachyon ~ # sedutil-cli -vvvvv --query /dev/nvme1n1
Log level set to DBG4
sedutil version : 1.49.4
- 13:45:18.884 DBG4: openDeviceHandle("/dev/nvme1n1", _)
- 13:45:18.884 DBG4: openDeviceHandle("/dev/nvme1n1", _)=> descriptor=3
- 13:45:18.884 DBG4: /dev/nvme1n1 driveParameters:
- 13:45:18.884 DBG3: Device properties from os:
- 13:45:18.884 DBG3: ID_SERIAL_SHORT is S5P2NL0W416152P
- 13:45:18.884 DBG3: ID_MODEL is Samsung SSD 980 PRO 1TB
- 13:45:18.884 DBG3: ID_REVISION is 5B2QGXA7
- 13:45:18.884 DBG3: ID_WWN is eui.002538b431a18275
- 13:45:18.884 DBG3: str_WWN is 5
- 13:45:18.884 DBG3: str_WWN.length()=1
- 13:45:18.884 DBG3: sizeof(device_info.worldWideName)=8
sedutil-cli: linux/DtaLinux.cpp:219: virtual DtaOS::dictionary* DtaLinux::getOSSpecificInformation(OSDEVICEHANDLE, const char*, unsigned char (&)[28], DTA_DEVICE_INFO&): Assertion `str_WWN.length()==(2*sizeof(device_info.worldWideName))' failed.
[1]    3717480 IOT instruction (core dumped)  sedutil-cli -vvvvv --query /dev/nvme0n1
root@tachyon ~ # sedutil-cli --version
sedutil-cli : linux.1.49.4
werman commented 1 day ago

I encountered the same issue with sedutil-cli : linux.1.49.4 on Arch Linux:

#5  0x000055555557093f in DtaLinux::getOSSpecificInformation[abi:cxx11](void*, char const*, unsigned char (&) [28], _DTA_DEVICE_INFO&) (this=<optimized out>, osDeviceHandle=<optimized out>, devref=<optimized out>, interfaceDeviceIdentification=..., device_info=...) at linux/DtaLinux.cpp:219
#6  0x00005555555827b5 in DtaDrive::getDtaDrive (devref=0x5555556146f0 "/dev/nvme1n1", device_info=..., accessDenied=@0x7fffffffd4de: false) at ./Common/DtaOS.h:112
#7  DtaDev::getDtaDev (devref=0x5555556146f0 "/dev/nvme1n1", dev=@0x7fffffffd980: 0x0, genericIfNotTPer=genericIfNotTPer@entry=true) at Common/DtaDev.cpp:494
#8  0x0000555555584505 in DtaDev::diskScan () at /usr/include/c++/14.2.1/bits/basic_string.h:227
#9  0x00005555555657f5 in main (argc=2, argv=0x7fffffffe1c8) at Common/sedutil.cpp:315
Node                  Generic               SN                   Model                                 
--------------------- --------------------- ------ ---------------------------------------- ----------
/dev/nvme0n1          /dev/ng0n1            2      WD_BLACK SN850X 4000GB                   0x1       
/dev/nvme1n1          /dev/ng1n1            S      Samsung SSD 970 EVO Plus 1TB             0x1       
/dev/nvme2n1          /dev/ng2n1            S      SAMSUNG MZVLB512HBJQ-000L7               0x1