Opened 6 days ago

Closed 6 days ago

#1154 closed defect (fixed)

Bogus smartctl exception on unknown ATA form factor value [regression]

Reported by: Christian Franke Owned by: Christian Franke
Priority: critical Milestone: Release 7.1
Component: smartctl Version: 7.0
Keywords: json Cc:

Description

If a drive reports a form factor > 0x9 in ATA IDENTIFY word 168, smartctl 7.0 aborts with a JSON exception even if JSON output mode is not enabled:

smartctl 7.0 2018-12-30 r4883 [Darwin 17.7.0 x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Marvell based SanDisk SSDs
Device Model:     SanDisk SDSSDHP128G
Firmware Version: X2306RL
User Capacity:    128,035,676,160 bytes [128 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      Unknown (0x000a)
Smartctl: Exception: json.cpp(121): Assertion failed: value
Please inform smartmontools-support@listi.jpberlin.de, including output
of smartctl -V.

Thanks to Olaf Pokorny for the bug report on smartmontools-support mailing list.

This is a serious regression from r4640 as it blocks usage of smartctl with such drives.

Change History (2)

comment:1 Changed 6 days ago by Christian Franke

Owner: set to Christian Franke
Status: newaccepted

comment:2 Changed 6 days ago by Christian Franke

Resolution: fixed
Status: acceptedclosed

Fixed in r4889.

Note: See TracTickets for help on using tickets.