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

Issue 601230 link

Starred by 0 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

IPC fuzzer compile failure

Project Member Reported by mbarbe...@chromium.org, Apr 6 2016

Issue description

Seems to be caused by https://codereview.chromium.org/1853643007/

To reproduce, build ipc_fuzzer_all with GYP_DEFINES=enable_ipc_fuzzer=1

In file included from ../../tools/ipc_fuzzer/message_tools/message_list.cc:15:
In file included from ../../tools/ipc_fuzzer/message_lib/all_messages.h:29:
In file included from ../../remoting/host/chromoting_messages.h:13:
../../remoting/host/chromoting_param_traits.h:70:8: error: redefinition of 'IPC::ParamTraits<net::IPAddress>'
struct ParamTraits<net::IPAddress> {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../content/public/common/common_param_traits.h:78:23: note: previous definition is here
struct CONTENT_EXPORT ParamTraits<net::IPAddress> {
                      ^
In file included from ../../tools/ipc_fuzzer/message_tools/message_list.cc:15:
In file included from ../../tools/ipc_fuzzer/message_lib/all_messages.h:29:
In file included from ../../remoting/host/chromoting_messages.h:13:
../../remoting/host/chromoting_param_traits.h:80:8: error: redefinition of 'IPC::ParamTraits<net::IPEndPoint>'
struct ParamTraits<net::IPEndPoint> {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../content/public/common/common_param_traits.h:68:23: note: previous definition is here
struct CONTENT_EXPORT ParamTraits<net::IPEndPoint> {
                      ^
2 errors generated.
 

Comment 1 by w...@chromium.org, Apr 6 2016

Cc: sergeyu@chromium.org
Owner: mbarbe...@chromium.org
Looks like the fuzzer tool is trying to pull in both Chrome & Chromoting host's IPC messages & traits, and link into a single binary, which is something that ever happens in production binaries.

Is there just a single IPC fuzzer binary for the whole of Chrome?

If so then could we break it into one for most of Chrome, and a separate binary to fuzz just remoting/ stuff?
Cc: tsepez@chromium.org
Yeah, there's just one IPC fuzzer binary for all of chrome.

We could have a separate binary for remoting/, but it seems like it would be nontrivial (and I wouldn't have time to implement it in the near future). Losing coverage in this area in the meantime doesn't sound ideal.

I can remove the remoting messages fairly easily to fix the failure and file another bug if that's the plan.
Status: Fixed (was: Assigned)

Sign in to add a comment