Bug 49720 - Libreoffice splash screen hangs
Summary: Libreoffice splash screen hangs
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected)
3.5.2 RC1
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
Whiteboard: target:3.6.0
Depends on:
Reported: 2012-05-10 01:57 UTC by abhijit
Modified: 2013-11-15 23:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

strace log (461.85 KB, application/gzip)
2012-05-10 02:10 UTC, abhijit
gdb log (10.09 KB, text/plain)
2012-05-10 02:10 UTC, abhijit

Note You need to log in before you can comment on or make changes to this bug.
Description abhijit 2012-05-10 01:57:47 UTC
Build ID: 350m1(Build:202)
On Ubuntu 12.04 Precise Pangolin

Machine: HP Mini 210 netbook 

The splash screen gets stuck up (hangs) at the end of the "progress bar". The file does not open. 

On killing the splash screen program (oosplash) manually, the file opens. 

>ooffice Marks-OS-2012-Ty-Comp-endsem.xls & 
# results in hang
>ps -eF|grep splash
>kill -9 10050 
# now the file opens
Comment 1 abhijit 2012-05-10 02:10:02 UTC
Created attachment 61329 [details]
strace log
Comment 2 abhijit 2012-05-10 02:10:37 UTC
Created attachment 61330 [details]
gdb log
Comment 3 Stephan Bergmann 2012-05-10 02:34:23 UTC
Thread 1 waits in popen("sh -c paperconf 2>/dev/null", "r") (PaperInfo::getSystemDefaultPaper in i18nutil/source/utility/paper.cxx).  The strace log shows that the "sh -c paperconf" process (pid 6475) spawns a vi instance (pid 6480: execve("/usr/bin/vi", ["vi", "*.c"], ...)) on which it hangs waiting.

This is because you apparently have a /home/abhijit/bin/sh in PATH that contains

cd sthw
mkdir -p /tmp/lmn/$1
cp $1* /tmp/lmn/$1/
cd /tmp/lmn/$1
tar zxvf $1*gz
vi *.c
cd -
cd ..

Please move that away as a preliminary fix.

(A better fix would be to use an absolute path for "sh" in popen, or change PaperInfo::getSystemDefaultPaper to not use popen at all.)
Comment 4 abhijit 2012-05-10 03:16:24 UTC
Just moved the ~/bin/sh file to ~/bin/nosh
Will consider changing the path also.

The problem is solved.
You may close this bug.
Comment 5 Not Assigned 2012-05-10 04:51:41 UTC
Stephan Bergmann committed a patch related to this issue.
It has been pushed to "master":


Fix fdo#49720: Dropped unnecessary "sh -c" from popen call