aneas / arch-diff

Perform a full diff between all pacman packages and the file system
MIT License
9 stars 1 forks source link

Assertion failure on ARM #5

Open Hjdskes opened 7 years ago

Hjdskes commented 7 years ago

Hello,

When I run arch-diff on my ARM server running Arch Linux ARM, I get the following assertion failure:

[alarm@alarm ~]$ sudo arch-diff
[modified]  size 606 != 755: /etc/group
[modified]  size 498 != 630: /etc/gshadow
[modified]  size 612 != 1005: /etc/passwd
[modified]  type file != link: /etc/resolv.conf
[modified]  size 295 != 719: /etc/shadow
arch-diff: src/main.c:349: main: Assertion `entries != NULL' failed.
Hjdskes commented 7 years ago

What is the invariant that this assertion is checking? The loop following the assertion won't execute if entries is equal to NULL as it is the loop's condition.

I removed the assertion and things execute just fine (on the surface, at least). There is one package (libarchive) whose files are listed as untracked but I'm not sure if that is due to the removal of the assertion.