New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 129 users

Issue metadata

Status: Verified
Owner:
Closed: Jun 2013
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

libpeerconnection.log file created in CWD

Reported by sir.ra...@gmail.com, May 8 2013

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.3 Safari/537.36

Steps to reproduce the problem:
Run Chrome/Chromium

What is the expected behavior?
No files created in CWD

What went wrong?
Commit http://git.chromium.org/gitweb/?p=chromium.git;a=commitdiff;h=57102aee28d22b6abd8356ed6959c915e7d5301e introduces creation of "libpeerconnection.log" in current working directory.  This is a bad idea, this log (does it really need to be separate file?) should be created somewhere else, in chrome-owned cache/runtime directory.

Did this work before? Yes 

Chrome version: 28.0.1500.3  Channel: dev
OS Version: Fedora 18
 
Labels: Cr-Internals-WebRTC
Owner: tommi@chromium.org
Status: Assigned
Project Member

Comment 3 by bugdroid1@chromium.org, May 10 2013

------------------------------------------------------------------------
r199549 | tommi@chromium.org | 2013-05-10T21:36:21.997941Z

Changed paths:
   M http://src.chromium.org/viewvc/chrome/trunk/src/third_party/libjingle/overrides/initialize_module.cc?r1=199549&r2=199548&pathrev=199549
   M http://src.chromium.org/viewvc/chrome/trunk/src/third_party/libjingle/overrides/init_webrtc.cc?r1=199549&r2=199548&pathrev=199549
   M http://src.chromium.org/viewvc/chrome/trunk/src/third_party/libjingle/overrides/init_webrtc.h?r1=199549&r2=199548&pathrev=199549

Forward log calls to Chrome's log handler and not create a specific log file for libpeerconnection.

BUG= 239048 

Review URL: https://chromiumcodereview.appspot.com/14617016
------------------------------------------------------------------------

Comment 4 by tommi@chromium.org, May 13 2013

Status: Fixed
Project Member

Comment 5 by bugdroid1@chromium.org, May 24 2013

Labels: -Cr-Internals-WebRTC Cr-Blink-WebRTC
Cc: phajdan.jr@chromium.org
Labels: M-28 ReleaseBlock-Stable
Status: Started
Tommi, it looks like this did not make it into M28 before branch point - could you get it merged? We shouldn't really release stable with that bug.

Comment 7 by tommi@chromium.org, May 27 2013

Labels: Merge-Requested
Labels: -ReleaseBlock-Stable -Merge-Requested Merge-Rejected
This not a stable blocker (security, stability, critical regression).  If I accepted this, it would open up the door to a whole host of nice-to-have fixes, which directly increases the shipping risk... which I can't do.

Removing the blocker label, and rejecting the merge request.
Cc: tnakamura@chromium.org
Status: Fixed
Since the merge request was rejected, I'm returning this bug to a fixed state. 
@sir.ra and/or @phajdan.jr - can you verify the fix in any recent M29 build (e.g. current dev or canary channel)?
I don't see any complains from SELinux with 29.0.1521.3 dev
Status: Verified
Also lgtm in 29.0.1521.3

Thank you for the quick confirmation, @sir.ra!

Comment 12 by dhw@chromium.org, Jun 18 2013

Summary: libpeerconnection.log file created in CWD (was: Creates log files in CWD)
I too have noticed the same defect. I don't want files in my home dir that are not required to be there.

Here are some of my system stats:
dpkg -l | grep google-chrome
ii  google-chrome-stable                   28.0.1500.52-r207119                    The web browser from Google

uname -a
Linux nparry 3.2.0-38-generic #61-Ubuntu SMP Tue Feb 19 12:18:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Comment 14 by hrgys...@gmail.com, Jun 24 2013

Strange, libpeerconnection.log created in every CWD where I open html files using gnome-open command. I have 28.0.1500.52-r207119 version under Gentoo Linux.
@nickcbpa & @hrgys - unfortunately, we couldn't land the fix in time for inclusion into M28 (see comment #8). M29 does have the fix, and if you don't want to wait until it hits the stable channel, you can install M29 from the linux dev channel:
http://www.chromium.org/getting-involved/dev-channel
the same problem ... 
MY OS is fedora 18
$ google-chrome --version
Google Chrome 28.0.1500.52 

