Mutiple instances of Open Office on Linux - crashes.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Mutiple instances of Open Office on Linux - crashes.

Jasper2000
I have installed two instances of Open Office 3.0.0 on Linux machine. The
instances get killed after sometime. (This was not happening when i was running
a single instance of Open Office earlier).

Installation Steps for the second instance were as metioned in SETUP_GUIDE.pdf
(page 46/47), the steps are:

Linux
1. Open a new shell or terminal.
2. Change to the directory where all the rpm packages are. (e.g..
/tmp/openoffice/rpm)
3. Choose the location where to install the extra version of Openoffice.org.
For example
into the directory /home/user1/office
4. Install the new version in a manner similar to the following:
5. rpm -ivh --install --dbpath /home/user1/office/.rpm --nodeps --
prefix /home/user1/office/ openoffice*.rpm
Note: When you install the office in this way you have no system integration
(no start menu entries and no
file association)
6. After installation has completed, change to the new directory and do the
following:
Open the file bootstrap.ini in a editor such as vi and change the line
UserInstallation=$SYSUSERCONFIG/.openoffice.org2
to
UserInstallation=$SYSUSERCONFIG/.openoffice.org2_dutch
or any other directory you want.
7. Once installation is complete, Start this new installation of OpenOffice.org
from the directory where it was installed. e.g.
/home/user1/office/program/soffice

One point to note above is that there is no bootstrap.ini, instead there is a
bootstraprpc file. There too is is not clear what should be mentioned in
UserInstallation=<value> here; nevertheless i mentioned something.

I am able to start both instances together without any problems, even able to
use them (by connecting to them from my java program to convert docs).

But after sometime (maybe 30 mins, but it varies), one or both instances get
killed.

I did a strace on the soffice(second instance) by using this command:
strace -t -o strace.out /opt/openoffice.org3/program/soffice -headless -
accept="socket,host=n.n.n.n,port=8100;urp;" -nofirststartwizard &

A part of this strace is pasted below:

1. 05:57:53 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
2. 05:57:53 rt_sigaction(SIGINT, {0x8075dc0, [], SA_RESTORER, 0x420277b8},
{SIG_DFL}, 8) = 0
3. 05:57:53 wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGKILL], 0, NULL) =
23905
4. 06:19:00 open("/usr/share/locale/locale.alias", O_RDONLY) = 3
5. 06:19:00 fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0
6. 06:19:00 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
1, 0) = 0x4001c000

If you see line 3. above, it appears that there was a SIGKILL for process
23905, which was the soffice process.

Infact both the soffice instances (one was started on port 8100, and other on
9100), got killed together.

The linux version is follows:
#uname -r
2.4.20-8smp
Reply | Threaded
Open this post in threaded view
|

Re: Mutiple instances of Open Office on Linux - crashes.

Jasper2000
Complete strace output of the open office soffice instance is attached.


Jasper2000 wrote
I have installed two instances of Open Office 3.0.0 on Linux machine. The
instances get killed after sometime. (This was not happening when i was running
a single instance of Open Office earlier).
.............
.......
....
strace.txt