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

Issue 2015243002: Add calls to g_type_init (Closed)

Created:
4 years, 6 months ago by Tom (Use chromium acct)
Modified:
4 years, 6 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, Dirk Pranke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add calls to g_type_init Failing tests: https://bugs.chromium.org/p/chromium/issues/detail?id=613329#c1 These changes were partitioned from https://codereview.chromium.org/2003753002/#ps40001 This fixes crashes such as the following on 32-bit linux: [412/714] XmppStreamParserTest.FailOnLooseText (2 ms) [ RUN ] AccessTokenFetcherTest.ExchangeAuthCodeForAccessToken (process:5533): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.32.4/./gobject/gtype.c:2722: You forgot to call g_type_init() (process:5533): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed (process:5533): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed (process:5533): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.32.4/./gobject/gtype.c:2722: You forgot to call g_type_init() (process:5533): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed (process:5533): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed Received signal 11 SEGV_MAPERR 00000000000c #0 0x0000b73d7e04 base::debug::StackTrace::StackTrace() #1 0x0000b73d792b base::debug::(anonymous namespace)::StackDumpSignalHandler() #2 0x0000b777c410 ([vdso]+0x40f) #3 0x0000b278cb79 <unknown> #4 0x0000b278d9a0 gconf_client_get_default #5 0x0000b68513a4 net::(anonymous namespace)::SettingGetterImplGConf::Init() #6 0x0000b684c07d net::ProxyConfigServiceLinux::Delegate::SetUpAndFetchInitialConfig() #7 0x0000b687f48d net::ProxyConfigServiceLinux::SetupAndFetchInitialConfig() #8 0x0000b6878d2e net::ProxyService::CreateSystemProxyConfigService() #9 0x0000085b912b remoting::URLRequestContextGetter::URLRequestContextGetter() #10 0x000008ee642a remoting::test::AccessTokenFetcher::CreateNewGaiaOAuthClientInstance() #11 0x000008ee632e remoting::test::AccessTokenFetcher::GetAccessTokenFromAuthCode() #12 0x000008395915 remoting::test::AccessTokenFetcherTest_ExchangeAuthCodeForAccessToken_Test::TestBody() #13 0x000008314310 _ZN7testing8internal12InvokeHelperIvNSt3tr15tupleIJEEEE12InvokeMethodIN8remoting8protocol39MessageReaderTest_ReadFromCallback_TestEMNS8_17MessageReaderTestEFvvEEEvPT_T0_RKS4_ #14 0x0000092c2713 testing::internal::HandleExceptionsInMethodIfSupported<>() #15 0x0000092b4a03 testing::Test::Run() #16 0x0000092b5487 testing::TestInfo::Run() #17 0x0000092b5c40 testing::TestCase::Run() #18 0x0000092bd5bf testing::internal::UnitTestImpl::RunAllTests() #19 0x0000092cfc20 testing::internal::HandleSehExceptionsInMethodIfSupported<>() #20 0x0000092c4133 testing::internal::HandleExceptionsInMethodIfSupported<>() #21 0x0000092bd1c8 testing::UnitTest::Run() #22 0x000009204e8d RUN_ALL_TESTS() #23 0x000009203a09 base::TestSuite::Run() #24 0x000008139f66 _ZN4base8internal15RunnableAdapterIMN18OAuth2TokenService7FetcherEFvvEE3RunIPS3_JEEEvOT_DpOT0_ #25 0x000008139e9a _ZN4base8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMN18OAuth2TokenService7FetcherEFvvEEEE8MakeItSoIJPS4_EEEvS7_DpOT_ #26 0x0000081e2f49 _ZN4base8internal7InvokerINS_13IndexSequenceIJLj0EEEENS0_9BindStateINS0_15RunnableAdapterIMNS_9TestSuiteEFivEEEFiPS6_EJNS0_17UnretainedWrapperIS6_EEEEENS0_12InvokeHelperILb0EiS9_EEFivEE3RunEPNS0_13BindStateBaseE #27 0x000008163b2b base::Callback<>::Run() #28 0x00000923e949 base::(anonymous namespace)::LaunchUnitTestsInternal() #29 0x00000923e73b base::LaunchUnitTests() #30 0x0000081e2bff main #31 0x0000b27c94d3 __libc_start_main #32 0x0000080f3b65 <unknown> gs: 00000033 fs: 00000000 es: 0000007b ds: 0000007b edi: 0bc1e1f0 esi: 00000000 ebp: bf83be98 esp: bf83b980 ebx: b27a3ff4 edx: 0bc1e1f0 ecx: 00000019 eax: 00000000 trp: 0000000e err: 00000004 ip: b278cb79 cs: 00000073 efl: 00210282 usp: bf83b980 ss: 0000007b [end of stack trace] BUG=613329 Committed: https://crrev.com/9d47fa1658395080390c4bbc01545958f209ce30 Cr-Commit-Position: refs/heads/master@{#400065}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Conditionalized call to g_type_init based on version #

