LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Adobe reader and Kompozer crashing on a multilib system running KDE (http://www.linuxquestions.org/questions/slackware-14/adobe-reader-and-kompozer-crashing-on-a-multilib-system-running-kde-4175472793/)

solarfields 08-09-2013 11:57 AM

Adobe reader and Kompozer crashing on a multilib system running KDE
 
Hi to all.

I am running Slackware64 14.0 multilib with KDE. Two of my 32bit applications are Adobe reader and Kompozer. However, they both crash when I go to the Open dialog. The dialog opens, stays for several seconds and the program exits. The strange thing is -- I do not see this behaviour in XFCE.

Any ideas?

ShadowCat8 08-09-2013 12:20 PM

Greetings,

As a thought, let's find out what exactly is causing the crash. ;)
  1. Open a terminal.
  2. From the command line, launch komposer
    Code:

    ~ $ komposer
  3. Let it run until it crashes.
  4. Copy the output from the terminal into a text file.
  5. Save the text file.
  6. Repeat steps 2-5 for adobe-reader.
  7. Post the outputs up here, each in their own code block.

That should give us a better idea of what is actually happening.

HTH. Let us know.

solarfields 08-09-2013 12:41 PM

Hi. True, should've posted that...

Code:

~$ kompozer
/usr/lib/kompozer-0.8b3/run-mozilla.sh: line 131:  2171 Segmentation fault      "$prog" ${1+"$@"}

Code:

~$ acroread
dirname: missing operand
Try 'dirname --help' for more information.


ShadowCat8 08-09-2013 04:31 PM

Okay...

Well, I would have to be able to look at the referenced run-mozilla.sh script to see what it is they are trying to do in there, but for the acroread, it seems they are expecting an argument of the path to the file you want to read.
Either try running:
Code:

~ $ acroread <path to the PDF doc you want to read>
Or, if you don't have a local PDF in your home directory, you should be able to find one on your system using:
Code:

~ $ find /usr/share/doc/ -iname "*.pdf" -print
See if that gets acroread running, or what new error output it gives.
(As a note, my experience is that Adobe isn't really careful with security, ESPECIALLY in Linux. As an alternative, you *could* just try qpdfview. I know that program comes up without having to start with a file... Just my 2.)

Let me see if I can figure out the kompozer situation...

EDIT: Well, I can't find it as a separate package in my portage tree. Is this an extension for Konquerer? (Konquerer being KDE's default browser that is built on the Mozilla codebase.)

HTH. Let us know.

solarfields 08-09-2013 06:20 PM

Hi!
Same thing...

For acroread:
Code:

~/Bibliography/apoptosis$ acroread Tait_2010.pdf
dirname: missing operand
Try 'dirname --help' for more information

I occasionally need the Adobe Acrobat reader to fill PDF forms. Otherwise I use Evince in XFCE or Ocular in KDE, which is great.

Kompozer is not part of KDE, don't be fooled by the name. :) It is "a complete web authoring system that combines web file management and easy-to-use WYSIWYG web page editing". I installed it from SBo. The script just repackages the i686 binary.

ShadowCat8 08-15-2013 07:57 PM

Well,

I installed acroread on one of my tech support guy's systems (a Gentoo build), and it too came up with the same error:
Code:

~ $ acroread
dirname: missing operand
Try 'dirname --help' for more information.

BUT, it *did* launch the program after that. So, at this point, I think we may need to get "down-n-dirty" on this one and use strace to see what is killing it on your system. If you don't have strace installed on your system, go ahead and install it and then run:
Code:

~ $ strace -o ~/acroread_strace_run.log acroread
When it completes and returns the prompt to you, you can start looking at the bottom of the acroread_strace_run.log and work your way up to find the REAL error that is killing acroread on your system.
And to give you an idea, here is the tail of the strace log from having brought acroread up and closed it out:
Code:

munmap(0xfffffffff4764000, 188416)      = 0
munmap(0xfffffffff46f0000, 475136)      = 0
stat64("/home/user/.adobe/Acrobat/9.0", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/home/user/.adobe/Acrobat/9.0/TMDocs.sav", F_OK) = -1 ENOENT (No such file or directory)
stat64("/home/user/.adobe/Acrobat/9.0", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/home/user/.adobe/Acrobat/9.0/TMDocs.sav", F_OK) = -1 ENOENT (No such file or directory)
write(4, "\1\0\0\0\0\0\0\0", 8)        = 8
munmap(0xfffffffff4792000, 8220)        = 0
exit_group(0)                          = ?
+++ exited with 0 +++

=============================================

Now as far as komposer, I took a look at the page you linked and, as you pointed out, the script repackages the i686 binary... Which, as the page points out, is built on GCC 4.2. It sticks in my mind that there may be an issue there. Do you know what GCC you have installed? Try doing this:
Code:

~ $ gcc-config -l
and post the results up here. I'm not certain that it is an issue, but I get the impression it might be.

Let us know.

solarfields 08-16-2013 01:59 AM

Hi,

i will do this in the evening when i get to my KDE computer. The funny thing is, Kompozer and Adobe reader work when I run them in XFCE. They crash when I try to start them in KDE...

Version of GCC is 4.7.1

solarfields 08-18-2013 02:59 PM

I run strace as you suggested, here are the end lines of the output:

Code:

$ tail acroread_strace_run.log
gettimeofday({1376854868, 812946}, NULL) = 0
gettimeofday({1376854868, 813111}, NULL) = 0
recv(3, "\6\0\370$A\244\2\0\257\0\0\0\206\4`\4\0\0\0\0\310\1T\1\316\0j\0\0\0\1\0"..., 4096, 0) = 416
recv(3, 0xb5731a0, 4096, 0)            = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {173, 418036955}) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=12, events=0}], 3, 0) = 1 ([{fd=4, revents=POLLIN}])
read(4, "\1\0\0\0\0\0\0\0", 16)        = 8
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigaction(SIGABRT, {SIG_DFL, [ABRT], SA_RESTART}, {0x850aafa, [], 0}, 8) = 0
exit_group(1)

Code:

$ tail kompozer_strace_run.log
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
stat("core", 0x7ffff66e12c0)            = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "\nexit $exitcode\n", 8176)  = 16
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(139)

Shall I paste more, or is there something specific that I should look for in the log files? I can attach them, but the one for acroread is more than 6 MB big...


All times are GMT -5. The time now is 06:28 AM.