Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412051 - app-text/acroread-9.5.5 - nsplugin writes C:\nppdf32Log\debuglog.txt in home directory (which crashes kde-base/dolphin)
Summary: app-text/acroread-9.5.5 - nsplugin writes C:\nppdf32Log\debuglog.txt in home ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 412195 547924 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-15 04:41 UTC by Jouni Rinne
Modified: 2015-05-09 12:32 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info,5.76 KB, text/plain)
2012-04-15 04:41 UTC, Jouni Rinne
Details
emerge-info.txt.gz (emerge-info.txt.gz,8.25 KB, application/x-gzip)
2013-10-05 09:31 UTC, Fabio Rossi
Details
nppdf.bsdiff (nppdf.bsdiff,196 bytes, application/octet-stream)
2014-08-31 08:37 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jouni Rinne 2012-04-15 04:41:58 UTC
Created attachment 308993 [details]
emerge --info

This is quite a complicated bug, so please bear with me...

Since the update to acroread-9.5.1 I have noticed that in some situations acroread's nsplugin part (I suppose) writes to the user's home directory a file, which causes KDE's dolphin file manager (and konqueror, too) to crash.

The name of the mentioned file is 'C:\nppdf32Log\debuglog.txt' (Yes, with backslashes and all, that's probably the reason which causes dolphin to crash), with the content:

NPP_GetValue is called
NPP_GetValue is called
NPP_GetValue is called
NPP_GetValue is called
NPP_Initialize : called
NPP_Initialize : called
NPP_Initialize : called

So far, I have found two ways to reproduce the generation of the file:

1) start dolphin (4.8.2)
2) either
a) start liferea (1.8.4) and browse to a feed, which has embedded videos, flash or such (http://icanhascheezburger.com/ RSS feed is good for testing), or
b) start opera (11.62.1347-r1)
3) immediately, kcrashhandler announces that dolphin has segfaulted
4) the mentioned file has appeared in the home directory

I first noticed this while using Liferea. I have no other applications using webkit-gtk, so I cannot tell how they would behave. However, if I remove the offending file, liferea and dolphin will continue to work for the rest of the day, the file is generated only in the first time.

On later testing, I found out that Opera also triggers this bug every time it is started. So far I've been unable to reproduce this with Firefox, Chromium or Konqueror browsers.

I think Adobe should be immediately notified about this. Acroread should NEVER be allowed to write a file with such a filename on Unix systems.
Comment 1 Jouni Rinne 2012-04-15 04:54:24 UTC
Oh, and acroread is installed with USE="cups minimal nsplugin -ldap"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-16 11:40:02 UTC
*** Bug 412195 has been marked as a duplicate of this bug. ***
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2012-04-16 11:53:53 UTC
Eurgh.

