Well, this is really weird. I have been using GDM for login, and using KDE as desktop environment. To test something else, I switched to SDDM. When I login to KDE using SDDM, it seems that "uptime" works perfectly. So I switched back to GDM, and now it dumps core again. That's an unexpected weird interaction. I should have mentioned in the initial report, that "uptime" is from the package "coreutils-systemd". I also tried "who" and "users" from that package, and they also dumped core. I did not retry those with SDDM.