FS#64637 - [arch-audit] thread panicked, serde_json::from_str

Attached to Project: Community Packages
Opened by Bernd Arnold (bernd) - Sunday, 24 November 2019, 20:19 GMT
Last edited by Levente Polyak (anthraxx) - Monday, 25 November 2019, 08:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Running arch-audit on an up-to-date system results in:

# arch-audit
thread 'main' panicked at 'serde_json::from_str failed: ErrorImpl { code: ExpectedSomeValue, line: 1, column: 1 }', libcore/result.rs:916:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Additional info:
* package version(s): arch-audit 0.1.10
* config and/or log files etc.: none
* link to upstream bug report, if any: nope

Steps to reproduce:
- pacman -Syu
- pacman -S arch-audit
- arch-audit

The pkg arch-audit wasn't updated since 2018-03, so I guess the cause for the panick is another package...
This task depends upon

Closed by  Levente Polyak (anthraxx)
Monday, 25 November 2019, 08:19 GMT
Reason for closing:  Works for me
Comment by Bernd Arnold (bernd) - Sunday, 24 November 2019, 20:20 GMT
The backtrace shows:

# RUST_BACKTRACE=1 arch-audit
thread 'main' panicked at 'serde_json::from_str failed: ErrorImpl { code: ExpectedSomeValue, line: 1, column: 1 }', libcore/result.rs:916:5
stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: __libc_start_main
17: <unknown>
Comment by Levente Polyak (anthraxx) - Monday, 25 November 2019, 08:17 GMT
This happened duo to the security.archlinux.org API endpoint being down for maintenance. Actually arch-audit should handle this case and display a graceful message instead of panic-ing the application so you may want to request this upstream.

Loading...