Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Issue 8877001: Add more CHECK in GPU and NPAPI process on invalid file descriptors (Closed)

Created:
9 years ago by xhwang
Modified:
9 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, dpranke-watch+content_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add more CHECK in GPU and NPAPI process on invalid file descriptors Goes with r112647, where we added CHECKs for invalid file descriptors. Regarding the GPU process, we already have a crash in GpuChannelManager::OnEstablishChannel() function due to invalid renderer fd. But it's not clear whether this is due to channel reuse or failure in creating channel in server mode. Talked to apatrick@ and the reuse one should never happen in normal case. Adding check on that case so we can hopefully rule out that case. Regarding the NPAPI process, we already have a lot of crashes due to invalid file descriptors in the rederer. In NPAPI process, add a CHECK right after the channel is created in server mode to see where this invalid fd originates from. BUG=none TEST=passed unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113767

Patch Set 1 #

Patch Set 2 : Also add check in NPChannelBase::Init in ServerMode. #

Total comments: 4

Patch Set 3 : NOTREACHED changed to CHECK(false). Thanks piman! #

Total comments: 6

Patch Set 4 : Add TODO for clean up later as this change is temporary. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M content/common/gpu/gpu_channel.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M content/common/np_channel_base.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
xhwang
Hello jam and apatrick: Please do ONWERS review. See description for details. jam: content/common/np_channel_base.cc apatrick: ...
9 years ago (2011-12-08 05:14:32 UTC) #1
piman
You may want to talk to kerz@ in terms of whether or not to get ...
9 years ago (2011-12-08 07:09:11 UTC) #2
ddorwin
http://codereview.chromium.org/8877001/diff/8001/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): http://codereview.chromium.org/8877001/diff/8001/content/common/gpu/gpu_channel.cc#newcode421 content/common/gpu/gpu_channel.cc:421: CHECK(false); Replace the if statement with a CHECK? The ...
9 years ago (2011-12-08 19:17:27 UTC) #3
xhwang
Uploaded new patchs according to piman and ddorwin's comments. http://codereview.chromium.org/8877001/diff/2001/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): http://codereview.chromium.org/8877001/diff/2001/content/common/gpu/gpu_channel.cc#newcode421 content/common/gpu/gpu_channel.cc:421: ...
9 years ago (2011-12-08 19:37:49 UTC) #4
apatrick_chromium
lgtm
9 years ago (2011-12-08 19:57:02 UTC) #5
brettw
lgtm
9 years ago (2011-12-08 20:39:55 UTC) #6
ddorwin
lgtm
9 years ago (2011-12-08 21:56:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/8877001/11001
9 years ago (2011-12-09 03:59:32 UTC) #8
commit-bot: I haz the power
9 years ago (2011-12-09 05:18:30 UTC) #9
Change committed as 113767

Powered by Google App Engine
This is Rietveld 408576698