| Summary: | FREE command: Wrong display formatting | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Markus Robert Keßler <mandrake> |
| Component: | RPM Packages | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | brtians1, fri, geex+mageia, geiger.david68210, herman.viaene, mageia, mandrake, marja11, sysadmin-bugs |
| Version: | 9 | Keywords: | advisory, validated_update |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | MGA9-64-OK, MGA9-32-OK | ||
| Source RPM: | procps-ng-3.3.17-2.mga9.src.rpm | CVE: | |
| Status comment: | Advisory and packages in comment#29 | ||
| Attachments: | Test of procps-ng before and after the upgrade to 2.2 release | ||
I recommend reporting this upstream (if you want it to be fixed). Thanks. It seems caused by the translated strings for "Mem:" and "Swap:" having different lengths than in English. In French the values for swap even end up in the wrong column:
LANGUAGE=fr free
total utilisé libre partagé tamp/cache disponible
Mem: 8050920 1831260 286324 117452 5933336 5798948
Partition d'échange: 8368256 0 8368256
@ Markus
When you file an upstream bug report, then please give the link to it in this report.
Assigning to the registered maintainer.CC:
(none) =>
marja11 Just alerted them via email list ( procps@freelists.org ). Keep you updated in case of any response. Hi, looks like we will never get any respnse from them. Had a look into SuSE's Tumbleweed-sources in the meantime -- they use dozens of patches for issues like this. Let's have a look into this rpm: ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/opensuse/source/tumbleweed/repo/oss/suse/src/procps-3.3.12-10.1.src.rpm Fixed since v4.0.0 https://gitlab.com/procps-ng/procps/-/issues/229 Actual upstream version is 4.0.4 Mageia 9 still ships the heavily outdated procps-ng-3.3.17 from February 2021!
sturmvogel
2023-11-12 22:58:07 CET
Keywords:
UPSTREAM =>
(none)
sturmvogel
2023-11-12 22:58:25 CET
Assignee:
tmb =>
bugsquad Thanks to DavidG, we now have version 4.0.4 in Cauldron. May we ask you to do the Mageia 9 bit? + Advisory... Assignee:
bugsquad =>
geiger.david68210 Impossible to update mga9 with version 4.x, there is a lot of change with libraries that can't be updated! Please test the upcoming procps-ng-3.3.17-2.1.mga9 in Core/updates_testing repo! Advisory: ##################################################################### free command output is misaligned when using many non-english locales this update fixes the issue Packages in 9/core/updates_testing: ##################################################################### procps-ng-3.3.17-2.1.mga9 SRPM: #################################################################### procps-ng-3.3.17-2.1.mga9 Assignee:
geiger.david68210 =>
qa-bugs Advisory: ##################################################################### free command output is misaligned when using many non-english locales this update fixes the issue References: #################################################################### https://gitlab.com/procps-ng/procps/-/issues/229 https://bugs.mageia.org/show_bug.cgi?id=22553 Packages in 9/core/updates_testing: ##################################################################### procps-ng-3.3.17-2.1.mga9 lib(64)procps-devel-3.3.17-2.1.mga9 lib(64)procps8-3.3.17-2.1.mga9 SRPM: #################################################################### procps-ng-3.3.17-2.1.mga9
katnatek
2023-12-02 19:50:49 CET
Status comment:
Fixed since v4.0.0 =>
Advisory and packages in comment#10 @Markus Robert Keßler: can you test the packages proposed in your system, I can't reproduce the fail in my system with the current procps-ng packages I test the update and the packages updates without issues Advisory from comment 10 added to SVN. Please remove the "advisory" keyword if it needs to be changed. It also helps when obsolete advisories are tagged as "obsolete" Keywords:
(none) =>
advisory
katnatek
2023-12-03 04:29:39 CET
CC:
(none) =>
geiger.david68210 Tested on Real Hardware Mageia i586 lxqt
Before the update:
LANGUAGE=fr free
total utilisé libre partagé tamp/cache disponible
Mem: 2050256 552932 370984 70060 1126340 1198848
Partition d'échange: 4189564 0 4189564
LANGUAGE=de free
gesamt benutzt frei gemns. Puffer/Cache verfügbar
Speicher: 2050256 555336 366760 71776 1128160 1194728
Swap: 4189564 0 4189564
After the update
LANGUAGE=fr free
total used free shared buff/cache available
Mem: 2050256 1203848 173376 68852 673032 556892
Swap: 4189564 146808 4042756
[katnatek@cefiro ~]$ LANGUAGE=de free
total used free shared buff/cache available
Mem: 2050256 1204808 172408 68860 673040 555924
Swap: 4189564 146808 4042756
@David GEIGER: Is the expected behaviour? It looks like the problematic locales are removed
Nop there is now an issue with translation files, please test next procps-ng-3.3.17-2.2.mga9 update! (In reply to David GEIGER from comment #14) > Nop there is now an issue with translation files, please test next > procps-ng-3.3.17-2.2.mga9 update! Updated the advisory with procps-ng-3.3.17-2.2.mga9 Created attachment 14192 [details] Test of procps-ng before and after the upgrade to 2.2 release New test after tweak my /etc/rpm/macros to include de and fr locales (bug#32589) I restore current procps-ng Make test for en de and fr locales update to procps-ng-3.3.17-2.2.mga9 packages Make again the test for en de and fr locales The behaviour improves but still a few misaligned Tested on Real Hardware Mageia 9 i586 lxqt
katnatek
2023-12-04 19:27:29 CET
CC:
(none) =>
ubuntu Markus as reporter, please test if the procps-ng-3.3.17-2.2 packages are good enough for you, the list of packages is the same as in comment#10 just change 2.1 to 2.2 Works with english and seems to format properly CC:
(none) =>
brtians1 (In reply to Brian Rockwell from comment #18) > Works with english and seems to format properly English is the only language that works Alignment is still not good, i have for long set alias free='LANG=C free -h' because of this.
$ free
total utilisé libre partagé tamp/cache disponible
Mem: 3764788 1321628 354744 21860 2398028 2443160
Échange: 8189244 1573036 6616208
$ LANG=C free
total used free shared buff/cache available
Mem: 3764788 1351452 426212 21860 2296736 2413336
Swap: 8189244 1573036 6616208CC:
(none) =>
geex+mageia your window seems too small, you should increase its size. I'm using the gnome-terminal default of 80x24. Resizing changes nothing. I think they fixed the alignment for Mem and Swap lines, but not the header line. In the outputs of https://gitlab.com/procps-ng/procps/-/issues/229 , all the header lines are in english... (In reply to Guillaume Bedot from comment #20) What terminal what are you usin? I use source code pro semi bold 10 i get this with Finnish (Finland locale) : [ozky@ozky-pc ozky]$ free total used free shared buff/cache available Mem: 8020760 4002072 291564 821052 3727124 2860500 Swap: 41575184 1530880 40044304 [ozky@ozky-pc ozky]$ LANG=C free total used free shared buff/cache available Mem: 8020760 4001612 337536 821828 3681612 2839912 Swap: 41575184 1530368 40044816 (In reply to Otto Leipälä from comment #23) > (In reply to Guillaume Bedot from comment #20) > What terminal what are you usin? > I use source code pro semi bold 10 > i get this with Finnish (Finland locale) : > > [ozky@ozky-pc ozky]$ free > total used free shared buff/cache > available > Mem: 8020760 4002072 291564 821052 3727124 > 2860500 > Swap: 41575184 1530880 40044304 > [ozky@ozky-pc ozky]$ LANG=C free > total used free shared buff/cache > available > Mem: 8020760 4001612 337536 821828 3681612 > 2839912 > Swap: 41575184 1530368 40044816 You get the output in English because the application not have translations for you language: usr/share/locale/de/LC_MESSAGES/procps-ng.mo /usr/share/locale/fr/LC_MESSAGES/procps-ng.mo /usr/share/locale/pl/LC_MESSAGES/procps-ng.mo /usr/share/locale/pt_BR/LC_MESSAGES/procps-ng.mo /usr/share/locale/sv/LC_MESSAGES/procps-ng.mo /usr/share/locale/uk/LC_MESSAGES/procps-ng.mo /usr/share/locale/vi/LC_MESSAGES/procps-ng.mo /usr/share/locale/zh_CN/LC_MESSAGES/procps-ng.mo the bug is valid and present at less for de and fr, see our brand new wiki page to test this type of bugs https://wiki.mageia.org/en/QA_process_for_testing_foreign_language_issues @Otto, like katnatek said, you are comparing the same output (used, shared, etc don't seem finnish to me). I'm comparing C / en locale with my language (fr) locale. Yes.... Before the update of procps-ng (wiki above applied)
$ LANGUAGE=nl free
total used free shared buff/cache available
Mem: 3849256 1420048 259944 130696 2169264 2005608
Swap: 4094988 8764 4086224
after the update has been installed:
$ LANGUAGE=nl free
free: symbol lookup error: free: undefined symbol: kb_committed_as, version LIBPROCPS_0CC:
(none) =>
herman.viaene (In reply to Herman Viaene from comment #27) > Before the update of procps-ng (wiki above applied) > $ LANGUAGE=nl free > total used free shared buff/cache > available > Mem: 3849256 1420048 259944 130696 2169264 > 2005608 > Swap: 4094988 8764 4086224 > after the update has been installed: > $ LANGUAGE=nl free > free: symbol lookup error: free: undefined symbol: kb_committed_as, version > LIBPROCPS_0 You not install lib(64)procps8-3.3.17-2.2.mga9 Advisory: ##################################################################### free command output is misaligned when using many non-english locales this update fixes the issue References: #################################################################### https://gitlab.com/procps-ng/procps/-/issues/229 https://bugs.mageia.org/show_bug.cgi?id=22553 Packages in 9/core/updates_testing: ##################################################################### procps-ng-3.3.17-2.2.mga9 lib(64)procps-devel-3.3.17-2.2.mga9 lib(64)procps8-3.3.17-2.2.mga9 SRPM: #################################################################### procps-ng-3.3.17-2.2.mga9
katnatek
2023-12-14 19:10:11 CET
Status comment:
Advisory and packages in comment#10 =>
Advisory and packages in comment#29 Just update the advisory to make clear the versions Give the 32-OK, based in my test in comment#16 and the lack of feedback of reporter Whiteboard:
(none) =>
MGA9-32-OK
PC LX
2023-12-16 01:27:54 CET
CC:
(none) =>
mageia mga9-64 OK: I see the problem fixed: tested de and fr, and working output in nl too (same phrases as en) and sv is also OK. @Marja: Advisory need be updated regarding versions I refrain from now validating as i have read it is not enough to remove the advisory keyword to hinder pushing when advisory is already uploaded. CC:
(none) =>
fri (In reply to Morgan Leijström from comment #32) > > @Marja: > Advisory need be updated regarding versions > Again? To which version, then? (In reply to Marja Van Waes from comment #15) > (In reply to David GEIGER from comment #14) > > Nop there is now an issue with translation files, please test next > > procps-ng-3.3.17-2.2.mga9 update! > > Updated the advisory with procps-ng-3.3.17-2.2.mga9 Sorry if I'm blind again, but procps-ng-3.3.17-2.2.mga9 is in the advisory in SVN. AFAICS that is the same as in the Advisory in comment 29 Last revision: https://svnweb.mageia.org/advisories/22553.adv?revision=15399&view=markup Revision log: https://svnweb.mageia.org/advisories/22553.adv?view=log Please re-add the advisory keyword if that is OK Sorry, i got confused. All OK :) Keywords:
(none) =>
advisory, validated_update An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2023-0148.html Status:
NEW =>
RESOLVED |
Description of problem: Free command to show the amount of memory has an issue with locales. At least for German language the displayed text is not formatted correctly: $ LANGUAGE=en free total used free shared buff/cache available Mem: 4003196 691016 304156 93780 3008024 2929672 Swap: 4930236 0 4930236 $ LANGUAGE=de free gesamt benutzt frei gemns. Puffer/Cache verfügbar Speicher: 4003196 691240 303932 93780 3008024 2929448 Swap: 4930236 0 4930236 Version-Release number of selected component (if applicable): See source version How reproducible: Always Steps to Reproduce: 1. just 2. invoke 3. as shown