Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#1701 closed defect (fixed)

Smartctl: Exception: json.cpp(313): Assertion failed: p->type == nt_array

Reported by: asomers Owned by:
Priority: minor Milestone: Release 7.4
Component: all Version:
Keywords: json scsi Cc:

Description

smartctl -a /dev/da75 --json crashes for one particular disk, perhaps because it has a nonempty pending defects list.

[asomers@XXX ~]$ smartctl -V
smartctl 7.3 2022-02-28 r5338 [FreeBSD 13.1-XXX amd64] (local build)
Copyright (C) 2002-22, 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 2022-02-28 at 16:33:40 UTC
smartmontools SVN rev 5338 dated 2022-02-28 at 16:34:26
smartmontools build host: amd64-portbld-freebsd13.0
smartmontools build with: C++11, GCC FreeBSD Clang 12.0.1 (git@…:llvm/llvm-project.git llvmorg-12.0.1-0-gfed41342a82f)
smartmontools configure arguments: '--disable-dependency-tracking' '--enable-sample' '--with-gnupg=no' '--with-initscriptdir=/usr/local/etc/rc.d' '--with-nvme-devicescan=yes' '--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/man' '--disable-silent-rules' '--infodir=/usr/local/share/info/' '--build=amd64-portbld-freebsd13.0' 'build_alias=amd64-portbld-freebsd13.0' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -fstack-protector-strong -fno-strict-aliasing ' 'LDFLAGS= -fstack-protector-strong ' 'LIBS=' 'CPPFLAGS=' 'CC=cc' 'CFLAGS=-O2 -pipe -fstack-protector-strong -fno-strict-aliasing ' 'PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/sysutils/smartmontools/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig'
[asomers@XXX ~]$ sudo smartctl -a /dev/da75 --json
Smartctl: Exception: json.cpp(313): Assertion failed: p->type == nt_array
Please inform smartmontools-support@…, including output of smartctl -V.

Attachments (1)

smartctl-a-da75.txt (27.4 KB ) - added by asomers 22 months ago.
Output of "smartctl -a" on the problematic disk.

Download all attachments as: .zip

Change History (4)

by asomers, 22 months ago

Attachment: smartctl-a-da75.txt added

Output of "smartctl -a" on the problematic disk.

comment:1 by asomers, 22 months ago

Nevermind; I see that this is already fixed in SVN by revision 5434 .

comment:2 by asomers, 22 months ago

Resolution: fixed
Status: newclosed
Last edited 22 months ago by Christian Franke (previous) (diff)

comment:3 by Christian Franke, 22 months ago

Keywords: json scsi added
Milestone: Release 7.4

No problem.

Note: See TracTickets for help on using tickets.