Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431100 - www-client/google-chrome leaves stale processes on exit, causing KDE to freeze sometimes
Summary: www-client/google-chrome leaves stale processes on exit, causing KDE to freez...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-12 16:04 UTC by Nikos Chantziaras
Modified: 2013-11-21 01:01 UTC (History)
3 users (show)

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


Attachments
emerge --info google-chrome (emerge--info,6.05 KB, text/plain)
2012-08-12 16:05 UTC, Nikos Chantziaras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikos Chantziaras 2012-08-12 16:04:43 UTC
Google Chrome (all versions in the tree) leaves stale processes on exit. Some of these processes can be killed with SIGTERM, but some can only be killed with SIGKILL ("kill -9").

Worse, the KDE desktop sometimes freezes when exiting Chrome and there are stale processes. Only the desktop, not application windows. Killing all processes makes the desktop respond again.
Comment 1 Nikos Chantziaras 2012-08-12 16:05:08 UTC
Created attachment 321124 [details]
emerge --info google-chrome
Comment 2 Nikos Chantziaras 2012-08-12 16:05:59 UTC
$ emerge -pv google-chrome

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] www-client/google-chrome-21.0.1180.77_beta150576  USE="-plugins" LINGUAS="-am -ar -bg -bn -ca -cs -da -de -el -en_GB -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW" 0 kB
Comment 3 Nikos Chantziaras 2012-08-12 16:07:33 UTC
Stale processes after exiting Chrome:

$ ps aux | grep chrome
realnc    5099  0.0  0.0 301392 15100 ?        S    19:00   0:00 /opt/google/chrome/chrome       
realnc    5100  0.0  0.0   6204   600 ?        S    19:00   0:00 /opt/google/chrome/chrome-sandbox /opt/google/chrome/chrome --type=zygote
realnc    5101  0.0  0.2 340060 40004 ?        S    19:00   0:00 /opt/google/chrome/chrome --type=zygote
realnc    5105  0.0  0.1 208236 24172 ?        S    19:00   0:00 /opt/google/chrome/nacl_helper_bootstrap /opt/google/chrome/nacl_helper --at-zero --r_debug=0x0000000000213000
realnc    5106  0.0  0.0 364648 14540 ?        S    19:00   0:00 /opt/google/chrome/chrome --type=zygote
realnc    5145  0.0  0.2 695964 32880 ?        S    19:00   0:00 /opt/google/chrome/chrome
Comment 4 Mike Gilbert gentoo-dev 2012-08-13 14:33:27 UTC
Yeah, I've seen that myself.

Do you use nvidia-drivers? I think this is bug 413637.
Comment 5 Nikos Chantziaras 2012-08-13 14:54:08 UTC
Yes, I'm on nvidia-drivers.

Using chromium is not an option, unless it supports Chrome's Flash plugin (I switched from Firefox to Chrome because of Flash; www-plugins/adobe-flash doesn't work reliably anymore, while Google's Flash version works without issues.)
Comment 6 Mike Gilbert gentoo-dev 2012-08-13 15:04:12 UTC
As Paweł indicates, please report the issue upstream if you want to see it fixed in google-chrome.

You can use google-chrome's "pepper" flash plugin with chromium. Just put the following in /etc/chromium/default:

CHROMIUM_FLAGS="--ppapi-flash-path=/opt/google/chrome/PepperFlash/libpepflashplayer.so"
Comment 7 Nikos Chantziaras 2012-08-13 15:11:05 UTC
Thank you very much! I will try Chromium instead.

Yes, I reported the issue, both in the feedback dialog in Chrome itself, as well as on Google's bug tracker.  But the issue there is two years old and Google doesn't seem to give a fsck :-P
Comment 8 Nikos Chantziaras 2012-08-13 16:47:26 UTC
Chromium works fine. Flash too, though I guess it would be better if there was a USE flag for this that installs the latest Flash from Chrome without the user needing to install Chrome too.  It now just sits there.

Same goes for the PDF plugin.  I got it to work by symlinking "/opt/google/chrome/libpdf.so" to  "/usr/lib64/chromium-browser/".  I think these should be offered either by USE flags, or by default when the "bindist" USE flag is not set.
Comment 9 Mike Gilbert gentoo-dev 2012-08-13 17:04:25 UTC
That's not going to happen.

The google-chrome distfiles disappear without warning, so we really can't depend on them in a stable package like chromium.

I might consider creating a package that would only install the plugins from google-chrome, if only to avoid pulling in all of google-chrome's RDEPENDS.
Comment 10 Nikos Chantziaras 2012-08-13 17:20:09 UTC
Yeah, that's what I meant actually. Download the Chrome *.deb that is the same version as Chromium and extract only the Flash and PDF plugins and put then in /usr/lib/chromium-browser(/PepperFlash).
Comment 11 David Klempner 2013-11-08 22:11:40 UTC
The release notes for nvidia-drivers-331.20 claim to have fixed this problem:

"Fixed a bug that could cause a deadlock when forking from OpenGL programs which use some malloc implementations, such as TCMalloc."
Comment 12 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-11-21 01:00:49 UTC
(In reply to David Klempner from comment #11)
> The release notes for nvidia-drivers-331.20 claim to have fixed this problem:
> 
> "Fixed a bug that could cause a deadlock when forking from OpenGL programs
> which use some malloc implementations, such as TCMalloc."

Thanks, please see my comment in https://bugs.gentoo.org/show_bug.cgi?id=413637#c31