Skip to content
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

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

Open
tavianator opened this issue Nov 22, 2024 · 4 comments

Comments

@tavianator
Copy link

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
Copy link

werman commented Nov 29, 2024

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       

@timeto2025
Copy link

Im also having this issue with sedutil-cli 1.49.4 version on Arch Linux and Samsung 990 Pro ssd

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.

@scottcmarks
Copy link

scottcmarks commented Dec 10, 2024 via email

@yvvki
Copy link

yvvki commented Dec 15, 2024

The package in the Arch Linux user repository got updated to 1.49.6 and now it show a different error.

# sedutil-cli --scan
Scanning for Opal compliant disks
DtaLinux::PerformNVMeCommand:: ioctl(3, ...) failed with kernResult 0x00002001
      NVME 1 No                            @
No more disks present -- ending scan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants