<div dir="ltr"><div><font size="4">I have two NVMe . One encounters errors when using version 7.4, while the other encounters errors when using version 7.5.</font></div><div><font size="4"><br></font></div><div><font size="4">But no matter it's version 7.4 or 7.5, just adding one line of code can solve the problem. I don't know why.</font></div><div><br></div><div>// Main program<br>int main(int argc, char **argv)<br>{<br><b><font size="4" style="background-color:rgb(255,0,0)">    pout(" ");  //fix bug</font></b><br><br>  int status;<br>  bool badcode = false;<br></div><div>....................</div><div style="font-weight:bold"><b><br></b></div><div style="font-weight:bold"><b><br></b></div><div style="">=====================================7.4=====================================</div><b>smartctl -j -a /dev/nvme0</b><br>{<br>  "json_format_version": [<br>    1,<br>    0<br>  ],<br>  "smartctl": {<br>    "version": [<br>      7,<br>      4<br>    ],<br>    "pre_release": false,<br>    "svn_revision": "5530",<br>    "platform_info": "x86_64-linux-6.8.0-71-generic",<br>    "build_info": "(local build)",<br>    "argv": [<br>      "smartctl",<br>      "-j",<br>      "-a",<br>      "/dev/nvme0"<br>    ],<br>    "exit_status": 8<br>  },<br>  "local_time": {<br>    "time_t": 1755910276,<br>    "asctime": "Sat Aug 23 08:51:16 2025 CST"<br>  },<br>  "device": {<br>    Smartctl: Exception: json.cpp(535): Assertion failed: is_obj == !p2->key.empty()<br>Please inform <a href="mailto:smartmontools-support@listi.jpberlin.de">smartmontools-support@listi.jpberlin.de</a>, including output of smartctl -V.<br>free(): invalid pointer<br>Aborted (core dumped)<br><br><div><br></div><div><b>smartctl -V -j -a /dev/nvme0</b><br>smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.8.0-71-generic] (local build)<br>Copyright (C) 2002-23, Bruce Allen, Christian Franke, <a href="http://www.smartmontools.org">www.smartmontools.org</a><br><br>smartctl comes with ABSOLUTELY NO WARRANTY. This is free<br>software, and you are welcome to redistribute it under<br>the terms of the GNU General Public License; either<br>version 2, or (at your option) any later version.<br>See <a href="https://www.gnu.org">https://www.gnu.org</a> for further details.<br><br>smartmontools release 7.4 dated 2023-08-01 at 10:59:45 UTC<br>smartmontools SVN rev 5530 dated 2023-08-01 at 11:00:21<br>smartmontools build host: x86_64-pc-linux-gnu<br>smartmontools build with: C++11, GCC 13.2.0<br>smartmontools configure arguments: [hidden in reproducible builds]<br>reproducible build SOURCE_DATE_EPOCH: 1712593173 (2024-04-09 00:19:33)</div><div><br></div><div><br></div><div><br></div><div>=====================================7.5=====================================</div><div>./smartctl -j -a /dev/nvme1<br>Fatal glibc error: malloc.c:2599 (sysmalloc): assertion failed: (old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)<br>Aborted (core dumped)</div><div><br></div><div>smartctl 7.5 2025-04-30 r5714 [x86_64-linux-6.8.0-71-generic] (local build)<br>Copyright (C) 2002-25, Bruce Allen, Christian Franke, <a href="http://www.smartmontools.org">www.smartmontools.org</a><br><br>smartctl comes with ABSOLUTELY NO WARRANTY. This is free<br>software, and you are welcome to redistribute it under<br>the terms of the GNU General Public License; either<br>version 2, or (at your option) any later version.<br>See <a href="https://www.gnu.org">https://www.gnu.org</a> for further details.<br><br>smartmontools release 7.5 dated 2025-04-30 at 07:42:55 UTC<br>smartmontools SVN rev 5714 dated 2025-04-30 at 07:43:44<br>smartmontools build host: x86_64-pc-linux-gnu<br>smartmontools build with: C++11, GCC 13.3.0<br>smartmontools configure arguments: [no arguments given]</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>