Solved

debugging open office

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 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

19 Experts available now in Live!

Get 1:1 Help Now