Opened 2 years ago
Last modified 2 years ago
#1641 new defect
smartctl.exe -d aacraid on Windows crashing when called with full path to binary
Reported by: | Dmitriy | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | undecided |
Component: | all | Version: | 7.3 |
Keywords: | aacraid windows | Cc: |
Description
Good day!
I'd found that *smartctl.exe* works perfectly when called from the current directory. For example:
C:\Program Files\smartmontools\bin> cd C:\Program Files\smartmontools\bin C:\Program Files\smartmontools\bin> smartctl.exe -l selftest -a /dev/sda -d aacraid,0,0,0 ...
In this case it prints SMART Self-set log. All good.
But!
C:\Program Files\smartmontools\bin> cd C:\Program Files\smartmontools\bin C:\Program Files\smartmontools\bin>.\smartctl.exe -l selftest -a /dev/sda -d aacraid,0,0,0
or
C:\Program Files\smartmontools\bin>"C:\Program Files\smartmontools\bin\smartctl.exe" -l selftest -a /dev/sda -d aacraid,0,0,0
made me crazy %) by whipping out window telling "Control and Monitoring utility for SMART Disks has stopped to working. A problem caused the program to stop working correctly. Please close the program".
C:\Program Files\smartmontools\bin>"C:\Program Files\smartmontools\bin\smartctl.exe" -V smartctl 7.3 2021-08-27 r5230 [x86_64-w64-mingw32-2008r2-sp1] (CircleCI) Copyright (C) 2002-21, Bruce Allen, Christian Franke, www.smartmontools.org smartctl comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under the terms of the GNU General Public License; either version 2, or (at your option) any later version. See https://www.gnu.org for further details. smartmontools release 7.3 dated 2020-12-30 at 16:48:30 UTC smartmontools SVN rev 5230 dated 2021-08-27 at 16:09:18 smartmontools build host: x86_64-w64-mingw32 smartmontools build with: C++11, GCC 7.3-win32 20180312 smartmontools configure arguments: 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-w64-mingw32'
Change History (3)
comment:1 by , 2 years ago
comment:2 by , 2 years ago
Keywords: | aacraid windows added; path binary argv[0] removed |
---|---|
Priority: | minor → major |
smartctl 7.3 2021-08-27 r5230 [x86_64-w64-mingw32-2008r2-sp1] (CircleCI)
This is a 7.3-prerelease CI build. The -d aacraid,...
option was disabled one commit later (r5231) because the code is unmaintained and reportedly broken. See ticket #1515 for details.
Please retry with 7.3 final and -d aacraid,0,0,0,force
option.
The possible connection of the crash to the specified path to the executable is interesting and may help some volunteer developer with access to this controller to find the root of the problem.
comment:3 by , 2 years ago
Summary: | smartctl.exe on Windows crashing when called with full path to binary (argv[0] problem?) → smartctl.exe -d aacraid on Windows crashing when called with full path to binary |
---|
If it maybe helpful...