Bug 56303 - REGRESSION(r80892): Use of uninitialized variable "m_syncCloseDatabase" in StorageAreaSync::sync.
Summary: REGRESSION(r80892): Use of uninitialized variable "m_syncCloseDatabase" in St...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Anton D'Auria
URL:
Keywords:
Depends on: 51878
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-14 04:40 PDT by David Levin
Modified: 2011-03-14 10:47 PDT (History)
2 users (show)

See Also:


Attachments
Patch (1.19 KB, patch)
2011-03-14 10:34 PDT, Anton D'Auria
levin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Levin 2011-03-14 04:40:54 PDT
I suspect that m_syncCloseDatabase just needs to be initialized in the constructor to false. Right now it is only set to a value in StorageAreaSync::sync (after the if) and in StorageAreaSync::scheduleCloseDatabase.

More details

Here's the valgrind error (from http://build.chromium.org/p/chromium.memory/builders/Linux%20Tests%20%28valgrind%29%283%29/builds/1852/steps/memory%20test%3A%20ui_1/logs/stdio):

Conditional jump or move depends on uninitialised value(s)
  WebCore::StorageAreaSync::sync(bool, WTF::HashMap<WTF::String, WTF::String, WTF::StringHash, WTF::HashTraits<WTF::String>, WTF::HashTraits<WTF::String> > const&) (uilder/build/src/third_party/WebKit/Source/WebCore/storage/StorageAreaSync.cpp:351)
  WebCore::StorageAreaSync::performSync() (uilder/build/src/third_party/WebKit/Source/WebCore/storage/StorageAreaSync.cpp:425)
  WebCore::LocalStorageTask::performTask() (uilder/build/src/third_party/WebKit/Source/WebCore/storage/LocalStorageTask.cpp:87)
  WebCore::LocalStorageThread::threadEntryPoint() (uilder/build/src/third_party/WebKit/Source/WebCore/storage/LocalStorageThread.cpp:69)
  WebCore::LocalStorageThread::threadEntryPointCallback(void*) (uilder/build/src/third_party/WebKit/Source/WebCore/storage/LocalStorageThread.cpp:62)
  WTF::threadEntryPoint(void*) (uilder/build/src/third_party/WebKit/Source/JavaScriptCore/wtf/Threading.cpp:67)
  start_thread (/lib/tls/i686/cmov/libpthread-2.7.so)
Comment 1 Anton D'Auria 2011-03-14 10:34:24 PDT
Created attachment 85690 [details]
Patch
Comment 2 David Levin 2011-03-14 10:35:48 PDT
Comment on attachment 85690 [details]
Patch

Actually I'll land this.
Comment 3 David Levin 2011-03-14 10:47:00 PDT
Committed as http://trac.webkit.org/changeset/81037