Patch Set 3 : Remove static call to g_type_init in //net #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M build/linux/libgio/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M build/linux/system.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M net/proxy/proxy_config_service_linux.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (15 generated)
Tom (Use chromium acct)
4 years, 6 months ago (2016-05-27 16:42:09 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2015243002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2015243002/1
4 years, 6 months ago (2016-05-27 16:43:36 UTC) #5
Tom (Use chromium acct)
4 years, 6 months ago (2016-05-27 16:44:45 UTC) #7
Paweł Hajdan Jr.
LGTM
4 years, 6 months ago (2016-05-27 16:47:32 UTC) #8
asanka
I think you missed one of my questions from the previous CL. Why is this ...
4 years, 6 months ago (2016-05-27 17:03:28 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-27 18:04:12 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2015243002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2015243002/20001
4 years, 6 months ago (2016-05-27 20:37:51 UTC) #13
Tom (Use chromium acct)
On 2016/05/27 17:03:28, asanka wrote: > I think you missed one of my questions from ...
4 years, 6 months ago (2016-05-27 20:41:44 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-27 22:08:52 UTC) #16
asanka
On 2016/05/27 at 20:41:44, thomasanderson wrote: > On 2016/05/27 17:03:28, asanka wrote: > > I ...
4 years, 6 months ago (2016-05-31 15:21:35 UTC) #17
Tom (Use chromium acct)
On 2016/05/31 15:21:35, asanka wrote: > Thanks for checking. It seems the correct place to ...
4 years, 6 months ago (2016-06-03 16:47:37 UTC) #18
asanka
On 2016/06/03 at 16:47:37, thomasanderson wrote: > On 2016/05/31 15:21:35, asanka wrote: > > Thanks ...
4 years, 6 months ago (2016-06-03 16:51:28 UTC) #19
Tom (Use chromium acct)
Removed static call to g_type_init in //net It appears the only call to g_type_init we ...
4 years, 6 months ago (2016-06-03 17:31:24 UTC) #20
asanka
lgtm
4 years, 6 months ago (2016-06-04 02:07:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2015243002/40001
4 years, 6 months ago (2016-06-10 22:54:09 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/176211)
4 years, 6 months ago (2016-06-11 00:07:55 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2015243002/40001
4 years, 6 months ago (2016-06-12 00:20:31 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/245315)
4 years, 6 months ago (2016-06-12 00:57:53 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2015243002/40001
4 years, 6 months ago (2016-06-15 21:55:35 UTC) #32
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-16 01:04:17 UTC) #34
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-16 01:04:36 UTC) #35
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 01:05:41 UTC) #37
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9d47fa1658395080390c4bbc01545958f209ce30
Cr-Commit-Position: refs/heads/master@{#400065}

Powered by Google App Engine
This is Rietveld 408576698