Solved

debugging open office

Posted on 2002-03-29
1
176 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

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 …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

803 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