Bug 48494 - /usr/bin/audacity is huge
Summary: /usr/bin/audacity is huge
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: elfutils (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-18 08:40 MSK by ildar
Modified: 2023-11-23 11:09 MSK (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ildar 2023-11-18 08:40:00 MSK
размер файла 232 150 328 байт.
Похоже на ошибку сборки. Я проверил в других дистрибутивах, ничего подобного нет.
Comment 1 ildar 2023-11-18 08:42:41 MSK
да, strip помог
Comment 2 Ivan A. Melnikov 2023-11-18 09:28:04 MSK
Спасибо, посмотрю.
Comment 3 Ivan A. Melnikov 2023-11-22 13:09:16 MSK
Я ожидаю, что strip'ать /usr/bin/audacity должен rpmbuild, после того, как извлечёт из него debuginfo. rpmbuild, похоже, делает это, но не слишком успешно: он вызывает eu-strip, который по каким-то причинам не слишком справляется -- обычный strip справляется гораздо лучше:

$ rpm -qf /usr/bin/audacity
audacity-3.4.2-alt1.x86_64
$ cp /usr/bin/audacity ./audacity
$ eu-strip --strip-all ./audacity
$ ls -lh ./audacity
-rwxr-xr-x 1 iv iv 222M Nov 22 14:04 ./audacity
$ strip --strip-all ./audacity
$ ls -lh ./audacity
-rwxr-xr-x 1 iv iv 15M Nov 22 14:04 ./audacity

Перевешиваю на elfutils и прошу помощи знатоков оттуда.
Comment 4 Vitaly Chikunov 2023-11-23 11:09:50 MSK
- rpmpeek /ALT/Sisyphus/files/x86_64/RPMS/audacity-3.4.2-alt1.x86_64.rpm
$ readelf -S usr/bin/audacity
..
  [20] .bss              NOBITS       0000000000d68380  d67348 024360 00  WA  0   0 64
  [21] .gnu.build.attributes NOTE     0000000000d8e6e0 dd64be0 000048 00      0   0  4
  [22] .interp           PROGBITS     000000000dc77000 dc77000 00001c 00   A  0   0  8
...

Похоже после .bss много пустого пространства, это как раз примерно где и были .debug секции.

- rpmpeek /ALT/Sisyphus/files/x86_64/RPMS/audacity-debuginfo-3.4.2-alt1.x86_64.rpm
$ eu-readelf -S ./usr/lib/debug/usr/bin/audacity.debug
...
[20] .bss                 NOBITS       0000000000d68380 000003c0 00024360  0 WA     0   0 64
[21] .comment             PROGBITS     0000000000000000 000003c0 00000036  1 MS     0   0  1
[22] .GCC.command.line    PROGBITS     0000000000000000 000003f6 000004af  1 MS     0   0  1
[23] .gnu.build.attributes NOTE         0000000000d8e6e0 000008a8 00000048  0        0   0  4
[24] .debug_aranges       PROGBITS     0000000000000000 000008f0 000032f0  0        0   0  1
[25] .debug_info          PROGBITS     0000000000000000 00003be0 08a4e448  0        0   0  1
[26] .debug_abbrev        PROGBITS     0000000000000000 08a52028 002cc845  0        0   0  1
[27] .debug_line          PROGBITS     0000000000000000 08d1e86d 00928ec8  0        0   0  1
[28] .debug_str           PROGBITS     0000000000000000 09647735 02287da1  1 MS     0   0  1
[29] .debug_line_str      PROGBITS     0000000000000000 0b8cf4d6 00012aea  1 MS     0   0  1
[30] .debug_loclists      PROGBITS     0000000000000000 0b8e1fc0 00ff35a1  0        0   0  1
[31] .debug_rnglists      PROGBITS     0000000000000000 0c8d5561 003430f0  0        0   0  1
[32] .symtab              SYMTAB       0000000000000000 0cc18658 000d4970 24       33 17096  8
[33] .strtab              STRTAB       0000000000000000 0ccecfc8 0022097c  0        0   0  1
[34] .shstrtab            STRTAB       0000000000000000 0cf0d944 000001c8  0        0   0  1
[35] .interp              NOBITS       000000000dc77000 0cf0db10 0000001c  0 A      0   0  8
...


ps. Please reports bugs at https://sourceware.org/bugzilla/