Bug 132100 - jails full of debugsource
Summary: jails full of debugsource
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.0.0
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-14 15:53 UTC by Michael Meeks
Modified: 2020-04-14 17:00 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meeks 2020-04-14 15:53:42 UTC
There is no need or usefulness to have debugsource inside our jails. The shared versions are accessed from the parent file-system:

This is an strace of a gdb in the parent system attaching to and getting debuginfo from various files / symbols:

6712  open("/opt/collaboraoffice6.2/program/libuno_cppu.so.3", O_RDONLY) = 9
...
6712  write(1, "Reading symbols from /opt/collaboraoffice6.2/program/libuno_cppu.so.3...", 72) = 72
6712  lseek(9, 237568, SEEK_SET)        = 237568
...

6712  brk(0x3903000)                    = 0x3903000
6712  stat("/opt/collaboraoffice6.2/debugsource/sal/rtl/ustring.cxx", {st_mode=S_IFREG|0644, st_size=51458, ...}) = 0
6712  open("/opt/collaboraoffice6.2/debugsource/sal/rtl/ustring.cxx", O_RDONLY|O_CLOEXEC) = 8
6712  lstat("/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
6712  lstat("/opt/collaboraoffice6.2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
6712  lstat("/opt/collaboraoffice6.2/debugsource", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
6712  lstat("/opt/collaboraoffice6.2/debugsource/sal", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
6712  lstat("/opt/collaboraoffice6.2/debugsource/sal/rtl", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
6712  lstat("/opt/collaboraoffice6.2/debugsource/sal/rtl/ustring.cxx", {st_mode=S_IFREG|0644, st_size=51458, ...}) = 0
6712  close(8)                          = 0
6712  ptrace(PTRACE_PEEKTEXT, 6607, 0x7fc92787cb30, [0xf39740ab60ff685]) = 0
6712  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
6712  write(1, "Breakpoint 1 at 0x7fc92787cb30: file /opt/collaboraoffice6.2/debugsource/sal/rtl/ustring.cxx, line 241.\n", 104) = 104
6712  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
6712  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
6712  rt_sigaction(SIGINT, {0x5d4860, [INT], SA_RESTORER|SA_RESTART, 0x7fe2e44d74b0}, {0x5d4860, [INT], SA_RESTORER|SA_RESTART, 0x7fe2e510f390}, 8) = 0

...

6712  lstat("/opt/collaboraoffice6.2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
6712  lstat("/opt/collaboraoffice6.2/program", {st_mode=S_IFDIR|0755, st_size=40960, ...}) = 0
6712  open("/opt/collaboraoffice6.2/program/libuno_cppu.so.3.dbg", O_RDONLY|O_CLOEXEC) = 10


./yrjkcS2dBglG2z3E/lo/program/libnssckbi.so.dbg
./yrjkcS2dBglG2z3E/lo/program/libplc4.so.dbg
./yrjkcS2dBglG2z3E/lo/program/libsoftokn3.so.dbg
./yrjkcS2dBglG2z3E/lo/program/libplds4.so.dbg

#3  0x00007fc92cf2407c in SotStorage::GetFormatID (xStorage=...) at /opt/collaboraoffice6.2/debugsource/sot/source/sdstor/storage.cxx:775
775	        return SotExchange::GetFormat( aDataFlavor );

All of those paths and files are accessed not from the jail, but the parent - so un-necessary ...
Comment 1 Michael Meeks 2020-04-14 16:05:37 UTC
Pushed https://gerrit.libreoffice.org/c/online/+/92207 tdf#132100 - don't copy debugsource into jails.
Comment 2 Commit Notification 2020-04-14 16:58:54 UTC
Michael Meeks committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/online/commit/eab1832b06f5da6533ba5ddd1eff714245729a25

tdf#132100 - don't copy debugsource into jails.