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

Segfault scanning drives #26

Closed
TinCanTech opened this issue Feb 8, 2022 · 1 comment
Closed

Segfault scanning drives #26

TinCanTech opened this issue Feb 8, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@TinCanTech
Copy link

TinCanTech commented Feb 8, 2022

  • Linux Mint 20 Cinnamon - 4.6.7 - Kernel 5.4.0-97-generic
  • i gtk2-engines - theme engines for GTK+ 2.x
  • GSmartControl version 1.1.3

If there's anything I can do to help, please ask. I'm not a programmer.

Launching "/usr/bin/gsmartcontrol-root" --no-scan starts the app but segfaults when scanning:

[Tue Feb  8 00:48:02 2022] gsmartcontrol[4079581]: segfault at 0 ip 000055a269ab111e sp 00007ffcc7c48a80 error 4 in gsmartcontrol[55a269a1a000+125000]
[Tue Feb  8 00:48:02 2022] Code: 7c 24 08 48 89 de e8 41 ca f6 ff 48 8b 44 24 08 48 89 df 48 8b 10 48 8b 52 e8 4c 8b 64 10 08 e8 a8 d4 f6 ff 89 c6 48 8b 04 24 <48> 8b 10 48 8b 52 e8 48 8b 7c 10 08 4c 89 e2 e8 be c9 f6 ff 48 8b

This is smartctl -x /dev/sda output (I have sda internal and sdb external USB):

smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-97-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     HGST Travelstar Z5K1000
Device Model:     HGST HTS541010B7E610
Serial Number:    WXG1A7742KJ5
LU WWN Device Id: 5 0014ee 65d347765
Firmware Version: 01.01A01
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Feb  8 01:01:12 2022 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     254 (maximum performance)
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		( 9660) seconds.
Offline data collection
capabilities: 			 (0x71) SMART execute Offline immediate.
					No Auto Offline data collection support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 233) minutes.
Conveyance self-test routine
recommended polling time: 	 (   3) minutes.
SCT capabilities: 	       (0x3035)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR-K   200   200   051    -    0
  3 Spin_Up_Time            POS--K   185   185   021    -    1725
  4 Start_Stop_Count        -O--CK   100   100   000    -    44
  5 Reallocated_Sector_Ct   PO--CK   200   200   140    -    0
  7 Seek_Error_Rate         -OSR-K   200   200   000    -    0
  9 Power_On_Hours          -O--CK   094   094   000    -    4493
 10 Spin_Retry_Count        -O--CK   100   253   000    -    0
 11 Calibration_Retry_Count -O--CK   100   253   000    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    38
192 Power-Off_Retract_Count -O--CK   200   200   000    -    24
193 Load_Cycle_Count        -O--CK   200   200   000    -    35
194 Temperature_Celsius     -O---K   097   082   000    -    46
196 Reallocated_Event_Count -O--CK   200   200   000    -    0
197 Current_Pending_Sector  -O--CK   200   200   000    -    0
198 Offline_Uncorrectable   ----CK   100   253   000    -    0
199 UDMA_CRC_Error_Count    -O--CK   200   200   000    -    0
200 Multi_Zone_Error_Rate   ---R--   100   253   000    -    0
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O      5  Comprehensive SMART error log
0x03       GPL     R/O      6  Ext. Comprehensive SMART error log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x09           SL  R/W      1  Selective self-test log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x24       GPL     R/O    277  Current Device Internal Status Data log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa0-0xa7  GPL,SL  VS      16  Device vendor specific log
0xa8-0xb6  GPL,SL  VS       1  Device vendor specific log
0xb7       GPL,SL  VS      74  Device vendor specific log
0xbd       GPL,SL  VS       1  Device vendor specific log
0xc0       GPL,SL  VS       1  Device vendor specific log
0xc1       GPL     VS      93  Device vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (6 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Conveyance offline  Completed without error       00%         0         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

SCT Status Version:                  3
SCT Version (vendor specific):       258 (0x0102)
Device State:                        Active (0)
Current Temperature:                    46 Celsius
Power Cycle Min/Max Temperature:     38/46 Celsius
Lifetime    Min/Max Temperature:     24/61 Celsius
Under/Over Temperature Limit Count:   0/0
Vendor specific:
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/60 Celsius
Min/Max Temperature Limit:           -41/85 Celsius
Temperature History Size (Index):    128 (94)

Index    Estimated Time   Temperature Celsius
  95    2022-02-07 22:54    43  ************************
 ...    ..( 10 skipped).    ..  ************************
 106    2022-02-07 23:05    43  ************************
 107    2022-02-07 23:06    44  *************************
 ...    ..(  5 skipped).    ..  *************************
 113    2022-02-07 23:12    44  *************************
 114    2022-02-07 23:13    45  **************************
 ...    ..(  3 skipped).    ..  **************************
 118    2022-02-07 23:17    45  **************************
 119    2022-02-07 23:18    44  *************************
 ...    ..( 15 skipped).    ..  *************************
   7    2022-02-07 23:34    44  *************************
   8    2022-02-07 23:35    43  ************************
 ...    ..(  5 skipped).    ..  ************************
  14    2022-02-07 23:41    43  ************************
  15    2022-02-07 23:42    42  ***********************
 ...    ..(  4 skipped).    ..  ***********************
  20    2022-02-07 23:47    42  ***********************
  21    2022-02-07 23:48    43  ************************
 ...    ..(  3 skipped).    ..  ************************
  25    2022-02-07 23:52    43  ************************
  26    2022-02-07 23:53    44  *************************
 ...    ..(  7 skipped).    ..  *************************
  34    2022-02-08 00:01    44  *************************
  35    2022-02-08 00:02    45  **************************
 ...    ..( 47 skipped).    ..  **************************
  83    2022-02-08 00:50    45  **************************
  84    2022-02-08 00:51    46  ***************************
 ...    ..(  9 skipped).    ..  ***************************
  94    2022-02-08 01:01    46  ***************************

SCT Error Recovery Control command not supported

Device Statistics (GP/SMART Log 0x04) not supported

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  2            4  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            6  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS
0x000f  2            0  R_ERR response for host-to-device data FIS, CRC
0x0012  2            0  R_ERR response for host-to-device non-data FIS, CRC
0x8000  4       281928  Vendor specific
@ashaduri
Copy link
Owner

ashaduri commented Feb 8, 2022

This was fixed in version 1.1.4 (#13), please update.

@ashaduri ashaduri closed this as completed Feb 8, 2022
@ashaduri ashaduri added the duplicate This issue or pull request already exists label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants