Bug 54294 - some command line options cause segmentation fault
Summary: some command line options cause segmentation fault
Status: RESOLVED DUPLICATE of bug 54385
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.6.1.2 release
Hardware: All Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-31 01:51 UTC by Stephen Dowdy
Modified: 2012-12-01 12:07 UTC (History)
0 users

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 Stephen Dowdy 2012-08-31 01:51:37 UTC
* LO Applications are work fine (minimal testing)
 * file arguments seem to work fine
 * cmdline options (--{option})  cause SEGV
 * Debian Squeeze AND Lenny
 * 32-bit AND 64-bit

$ /usr/local/LibreOffice/program/soffice --help
Segmentation fault
$ /usr/local/LibreOffice/program/soffice --version    
Segmentation fault

sdowdy@zia$ /usr/local/LibreOffice/program/soffice -?
sdowdy@zia$   <<< expected help here, but it just exits >>>

/usr/local/LibreOffice/program/soffice --calc | --writer | ...
WORK AS EXPECTED


$ /usr/local/LibreOffice/program/soffice -- FOOOOO.odt
Unknown option --
Run 'soffice --help' to see a full list of available command line options.
(( seems that soffice.bin should support standard '--' end-of-options flag, but
that's a feature request...))

FYI: my install is mounted on shared NFS server
FYI: I take the DEB distribution, run the .debs through 'alien -t' extract onto my shared NFS /usr/local, and link the basis-link stuff appropriately and put .desktop files in /usr/local/share/application for distributed KDE use, but i doubt that's coming into play here (but just in case...)

strace snippet around SEGV:

30718 open("/var/autofs/mnt/linux-amd64/common/local/LibreOffice-3.6.1/program/fundamentalrc", O_RDONLY|O_EXCL) = 3
30718 fstat(3, {st_mode=S_IFREG|0644, st_size=2313, ...}) = 0
30718 pread(3, "[Bootstrap]\nBRAND_BASE_DIR=${ORIGIN}/..\nCONFIGURATION_LAYERS=xcsxcu:${BRAND_BASE_DIR}/share/registry module:${BRAND_BASE_DIR}/share/registry/modules res:${BRAND_BASE_DIR}/share/registry bundledext:${${BRAND_BASE_DIR}/program/unorc:BUNDLED_EXTENSIONS_USER}/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/configmgr.ini sharedext:${${BRAND_BASE_DIR}/program/unorc:SHARED_EXTENSIONS_USER}/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/configmgr.ini xcsxcu:${$"..., 4096, 0) = 2313
30718 close(3)                          = 0
30718 getcwd("/home/sdowdy", 4096)      = 13
30718 mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fedd5bd5000
30718 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
30719 +++ killed by SIGSEGV +++
30711 <... wait4 resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0, NULL) = 30718
30711 --- SIGCHLD (Child exited) @ 0 (0) ---
30711 write(2, "Segmentation fault\n", 19) = 19
30711 exit_group(0)                     = ?

thanks,
--stephen
Comment 1 BitPit 2012-09-04 18:40:38 UTC
I can confirm this bug.

I run Linux version 3.4.9-gentoo (root@saxophone) (gcc version 4.5.4 (Gentoo 4.5.4 p1.0, pie-0.4.7) ) #1 SMP PREEMPT Sat Aug 25 07:03:11 CDT 2012

I emerged this version of LibreOffice a few hours ago.  It runs from a directly connected hard drive.

When I try:

$ /usr/lib64/libreoffice/program/soffice --version
/usr/lib64/libreoffice/program/soffice: line 166: 22333 Segmentation fault      "$sd_prog/soffice.bin" --version

Running as root does not work either.
Comment 2 Frank Richter 2012-09-21 09:19:20 UTC
I can confirm this bug. Debian squeeze i386.
The bug still exists in 3.6.2.1 and nightly 2012-09-20 (3.6.3.0-1).

tail of strace in 3.6.3.0-1 looks like:
[pid   418] setrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
[pid   418] futex(0xb744106c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
[pid   418] access("/opt/libreoffice3.6/program/sofficerc", F_OK) = 0
[pid   418] open("/opt/libreoffice3.6/program/sofficerc", O_RDONLY|O_EXCL|O_LARGEFILE) = 3
[pid   418] fstat64(3, {st_mode=S_IFREG|0644, st_size=189, ...}) = 0
[pid   418] mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb3509000
[pid   418] pread64(3, "[Bootstrap]\nHideEula=1\nLogo=1\nNa"..., 4096, 0) = 189
[pid   418] close(3)                    = 0
[pid   418] access("/opt/libreoffice3.6/program/fundamentalrc", F_OK) = 0
[pid   418] open("/opt/libreoffice3.6/program/fundamentalrc", O_RDONLY|O_EXCL|O_LARGEFILE) = 3
[pid   418] fstat64(3, {st_mode=S_IFREG|0644, st_size=2313, ...}) = 0
[pid   418] pread64(3, "[Bootstrap]\nBRAND_BASE_DIR=${ORI"..., 4096, 0) = 2313
[pid   418] mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb34f9000
[pid   418] close(3)                    = 0
[pid   418] getcwd("/home/frichter", 4096) = 15
[pid   418] mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb34e9000
[pid   418] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid   419] +++ killed by SIGSEGV +++
Comment 3 Mirosław Zalewski 2012-12-01 12:07:53 UTC
I am marking this bug as duplicate of #54385. 
If problem still occurs, please reopen this bug and post detailed information about your settings.

*** This bug has been marked as a duplicate of bug 54385 ***