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

Issue 5836002: Fix up uninitialized member variable (Closed)

Created:
10 years ago by dmac
Modified:
9 years, 7 months ago
Reviewers:
dmaclach1, jam, dhollowa
CC:
chromium-reviews, darin-cc_chromium.org, pam+watch_chromium.org, jam
Visibility:
Public.

Description

Fix up problem with uninitialized member variable. BUG=none TEST=build Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69341

Patch Set 1 #

Patch Set 2 : Fix up uninitialized variable #

Patch Set 3 : remove badly thought out fix for leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M ipc/ipc_channel_posix.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
dmac
David, do you mind taking a quick look? Running it through the trybots now.
10 years ago (2010-12-15 20:25:56 UTC) #1
jam
hi, per http://dev.chromium.org/developers/committers-responsibility, please send changes to someone who's familiar with this change. which test ...
10 years ago (2010-12-15 20:35:40 UTC) #2
dmaclach1
On Wed, Dec 15, 2010 at 12:35 PM, <jam@chromium.org> wrote: > hi, per http://dev.chromium.org/developers/committers-responsibility, please ...
10 years ago (2010-12-15 20:41:39 UTC) #3
dhollowa
http://build.chromium.org/p/chromium.memory/builders/Linux%20Heapcheck/builds/2125/steps/heapcheck%20test:%20ipc/logs/stdio Leak of 256 bytes in 4 objects allocated from: @ 4be9a5 Pickle::Resize @ 4bed51 ...
10 years ago (2010-12-15 21:19:45 UTC) #4
dhollowa
On 2010/12/15 20:25:56, dmac wrote: > David, do you mind taking a quick look? Running ...
10 years ago (2010-12-15 21:21:44 UTC) #5
jam
On Wed, Dec 15, 2010 at 12:41 PM, David Maclachlan <dmaclach@google.com>wrote: > On Wed, Dec ...
10 years ago (2010-12-15 21:23:16 UTC) #6
dhollowa
Also, http://build.chromium.org/p/chromium.memory/builders/Linux%20Tests%20(valgrind)(1)/builds/723/steps/memory%20test:%20ui_1/logs/stdio and http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20(valgrind)/builds/993/steps/memory%20test:%20unit/logs/stdio That look similar to: Conditional jump or move depends on uninitialised ...
10 years ago (2010-12-15 21:30:44 UTC) #7
jam
On Wed, Dec 15, 2010 at 1:23 PM, John Abd-El-Malek <jam@chromium.org> wrote: > > > ...
10 years ago (2010-12-15 21:58:37 UTC) #8
dmac
On 2010/12/15 21:58:37, John Abd-El-Malek wrote: > On Wed, Dec 15, 2010 at 1:23 PM, ...
10 years ago (2010-12-15 22:56:02 UTC) #9
jam
10 years ago (2010-12-15 23:04:54 UTC) #10
lgtm

On Wed, Dec 15, 2010 at 2:56 PM, <dmaclach@chromium.org> wrote:

> On 2010/12/15 21:58:37, John Abd-El-Malek wrote:
>
>> On Wed, Dec 15, 2010 at 1:23 PM, John Abd-El-Malek <mailto:
>> jam@chromium.org>
>>
> wrote:
>
>  >
>> >
>> > On Wed, Dec 15, 2010 at 12:41 PM, David Maclachlan
>>
> <dmaclach@google.com>wrote:
>
>> >
>> >> On Wed, Dec 15, 2010 at 12:35 PM,  <mailto:jam@chromium.org> wrote:
>> >> > hi, per http://dev.chromium.org/developers/committers-responsibility
>> ,
>> >> please
>> >> > send changes to someone who's familiar with this change.
>> >> >
>> >> > which test is failing?  is there no way for it to delete the
>> reply_msg
>> >> so
>> >> > that
>> >> > we don't have to modify the base IPC code to work around memory bots
>> for
>> >> a
>> >> > test?
>> >> >
>> >> > http://codereview.chromium.org/5836002/
>> >> >
>> >>
>> >> Sorry Jam. dhollowa was familiar with the failure, so that's why I
>> >> sent him the review. The code in question needs to clean up after
>> >> itself when the exception is triggered.
>> >
>> >
>> is this a C++ exception being thrown?  if so, where is this happening?
>>  that's against the coding guidelines.
>>
>
>
>  > It created an object, but
>> >> didn't take ownership of it properly.
>> >>
>> >
>> > hmm I still don't understand this change.  so in both conditions of the
>> if
>> > statement reply.release() is called.  which path does is this attempting
>> to
>> > fix?
>> >
>>
>
> Jam, I apologize. Looking at it in detail, I realize I was wrong. For some
> reason I thought DCHECK threw an exception, but that appears not to be the
> case.
> I am going to continue looking into it. In the meantime, this fix will get
> rid
> of some of the other valgrind complaints, and may cut down on some test
> flakiness.
>
>
> http://codereview.chromium.org/5836002/
>

Powered by Google App Engine
This is Rietveld 408576698