Solved

debugging open office

Posted on 2002-03-29
1
174 Views
Last Modified: 2013-12-16
Trying to run the latest version of openoffice on my system (SuSE7.2), but it crashes when loading.  So, I figure I need to run a stack trace, but I'm getting nowhere in trying.  First, I tried to use gdb, but the 'soffice' executable is a shell script, and I can't see what it points to - there's a file called 'soffice.bin' but that doesn't help.  

Someone told me that if it's crashing it should create a core file, but I can't figure out how to go about accessing this.  Can someone point me in the right direction?
0
Comment
Question by:elsdon
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 250 total points
ID: 6905678
soffice is a script, usually.
If not called remote, it starts a program soffice.bin in the installation directory, the line in the script looks like:
   exec "$sd_inst/program/$sd_binary" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"

I'm not shure about the open office version, but think it's very similar.

To start soffice.bin either prepend the call by gdb, or start gdb right after it with the PID of the running soffice.bin.

If you want tu run gdb with the core file, just pass it as argument (full path) to gdb.
Keep in mind that the soffice script cd to another directory, you probably find the core there.
Also keep in mind that your shell may restrict the generation of core files, see the limit or ulimit (depending on your shell) command.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now