waiting for someone's great fix

create a log file in CWD is not a good idea

Comment 17 by Deleted ...@, Jun 25 2013

I've purged chrome from my system over this issue.

Don't put useless files in obtrusive locations, ever.
The fix will land only with Chrome 29. Either wait for 29 to come out or install version 29 now, which means you will have to install the development channel version.


No file gets created on SElinux systems, SElinux blocks it, so you just have to ignore the warning if you wish to wait for Chrome 29 to come out on the stable channel.
In the mean time you can edit /opt/google/chrome/google-chrome and add "cd /tmp", before the last line 'exec -a "$0" "$HERE/chrome"  "$@"'
Thanks for the work-around, Alan.
Thank you for your fix Alan !

Comment 22 by mx2...@gmail.com, Jul 6 2013

the same problem ... 
MY OS is fedora 18
$ google-chrome --version
Google Chrome 28.0.1500.71

Create a log file in CWD is not a good idea
I would suggest reconsidering comment #8 above.
chrome is constantly hitting SElinux, triggering AVC denial notifications. Constantly doing this is really 'nice-to-have' to remove?
Moreover, SElinux is about security and chrome is currently hitting its check, so I'm not sure that the current behavior is free of security risks.
I'm also getting this log. It's always empty though.

Running Ubuntu GNOME 13.04, and
$ google-chrome --version
Google Chrome 28.0.1500.70 [on stable channel]

Comment 24 Deleted

Editing the file manually works a treat. Please commit change to the next release. 

Comment 26 Deleted

Comment 27 by Deleted ...@, Jul 14 2013

I'm getting this file too but on Mac. I guess I have to wait Chrome 29 comes out? 
Screen Shot 2013-07-14 at 2.48.43 AM.png
36.6 KB View Download

Comment 28 by Deleted ...@, Jul 14 2013

Thanks for the work-around(2), Alan.

Comment 29 by Deleted ...@, Jul 15 2013

just noticed this in my applications folder in osx. checking solution 8, but was wondering what resolve was.

Comment 30 by Deleted ...@, Jul 17 2013

This may not be the best solution to this issue for mac users, but it is one that will work until Google fixes it, hiding the file from site. It does not remove or move the file to where it belongs, but it keeps the ugly file from being seen.
Open Terminal and run the following command: chflags hidden /libpeerconnection.log

Hope that helps you.
FYI - the beta channel now has this fix.

Comment 32 by timp...@gmail.com, Jul 17 2013

@19: This [Linux] workaround seems to cause the /tmp folder to appear in the GTK File Chooser dialog (on the left panel, above the default home folder). Not as big annoyance as the actual file in the home directory, though.

Comment 33 by Deleted ...@, Jul 19 2013

I have the same problem.I hope it can be solved soon.
My OS is Ubuntu 12.04 LTS
$ google-chrome --version
Google Chrome 28.0.1500.71
Maybe,'chflags hidden /libpeerconnection.log' is a good way.
the same problem as you guys.

$ google-chrome --version
Google Chrome 28.0.1500.71 

I wanna to use chromium
Can't believe this problem ended up in a stable release...... I thought my machine had gotten compromised...

Comment 36 by Deleted ...@, Jul 27 2013

Mac user here. Used the Terminal command and it hid the file. Thanks for the solution.

btw, is there no <code> tag available on this forum? That would make it easier to understand specifically what needs to be entered into Terminal.

Comment 37 by pkern@google.com, Aug 4 2013

The workaround specified here actually introduces a security vulnerability in multi-user systems if the file is not opened securely. (Think of the file existing as a symlink in /tmp.)

Comment 38 Deleted

And the workaround does not work anymore for me (28.0.1500.95).
So the only thing that can be done at the moment is hide it? I may just wait until 29 then.

I just wanted to advise I have the same on Mac OS 10.6.8.

Comment 41 Deleted

Comment 42 Deleted

Comment 43 by Deleted ...@, Aug 18 2013

Hiding it is not the answer. What does it do ? 

 Issue 273094  has been merged into this issue.

Sign in to add a comment