Actually two bugs:
* acroread should not write any file
* konqueror should not crash on a *valid* filename
Comment 4 Jouni Rinne 2012-04-17 14:17:00 UTC
(In reply to comment #3)

> * konqueror should not crash on a *valid* filename

That's right, because nautilus (which I rarely use) handles the file just fine. I have already made a bug report about this in KDE bugzilla.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2012-04-17 22:11:42 UTC
(In reply to comment #4)
> (In reply to comment #3)
> 
> > * konqueror should not crash on a *valid* filename
> 
> That's right, because nautilus (which I rarely use) handles the file just
> fine. I have already made a bug report about this in KDE bugzilla.

Link please? :)
Comment 6 Jouni Rinne 2012-04-18 04:20:25 UTC
Oh, sorry

https://bugs.kde.org/show_bug.cgi?id=298199
Comment 7 Jouni Rinne 2012-04-20 04:28:39 UTC
Well, the second part of the bug, dolphin crash, was solved: it was caused by kde-base/dolphin-box-plugin from 'calculate'-overlay (provides Dropbox-KDE integration). Removal of it allowed dolphin to resume function without segfaults.

But the first part of the bug still remains...
Comment 8 Viktor Yu. Kovalskii 2012-05-08 13:53:00 UTC
Maybe this recipe can help:

https://bugs.launchpad.net/ubuntu/+source/acroread/+bug/986841/comments/3
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2012-06-03 20:31:34 UTC
(In reply to comment #8)
> Maybe this recipe can help:
> 
> https://bugs.launchpad.net/ubuntu/+source/acroread/+bug/986841/comments/3

Yeah. Used this trick to "fix" the sillyness in 9.5.1-r1. Please test.
Comment 10 Erik Quaeghebeur 2013-10-03 08:57:22 UTC
(In reply to Andreas K. Hüttel from comment #9)
> > https://bugs.launchpad.net/ubuntu/+source/acroread/+bug/986841/comments/3
> 
> Yeah. Used this trick to "fix" the sillyness in 9.5.1-r1. Please test.

I'm seeing this 'C:\nppdf32Log\debuglog.txt'-file created with 9.5.5; has the fix been added to that version?
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2013-10-03 13:07:34 UTC
(In reply to Erik Quaeghebeur from comment #10)
> (In reply to Andreas K. Hüttel from comment #9)
> > > https://bugs.launchpad.net/ubuntu/+source/acroread/+bug/986841/comments/3
> > 
> > Yeah. Used this trick to "fix" the sillyness in 9.5.1-r1. Please test.
> 
> I'm seeing this 'C:\nppdf32Log\debuglog.txt'-file created with 9.5.5; has
> the fix been added to that version?

Yes the fix is there... please remove the file to make 100% sure it hasn't been created with an older version, and try to recreate the problem... If you get the file again, we'll reopen the bug
Comment 12 Fabio Rossi 2013-10-05 09:30:46 UTC
(In reply to Andreas K. Hüttel from comment #11)

> Yes the fix is there... please remove the file to make 100% sure it hasn't
> been created with an older version, and try to recreate the problem... If
> you get the file again, we'll reopen the bug

I have still the same problem, to be sure I have just reemerged acroread. Looking at the hex dump of nppdf.so I can see the string C:\nppdf32Log\debuglog.txt.
Comment 13 Fabio Rossi 2013-10-05 09:31:38 UTC
Created attachment 360132 [details]
emerge-info.txt.gz

emerge configuration on my system
Comment 14 Fabio Rossi 2013-10-05 13:43:15 UTC
If I substitute "C:\nppdf32Log\debuglog.txt" with "/dev/null" (and trailing zeros) in the hex file, I get the following base64-coded patch:

QlNESUZGNDBGAAAAAAAAADkAAAAAAAAAYL0CAAAAAABCWmg5MUFZJlNZd+YjIAAAFehR+jQCIAAQ
QAAEAAAIQAAgACGSGjIzUKYAAemnm9OSR1jFrI8oWLCEr4u5IpwoSDvzEZAAQlpoOTFBWSZTWe+t
fxQAAWBiCMAACAAABAIAAAggACClIwZoNiJ7FKm/oINyBThdyRThQkO+tfxQQlpoOTFBWSZTWUaj
bYYAAALBAEAAAIAgACEAgpMXckU4UJBGo22G
Comment 15 Fabio Rossi 2013-10-05 18:30:33 UTC
I'm sorry, in #14 I made a bsdiff using a wrong nppdf.so... the right patch is the following:

QlNESUZGNDBGAAAAAAAAAC8AAAAAAAAAoK8CAAAAAABCWmg5MUFZJlNZQBbHOQAAFOxgeDgkIAAQ
ABRAIAEAIAAhqekMmjR6hTAATRkg7TkAW4RBG9TSowH75fF3JFOFCQQBbHOQQlpoOTFBWSZTWRZR
rZgAAVlEAMAAAgAACCAAMMwFKaZFJsUUni7kinChICyjWzBCWmg5MUFZJlNZMxj0RgAAABGAAACG
BQMAIAAiB6m1CGAHQRfF3JFOFCQMxj0RgA==
Comment 16 Pacho Ramos gentoo-dev 2014-08-31 08:37:26 UTC
Archlinux has a patch for this that maybe could work :/
https://aur.archlinux.org/packages/acroread/
Comment 17 Pacho Ramos gentoo-dev 2014-08-31 08:37:51 UTC
Created attachment 383994 [details]
nppdf.bsdiff
Comment 18 Fabio Rossi 2015-01-04 14:08:21 UTC
acroread has been recently updated to 9.5.5-r2 but this bug has not been fixed yet. Any plan?
Comment 19 Mike Gilbert gentoo-dev 2015-04-28 14:19:32 UTC
*** Bug 547924 has been marked as a duplicate of this bug. ***
Comment 20 Pacho Ramos gentoo-dev 2015-05-07 18:01:11 UTC
I am not sure about what I need to do to test if the file is still created... but can you check if replacing all the bdiff magic by this sed statement from Arch does the trick?
sed -i 's#C:\\nppdf32Log\\debuglog\.txt#/dev/null\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00#g' \
Adobe/Reader9/Browser/intellinux/nppdf.so
Comment 21 Martin Mokrejš 2015-05-08 18:26:11 UTC
I just applied the sed commands, will see when they pop up back again. BTW, I applied the sed over two files:

/opt/Adobe/Reader9/Browser/intellinux/nppdf.so
/usr/lib32/nsbrowser/plugins/nppdf.so
Comment 22 Fabio Rossi 2015-05-08 21:55:37 UTC
(In reply to Martin Mokrejš from comment #21)
> I just applied the sed commands, will see when they pop up back again. BTW,
> I applied the sed over two files:
> 
> /opt/Adobe/Reader9/Browser/intellinux/nppdf.so
> /usr/lib32/nsbrowser/plugins/nppdf.so

the second one is a sym link to the first
Comment 23 Fabio Rossi 2015-05-08 22:03:30 UTC
(In reply to Pacho Ramos from comment #20)
> I am not sure about what I need to do to test if the file is still
> created... but can you check if replacing all the bdiff magic by this sed
> statement from Arch does the trick?
> sed -i
> 's#C:\\nppdf32Log\\debuglog\.txt#/dev/
> null\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00#g' \
> Adobe/Reader9/Browser/intellinux/nppdf.so

I confirm that the sed command works, same result as bsdiff solution in #15
Comment 24 Pacho Ramos gentoo-dev 2015-05-09 12:32:36 UTC
+*acroread-9.5.5-r3 (09 May 2015)
+
+  09 May 2015; Pacho Ramos <pacho@gentoo.org> +acroread-9.5.5-r3.ebuild,
+  -acroread-9.5.5.ebuild:
+  Don't create bogus file (#412051), fix .desktop file (#476096 and #543592)
+