Project: chromium Issues People Development process History Sign in
New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Issue 51716 (OS X) valgrind: the 'impossible' happened: Killed by fatal signal
Starred by 12 users Project Member Reported by mirandac@chromium.org, Aug 10 2010 Back to list
Status: WontFix
Owner: ----
Closed: May 2013
Cc:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 0
Type: Bug

Blocking:
issue 95880



Sign in to add a comment
Here the excerpt from the logs showing the modus of failure:

[ RUN      ] BrowserEncodingTest.TestEncodingAliasMapping
[72745:267:0810/105252:5438846832006998:INFO:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/test/ui/ui_test.cc(1224)] BROWSER_WRAPPER was set, prefixing command_line with /b/slave/chromium-rel-mac-valgrind-ui-3/build/testing.tmp/browser_wrapper.WX6jAC
Started Valgrind wrapper for this test, PID=72746
--72747-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium:
--72747-- dSYM directory is missing; consider using --dsymutil=yes
--72747-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Chromium Framework:
--72747-- dSYM directory is missing; consider using --dsymutil=yes
[72747:1291:5438860738299947:ERROR:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/browser/first_run/first_run_mac.mm(63)] Not implemented reached in static bool FirstRun::ProcessMasterPreferences(const FilePath&, FirstRun::MasterPrefs*)
UNKNOWN task message [id 3413, to mach_task_self(), reply 0x903]
--72750-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Helper.app/Contents/MacOS/Chromium Helper:
--72750-- dSYM directory is missing; consider using --dsymutil=yes
--72750-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Chromium Framework:
--72750-- dSYM directory is missing; consider using --dsymutil=yes
[72750:1291:5438889066180454:ERROR:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/common/pepper_plugin_registry.cc(190)] Failed to load pepper module: /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Internet Plug-Ins/PDF.plugin
--72750-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Libraries/libffmpegsumo.dylib:
--72750-- dSYM directory is missing; consider using --dsymutil=yes
[72747:23555:5438893847041682:WARNING:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/net/base/file_stream_posix.cc(350)] Failed to open file: 2 (/private/var/folders/Tf/TfOs8gm+HkuQrkICa3LquE+++TM/-Tmp-/.org.chromium.30kehR/Default/Last Tabs)
[72747:25091:5438896570814668:WARNING:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/browser/renderer_host/resource_dispatcher_host.cc(1444)] Request doesn't seem to have our data
[72747:25091:5438897773293941:WARNING:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/browser/renderer_host/resource_dispatcher_host.cc(1444)] Request doesn't seem to have our data
--72747-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--72747-- si_code=1;  Faulting address: 0x89628680;  sp: 0xf12f5d10

valgrind: the 'impossible' happened:
   Killed by fatal signal
==72747==    at 0xF00B6EB7: ???
==72747==    by 0xF00B8959: ???
==72747==    by 0xF0106027: ???
==72747==    by 0xF0084118: ???
==72747==    by 0xF00845A6: ???
==72747==    by 0xF0108AAE: ???
==72747==    by 0xF012E83F: ???

sched status:
  running_tid=1

<SNIP>

--72750:0:schedule VG_(sema_down): read returned -4
/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/test/ui/ui_test.cc:279: Failure
Value of: server_->WaitForInitialLoads()
  Actual: false
Expected: true
[  FAILED  ] BrowserEncodingTest.TestEncodingAliasMapping (261417 ms)


 
Comment 1 by bugdro...@gmail.com, Aug 10 2010
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=55619 

------------------------------------------------------------------------
r55619 | mirandac@chromium.org | 2010-08-10 13:27:27 -0700 (Tue, 10 Aug 2010) | 6 lines
Changed paths:
   M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/browser_encoding_uitest.cc?r1=55619&r2=55618

Marking BrowserEncodingTest.TestEncodingAliasMapping as flaky.

BUG=51716
TEST=none

Review URL: http://codereview.chromium.org/3122007
------------------------------------------------------------------------

Labels: Valgrind
It seems like an assertion in Valgrind rather than a problem with our tests.
Labels: -Area-Undefined Area-BuildTools
Status: Assigned
Absolutely!
Alexander, can you please take a look?
Comment 4 by bugdro...@gmail.com, Sep 29 2010
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=60923

------------------------------------------------------------------------
r60923 | phajdan.jr@chromium.org | Wed Sep 29 02:53:58 PDT 2010

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/download/save_page_browsertest.cc?r1=60923&r2=60922&pathrev=60923
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/login/account_screen_browsertest.cc?r1=60923&r2=60922&pathrev=60923
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/browser_encoding_uitest.cc?r1=60923&r2=60922&pathrev=60923
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/file_path_watcher_unittest.cc?r1=60923&r2=60922&pathrev=60923
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/extensions/extension_storage_apitest.cc?r1=60923&r2=60922&pathrev=60923
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/download/download_request_limiter_unittest.cc?r1=60923&r2=60922&pathrev=60923
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/cocoa/applescript/browsercrapplication+applescript_test.mm?r1=60923&r2=60922&pathrev=60923
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/test/ui/ppapi_uitest.cc?r1=60923&r2=60922&pathrev=60923
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/extensions/extension_install_ui_browsertest.cc?r1=60923&r2=60922&pathrev=60923

GTTF: remove flaky mark from following tests:

- FilePathWatcherTest.DeleteAndRecreate (bug 54822)
- FilePathWatcherTest.DirectoryChain (bug 54822)
- FilePathWatcherTest.MoveChild (bug 54822)
- FilePathWatcherTest.MoveParent (bug 54822)
- FilePathWatcherTest.NonExistentDirectory (bug 54822)
- AccountScreenTest.TestSchemeInspector (bug 46274)
- SavePageBrowserTest.SaveCompleteHTML (bug 52292)
- DownloadRequestLimiterTest.Allow (bug 39753)
- PPAPITest.Graphics2D (bug 54150)
- ExtensionApiTest.Storage (bug 42943)
- BrowserEncodingTest.TestEncodingAliasMapping (bug 51716)
- BrowserCrApplicationAppleScriptTest.InsertWindow (bug 53584)
- ExtensionInstallUIBrowserTest.TestThemeInstallUndoResetsToDefault (bug 43441)

TBR=mal

BUG=54822, 46274, 52292, 39753, 54150, 42943, 51716, 53584, 43441
TEST=none

Review URL: http://codereview.chromium.org/3545003
------------------------------------------------------------------------
Labels: OS-Linux
Summary: valgrind: the 'impossible' happened: Killed by fatal signal (was: NULL)
Comment 6 by karen@chromium.org, Oct 6 2010
Labels: Mstone-9
Labels: -mstone-9 Mstone-10
Given our current velocity, we need to punt 500 bugs from m9.  Moving p2 bugs, that are not started and have an owner, to the next milestone.  If this issue absolutely needs to be fixed in the current milestone please move it back, however, at this time the focus should be on p1 bugs.
Comment 8 by kerz@chromium.org, Dec 9 2010
Labels: -Mstone-10 MovedFrom-10 Mstone-11
P2 bugs with an owner that are not marked as started are being automatically moved to mstone:11.
Comment 9 by tha...@chromium.org, Jan 27 2011
Another example http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20%28valgrind%29%281%29/builds/1205/steps/memory%20test%3A%20ui_1/logs/V8BenchmarkTest.Perf
Labels: -Pri-2 Pri-1
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20(valgrind)(4)/builds/1496/steps/memory%20test:%20ui_1/logs/stdio
[ RUN      ] AutomationProxyTest.AcceleratorDownloads
Started Valgrind wrapper for this test, PID=82674
--82675-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/MacOS/Chromium:
--82675-- dSYM directory is missing; consider using --dsymutil=yes
--82675-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework:
--82675-- dSYM directory is missing; consider using --dsymutil=yes
--82675-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--82675-- si_code=1;  Faulting address: 0x81BE7350;  sp: 0xf089dd70

valgrind: the 'impossible' happened:
   Killed by fatal signal
==82675==    at 0x38037E4B: ???
==82675==    by 0x3803FEF7: ???
==82675==    by 0x380039C8: ???
==82675==    by 0x38003E24: ???
==82675==    by 0x3807D6C3: ???
==82675==    by 0x38076878: ???
Project Member Comment 11 by bugdroid1@chromium.org, Feb 9 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=74273

------------------------------------------------------------------------
r74273 | timurrrr@chromium.org | Wed Feb 09 02:34:13 PST 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=74273&r2=74272&pathrev=74273

Exclude a couple of UI tests from running under Valgrind on Mac due to internal Valgrind errors
BUG=51716,58145
TBR=glider
TEST=Memcheck/UI/Mac bots go greener
Review URL: http://codereview.chromium.org/6462028
------------------------------------------------------------------------
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20(valgrind)(4)/builds/1497/steps/memory%20test:%20ui/logs/stdio

[ RUN      ] AutomationProxyTest2.GetActiveTabIndex
Started Valgrind wrapper for this test, PID=83325
--83326-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/MacOS/Chromium:
--83326-- dSYM directory is missing; consider using --dsymutil=yes
--83326-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework:
--83326-- dSYM directory is missing; consider using --dsymutil=yes
--83326-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--83326-- si_code=1;  Faulting address: 0x1C3B7672;  sp: 0xf089dd70

valgrind: the 'impossible' happened:
   Killed by fatal signal
==83326==    at 0x38037E4B: ???
==83326==    by 0x3803FEF7: ???
==83326==    by 0x380039C8: ???
==83326==    by 0x38003DC4: ???
==83326==    by 0x3807D6C3: ???
==83326==    by 0x38076878: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==83326==    at 0x18F83: _Znwm (vg_replace_malloc.c:261)
==83326==    by 0x13EB6211: _ZN10jpx_source4openEP14jp2_family_srcb (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO)
==83326==    by 0x13EB5B7B: _cg_JP2SetupDecompressor (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO)
==83326==    by 0x13EB5665: initImageJP2 (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO)
==83326==    by 0x13EB22A3: _CGImagePluginInitICNS (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO)
==83326==    by 0x13EA375D: makeImagePlus (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO)
==83326==    by 0x13EA916F: CGImageSourceGetPropertiesAtIndex (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO)
==83326==    by 0x13EA90C9: CGImageSourceCopyPropertiesAtIndex (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO)
==83326==    by 0xE6A7DE: +[NSBitmapImageRep _imagesWithData:hfsFileType:extension:zone:expandImageContentNow:includeAllReps:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==83326==    by 0xE6A49E: +[NSBitmapImageRep _imageRepsWithData:hfsFileType:extension:expandImageContentNow:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==83326==    by 0xE6A08E: +[NSImageRep _imageRepsWithContentsOfFile:expandImageContentNow:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==83326==    by 0xE17FFB: -[NSImage _expandRep:expandImageContentNow:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==83326==    by 0xD952D8: -[NSImage _expandJustEnoughToLoadRepProperties] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==83326==    by 0xD5E854: -[NSImage size] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==83326==    by 0xDD2D38: -[NSImage drawInRect:fromRect:operation:fraction:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==83326==    by 0xA8904FA: _ZN3gfx17NSImageToSkBitmapEP7NSImage7_NSSizeb (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA8905A3: _ZN3gfx22AppplicationIconAtSizeEi (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA226E26: _ZN33TaskManagerBrowserProcessResourceC2Ev (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA226E48: _ZN33TaskManagerBrowserProcessResourceC1Ev (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA226E88: _ZN41TaskManagerBrowserProcessResourceProviderC2EP11TaskManager (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA226EA9: _ZN41TaskManagerBrowserProcessResourceProviderC1EP11TaskManager (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA21DA43: _ZN16TaskManagerModelC2EP11TaskManager (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA21DBA3: _ZN16TaskManagerModelC1EP11TaskManager (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA21DBCE: _ZN11TaskManagerC2Ev (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA21DBF4: _ZN11TaskManagerC1Ev (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA2262E1: _ZN22DefaultSingletonTraitsI11TaskManagerE3NewEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA226369: _ZN9SingletonI11TaskManager22DefaultSingletonTraitsIS0_ES0_E3getEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0xA21DC02: _ZN11TaskManager11GetInstanceEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0x9DC4BB4: _ZN29ExtensionProcessesEventRouterC2Ev (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0x9DC4BE4: _ZN29ExtensionProcessesEventRouterC1Ev (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0x9DC5DE7: _ZN22DefaultSingletonTraitsI29ExtensionProcessesEventRouterE3NewEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0x9DC5E70: _ZN9SingletonI29ExtensionProcessesEventRouter22DefaultSingletonTraitsIS0_ES0_E3getEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0x9DC4BF2: _ZN29ExtensionProcessesEventRouter11GetInstanceEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0x9DCB24C: _ZN16ExtensionService16InitEventRoutersEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0x9C54AA4: _Z11BrowserMainRK18MainFunctionParams (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0x9A015FD: _ZN12_GLOBAL__N_123RunNamedProcessTypeMainERKSsRK18MainFunctionParams (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0x9A00E8D: ChromeMain (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/11.0.665.0/Chromium Framework.framework/Chromium Framework)
==83326==    by 0x1F55: main (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/MacOS/Chromium)
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20(valgrind)(2)/builds/1559/steps/memory%20test:%20ui/logs/stdio
AutomatedUITestBase.Navigate
Project Member Comment 14 by bugdroid1@chromium.org, Feb 9 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=74291

------------------------------------------------------------------------
r74291 | timurrrr@chromium.org | Wed Feb 09 07:32:45 PST 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=74291&r2=74290&pathrev=74291
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest-tsan.txt?r1=74291&r2=74290&pathrev=74291

Exclude more tests from Memcheck/Mac/UI and TSan/UI
BUG=46643,51716,58145
TEST=bots go greener
TBR=glider
Review URL: http://codereview.chromium.org/6461020
------------------------------------------------------------------------
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20(valgrind)(2)/builds/1575/steps/memory%20test:%20ui_1/logs/stdio
PreferenceServiceTest.PreservedWindowPlacementIsLoaded
Project Member Comment 17 by bugdroid1@chromium.org, Feb 10 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=74427

------------------------------------------------------------------------
r74427 | timurrrr@chromium.org | Thu Feb 10 04:28:41 PST 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=74427&r2=74426&pathrev=74427

Exclude two more Mac/UI tests failing under Valgrind
BUG=51716,58145
TBR=glider
Review URL: http://codereview.chromium.org/6469025
------------------------------------------------------------------------
Following tests are failing sporadically, and am going to exclude them but...

ErrorPageTest.IFrameDNSError_Basic
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20(valgrind)(2)/builds/1672/steps/memory%20test:%20ui/logs/stdio

AutomationProxyTest2.GetActiveTabIndex
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20(valgrind)(1)/builds/1475/steps/memory%20test:%20ui_1/logs/AutomationProxyTest2.GetActiveTabIndex

IFrameTest.Crash
PPAPITest.FileIO
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20(valgrind)(2)/builds/1668/steps/memory%20test:%20ui_1/logs/stdio

AutomationProxyTest5.TestLifetimeOfDomAutomationController
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20(valgrind)(4)/builds/1601/steps/memory%20test:%20ui/logs/stdio

Is anyone working on this? I'm worrying that we just keep losing coverage...
Project Member Comment 19 by bugdroid1@chromium.org, Feb 16 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=75198

------------------------------------------------------------------------
r75198 | oshima@google.com | Wed Feb 16 14:53:43 PST 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=75198&r2=75197&pathrev=75198

Excluding tests that causes valgrind crash on mac

ErrorPageTest.IFrameDNSError_Basic
AutomationProxyTest2.GetActiveTabIndex
IFrameTest.Crash
PPAPITest.FileIO

TBR=glider@chromium.org
BUG=51716
TEST=none

Review URL: http://codereview.chromium.org/6507023
------------------------------------------------------------------------
Project Member Comment 20 by bugdroid1@chromium.org, Feb 17 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=75218

------------------------------------------------------------------------
r75218 | oshima@google.com | Wed Feb 16 17:53:05 PST 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=75218&r2=75217&pathrev=75218

Two more tests to exclude due to "impossible" failure on mac valgrind.

TBR=glider@chromium.org
BUG=51716
TEST=none

Review URL: http://codereview.chromium.org/6532011
------------------------------------------------------------------------
I'm very concerned too.
This is assigned to glider@ who is aware of this problem but quite loaded with other stuff right now (estimate: 3 weeks of unavailability).
I'm not sure if we have Mac+Valgrind experts besides Alexander and Lei...
Issue 53839 has been merged into this issue.
Another test failing with 'impossible' SIGSEGV

http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20%28valgrind%29%284%29/builds/1870/steps/memory%20test%3A%20ui/logs/MediaTest.VideoBearSilentTheora
Project Member Comment 24 by bugdroid1@chromium.org, Mar 8 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=77265

------------------------------------------------------------------------
r77265 | jochen@chromium.org | Tue Mar 08 00:28:46 PST 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=77265&r2=77264&pathrev=77265

Exclude MediaTest.VideoBearSilentTheora due to 'impossible' SIGSEGV

BUG=51716
TEST=none
TBR=glider@chromium.org

Review URL: http://codereview.chromium.org/6623081
------------------------------------------------------------------------
Comment 25 by kareng@google.com, Mar 9 2011
Labels: -Mstone-11 MovedFrom-11 Mstone-12
rolling non releaseblocker mstone 11 bugs to mstone 12. 
Labels: -OS-Linux -MovedFrom-10 -MovedFrom-11 -Mstone-12 OS-Mac Mstone-X
Two more failing tests:
ViewSourceTest.DoesBrowserConsumeViewSourcePrefix
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20%28valgrind%29%282%29/builds/2078/steps/memory%20test%3A%20ui_1/logs/ViewSourceTest.DoesBrowserConsumeViewSourcePrefix

AutomatedUITestBase.IncognitoWindow
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20%28valgrind%29%283%29/builds/1894/steps/memory%20test%3A%20ui_1/logs/AutomatedUITestBase.IncognitoWindow

I'll also fix the labels
Project Member Comment 27 by bugdroid1@chromium.org, Mar 15 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=78199

------------------------------------------------------------------------
r78199 | timurrrr@chromium.org | Tue Mar 15 05:37:24 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=78199&r2=78198&pathrev=78199

Don't run three more tests failing on a Valgrind assertion under Valgrind/Mac
BUG=58146,51716
TBR=glider
TEST=memory waterfall is greener
Review URL: http://codereview.chromium.org/6696019
------------------------------------------------------------------------
Labels: -Valgrind bulkmove Stability-Valgrind
Here the excerpt from the logs showing the modus of failure:

[ RUN      ] BrowserEncodingTest.TestEncodingAliasMapping
[72745:267:0810/105252:5438846832006998:INFO:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/test/ui/ui_test.cc(1224)] BROWSER_WRAPPER was set, prefixing command_line with /b/slave/chromium-rel-mac-valgrind-ui-3/build/testing.tmp/browser_wrapper.WX6jAC
Started Valgrind wrapper for this test, PID=72746
--72747-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium:
--72747-- dSYM directory is missing; consider using --dsymutil=yes
--72747-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Chromium Framework:
--72747-- dSYM directory is missing; consider using --dsymutil=yes
[72747:1291:5438860738299947:ERROR:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/browser/first_run/first_run_mac.mm(63)] Not implemented reached in static bool FirstRun::ProcessMasterPreferences(const FilePath&amp;, FirstRun::MasterPrefs*)
UNKNOWN task message [id 3413, to mach_task_self(), reply 0x903]
--72750-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Helper.app/Contents/MacOS/Chromium Helper:
--72750-- dSYM directory is missing; consider using --dsymutil=yes
--72750-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Chromium Framework:
--72750-- dSYM directory is missing; consider using --dsymutil=yes
[72750:1291:5438889066180454:ERROR:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/common/pepper_plugin_registry.cc(190)] Failed to load pepper module: /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Internet Plug-Ins/PDF.plugin
--72750-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Libraries/libffmpegsumo.dylib:
--72750-- dSYM directory is missing; consider using --dsymutil=yes
[72747:23555:5438893847041682:WARNING:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/net/base/file_stream_posix.cc(350)] Failed to open file: 2 (/private/var/folders/Tf/TfOs8gm+HkuQrkICa3LquE+++TM/-Tmp-/.org.chromium.30kehR/Default/Last Tabs)
[72747:25091:5438896570814668:WARNING:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/browser/renderer_host/resource_dispatcher_host.cc(1444)] Request doesn't seem to have our data
[72747:25091:5438897773293941:WARNING:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/browser/renderer_host/resource_dispatcher_host.cc(1444)] Request doesn't seem to have our data
--72747-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--72747-- si_code=1;  Faulting address: 0x89628680;  sp: 0xf12f5d10

valgrind: the 'impossible' happened:
   Killed by fatal signal
==72747==    at 0xF00B6EB7: ???
==72747==    by 0xF00B8959: ???
==72747==    by 0xF0106027: ???
==72747==    by 0xF0084118: ???
==72747==    by 0xF00845A6: ???
==72747==    by 0xF0108AAE: ???
==72747==    by 0xF012E83F: ???

sched status:
  running_tid=1

&lt;SNIP&gt;

--72750:0:schedule VG_(sema_down): read returned -4
/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/test/ui/ui_test.cc:279: Failure
Value of: server_-&gt;WaitForInitialLoads()
  Actual: false
Expected: true
[  FAILED  ] BrowserEncodingTest.TestEncodingAliasMapping (261417 ms)
Labels: -Area-BuildTools Area-Build
Here the excerpt from the logs showing the modus of failure:

[ RUN      ] BrowserEncodingTest.TestEncodingAliasMapping
[72745:267:0810/105252:5438846832006998:INFO:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/test/ui/ui_test.cc(1224)] BROWSER_WRAPPER was set, prefixing command_line with /b/slave/chromium-rel-mac-valgrind-ui-3/build/testing.tmp/browser_wrapper.WX6jAC
Started Valgrind wrapper for this test, PID=72746
--72747-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium:
--72747-- dSYM directory is missing; consider using --dsymutil=yes
--72747-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Chromium Framework:
--72747-- dSYM directory is missing; consider using --dsymutil=yes
[72747:1291:5438860738299947:ERROR:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/browser/first_run/first_run_mac.mm(63)] Not implemented reached in static bool FirstRun::ProcessMasterPreferences(const FilePath&amp;, FirstRun::MasterPrefs*)
UNKNOWN task message [id 3413, to mach_task_self(), reply 0x903]
--72750-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Helper.app/Contents/MacOS/Chromium Helper:
--72750-- dSYM directory is missing; consider using --dsymutil=yes
--72750-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Chromium Framework:
--72750-- dSYM directory is missing; consider using --dsymutil=yes
[72750:1291:5438889066180454:ERROR:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/common/pepper_plugin_registry.cc(190)] Failed to load pepper module: /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Internet Plug-Ins/PDF.plugin
--72750-- /b/slave/chromium-rel-mac-valgrind-ui-3/build/src/xcodebuild/Debug/Chromium.app/Contents/Versions/6.0.491.0/Chromium Framework.framework/Libraries/libffmpegsumo.dylib:
--72750-- dSYM directory is missing; consider using --dsymutil=yes
[72747:23555:5438893847041682:WARNING:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/net/base/file_stream_posix.cc(350)] Failed to open file: 2 (/private/var/folders/Tf/TfOs8gm+HkuQrkICa3LquE+++TM/-Tmp-/.org.chromium.30kehR/Default/Last Tabs)
[72747:25091:5438896570814668:WARNING:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/browser/renderer_host/resource_dispatcher_host.cc(1444)] Request doesn't seem to have our data
[72747:25091:5438897773293941:WARNING:/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/browser/renderer_host/resource_dispatcher_host.cc(1444)] Request doesn't seem to have our data
--72747-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--72747-- si_code=1;  Faulting address: 0x89628680;  sp: 0xf12f5d10

valgrind: the 'impossible' happened:
   Killed by fatal signal
==72747==    at 0xF00B6EB7: ???
==72747==    by 0xF00B8959: ???
==72747==    by 0xF0106027: ???
==72747==    by 0xF0084118: ???
==72747==    by 0xF00845A6: ???
==72747==    by 0xF0108AAE: ???
==72747==    by 0xF012E83F: ???

sched status:
  running_tid=1

&lt;SNIP&gt;

--72750:0:schedule VG_(sema_down): read returned -4
/b/slave/chromium-rel-mac-valgrind-ui-3/build/src/chrome/test/ui/ui_test.cc:279: Failure
Value of: server_-&gt;WaitForInitialLoads()
  Actual: false
Expected: true
[  FAILED  ] BrowserEncodingTest.TestEncodingAliasMapping (261417 ms)
Project Member Comment 30 by bugdroid1@chromium.org, Apr 20 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=82206

------------------------------------------------------------------------
r82206 | dhollowa@chromium.org | Tue Apr 19 18:17:18 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=82206&r2=82205&pathrev=82206

Mac Valgrind failures: valgrind: the 'impossible' happened: Killed by fatal signal

Adds a number of tests to the Mac Valgrind disabled list.  An attempt to stem the redness while this apparent memory smash gets sorted out.

BUG=51716
TEST=Mac Valgrind bots go green.
TBR=glider@chromium.org

Review URL: http://codereview.chromium.org/6879069
------------------------------------------------------------------------
Cc: mark@chromium.org sh...@chromium.org
This seems to be getting a lot worse.  There's been red Mac UI Valgrind bots for a few days now.  The failures are intermittent but there are a few repeats.

Here's the summary of the 'impossible' failures I'm seeing.  Note that the repeated tests indicate frequency.

AutomatedUITestBase.ShowDownloads
AutomatedUITestBase.ShowDownloads
AutomationProxyTest.AcceleratorExtensions
AutomationProxyTest.ActivateTab
AutomationProxyTest.FLAKY_BlockedPopupTest
AutomationProxyTest.GetActiveTabIndex
AutomationProxyTest.GetCurrentURL
AutomationProxyTest2.GetTabTitle
AutomationProxyTest2.GetTabTitle
AutomationProxyTest2.GetTabTitle
AutomationProxyTest2.GetTabTitle
AutomationProxyTest4.NumberValueIsEchoedByDomAutomationController
ExtensionProxyUITest.EnableDisable
LoginPromptTest.SupplyRedundantAuths
LoginPromptTest.TestCancelAuth
MediaTest.VideoBearTheora
MediaTest.VideoBearTheora
MediaTest.VideoBearTheora
MediaTest.VideoBearWebm
PPAPITest.FLAKY_PaintAggregator
PrintPreviewUITest.LoadPrintPreviewByURL
RedirectTest.ServerReference
RepostFormWarningTest.TestDoubleReload
ResourceDispatcherTest.ContentDispositionEmpty
ResourceDispatcherTest.ContentDispositionEmpty
ResourceDispatcherTest.ContentDispositionInline
ResourceDispatcherTest.FLAKY_SyncXMLHttpRequest
ResourceDispatcherTest.SniffNoContentTypeNoData
SessionHistoryTest.LocationChangeInSubframe
ShowModalDialogTest.FLAKY_BasicTest
V8BenchmarkTest.Perf
WorkerFileSystemTest.FileEntryToURISync

I'm attaching edited log files that summarize the stacks for each of these and the failure reported by Valgrind.

mac_vg_ui_1.txt
10.7 KB View Download
mac_vg_ui_4.txt
17.0 KB View Download
mac_vg_ui_2.txt
13.2 KB View Download
mac_vg_ui_3.txt
17.5 KB View Download
As a first step, someone with a Mac needs to do a debug build of Valgrind, reproduce this failure and figure out why it's happening. Basically figure out what the back trace is.
Status: Started
Taking this as a P0 (didn't change the actual priority not to scare anyone)
Cc: kasperl@chromium.org
While trying to reproduce the problem with MediaTest.VideoBearTheora under Valgrind, I've managed to hit the following assertion within that test:

#
# Fatal error in /Users/glider/src/chrome-commit/src/v8/tools/gyp/../../src/lithium-allocator.cc, line 1507
# CHECK(UnhandledIsSorted()) failed
#


Kasper, could you please comment on this error?
Does this assertion failure mean a memory corruption or something else?
Is lithium-allocator a low-level thing that should be handled by Valgrind in a special way, or does it rely on the system malloc()/free() functions?

FTR, I've executed the following command with the 32-bit ui_test binary on an OS X 10.6 machine:
tools/valgrind/valgrind.sh  --tool=memcheck --gen-suppressions=all --leak-check=no  xcodebuild/Debug/ui_tests --ui-test-timeout=240000 --ui-test-action-timeout=120000 --ui-test-action-max-timeout=280000 --ui-test-sleep-timeout=120000 --ui-test-terminate-timeout=120000 --gtest_filter=*BearTheora:AutomationProxyTest.ActivateTab:PPAPITest.FLAKY_PaintAggregator 2>&1 | tee ui.log
Oh, that's a register allocator, not a memory allocator.
Anyway, is it normal to violate this assertion?
While running the VideoBearTheora test under Valgrind on the bot I've noticed the following reports from the nVidia driver:

==46651== Invalid write of size 4
==46651==    at 0x18A72: memcpy (mc_replace_strmem.c:635)
==46651==    by 0x34240C43: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x342426B0: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x342DBA26: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x342DBDEB: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x3425EBA5: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x341DA4CE: gldAllocVertexBuffer (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x341DA5D0: gldAllocVertexBuffer (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x341B9A6B: gldCreateContext (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x3400287C: gliCreateContext (in /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine)
==46651==    by 0x488E7: cglInitializeContext (in /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL)
==46651==    by 0x481DD: CGLCreateContext (in /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL)
==46651==  Address 0x41319068 is not stack'd, malloc'd or (recently) free'd


==46651== Invalid read of size 4
==46651==    at 0x341EDEB7: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x34240CB2: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x342426B0: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x342DBA26: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x342DBDEB: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x3425EBA5: gldGetTextureLevel (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x341DA4CE: gldAllocVertexBuffer (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x341DA5D0: gldAllocVertexBuffer (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x341B9A6B: gldCreateContext (in /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver)
==46651==    by 0x3400287C: gliCreateContext (in /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine)
==46651==    by 0x488E7: cglInitializeContext (in /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL)
==46651==    by 0x481DD: CGLCreateContext (in /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL)
==46651==  Address 0x4131908c is not stack'd, malloc'd or (recently) free'd


According to the discussion at http://www.mail-archive.com/valgrind-users@lists.sourceforge.net/msg00827.html, the GeForce8xxxGLDriver may possibly use self-modifying code. If so, we need to enable the "--smc-check=all", otherwise Valgrind may use the stale version of translated code, thus producing incorrect behavior.
BTW, after enabling the --smc-check=all I've started hitting assertions in the Chrome code, e.g. issue 5385 and issue 74473. The assertion violations seem to sometimes lead to the 'impossible happened' messages as well.

Timur, am I right that the stdio Valgrind logs on the bots are stripped in a manner that doesn't allow us to see such assertion messages?

Project Member Comment 38 by bugdroid1@chromium.org, Apr 21 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=82470

------------------------------------------------------------------------
r82470 | glider@chromium.org | Thu Apr 21 04:08:24 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/valgrind_test.py?r1=82470&r2=82469&pathrev=82470

Enable --smc-check=all for Memcheck on Mac OS to see if it helps to get rid of issue 51716

TBR=timurrrr
BUG=51716
Review URL: http://codereview.chromium.org/6880106
------------------------------------------------------------------------
ThreadSanitizer crashed with the "impossible happened, findSb: can't find pointer 0x3D8F91A0 in arena 'tool'" message on one of 33 continuous runs.

The tool is reporting a number of races on VideoBearTheora, including some in the CoreFoundation data structures (these are known to be properly synchronized), issue 80273 (which happens in the parent of the crashing process and is unlikely to cause heap corruptions), and some reports inside libGLProgrammability.dylib, e.g.:

==54619== WARNING: Possible data race during write of size 4 at 0x3C01E1AC: {{{
==54619==    T5 (Chrome_FileThread) (L{L502}):
==54619==     #0  0x1811915C: CSMemNewPtrClear /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #1  0x18122690: NewPtrClear /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #2  0x1812343C: AVLInsertInSubtree /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #3  0x181234D1: AVLInsertInSubtree /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #4  0x181233FB: AVLInsert /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #5  0x18123E48: SaveToFolderCache /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #6  0x181224C2: FindFolderGuts /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #7  0x18124EB4: ResolveRelativeFolder /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #8  0x18122401: FindFolderGuts /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #9  0x18121EA8: FSFindFolder /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #10 0xC18861C: webkit::npapi::::GetPluginCommonDirectory /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #11 0xC1886A1: webkit::npapi::PluginList::GetPluginDirectories /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==   Concurrent write(s) happened at (OR AFTER) these points:
==54619==    T0 (L{L497}):
==54619==     #0  0xC536F1: operator delete /private/tmp/valgrind.7iwYuW/lib/valgrind/vgpreload_tsan-x86-darwin.so
==54619==     #1  0x19BA61DA: std::_Rb_tree::_M_erase /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
==54619==     #2  0x19BA61CF: std::_Rb_tree::_M_erase /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
==54619==     #3  0x19745D3A: llvm::Type::PromoteAbstractToConcrete /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
==54619==     #4  0x19746B3C: llvm::DerivedType::notifyUsesThatTypeBecameConcrete /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
==54619==     #5  0x19745B1A: llvm::Type::PromoteAbstractToConcrete /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
==54619==     #6  0x19746B3C: llvm::DerivedType::notifyUsesThatTypeBecameConcrete /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
==54619==     #7  0x19745B1A: llvm::Type::PromoteAbstractToConcrete /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
==54619==     #8  0x19746B3C: llvm::DerivedType::notifyUsesThatTypeBecameConcrete /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
==54619==     #9  0x19745B1A: llvm::Type::PromoteAbstractToConcrete /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
==54619==   Locks involved in this report (reporting last lock sites): {L497, L502}
==54619==    L497 (0x36A00C0)
==54619==     #0  0xC4D06E: pthread_mutex_lock /private/tmp/valgrind.7iwYuW/lib/valgrind/vgpreload_tsan-x86-darwin.so
==54619==     #1  0x36960BE: glcPluginChoosePixelFormat /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
==54619==     #2  0x3693F22: cglChoosePixelFormat /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
==54619==     #3  0x369301E: CGLChoosePixelFormat /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
==54619==     #4  0x148183B0: createPixelFormat /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
==54619==     #5  0x1481834B: -[NSOpenGLPixelFormat initWithAttributes:] /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
==54619==     #6  0xA703F69: -[AcceleratedPluginView initWithRenderWidgetHostViewMac:pluginHandle:] /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromiu
m Framework
==54619==     #7  0xA70818D: RenderWidgetHostViewMac::AllocateFakePluginWindowHandle /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #8  0xA702E4F: RenderWidgetHostViewMac::GetCompositingSurface /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #9  0xC541F9B: RenderWidgetHost::GetCompositingSurface /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #10 0xC535C32: RenderViewHost::CreateRenderView /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #11 0xC579D53: TabContents::CreateRenderViewForRenderManager /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==    L502 (0x183E77A0)
==54619==     #0  0xC4D06E: pthread_mutex_lock /private/tmp/valgrind.7iwYuW/lib/valgrind/vgpreload_tsan-x86-darwin.so
==54619==     #1  0x18121EDB: FolderManagerReentrancyLock /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #2  0x18121E6F: FSFindFolder /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
==54619==     #3  0xC18861C: webkit::npapi::::GetPluginCommonDirectory /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #4  0xC1886A1: webkit::npapi::PluginList::GetPluginDirectories /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #5  0xC182A3D: webkit::npapi::PluginList::LoadPluginsInternal /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #6  0xC180F21: webkit::npapi::PluginList::LoadPlugins /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #7  0xC181EBD: webkit::npapi::PluginList::GetPlugins /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #8  0xA60C4E9: MetricsService::InitTask::Run /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #9  0xAB9E91D: MessageLoop::RunTask /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #10 0xAB9EA50: MessageLoop::DeferOrRunPendingTask /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==     #11 0xAB9EB9C: MessageLoop::DoDelayedWork /b/build.copy/src/xcodebuild/Release/Chromium.app/Contents/Versions/12.0.742.0/Chromium Framework.framework/Chromium Framework
==54619==    Race verifier data: 0x1811915C,0xC536F1
==54619== }}}

That libGL stuff may possibly be related to crashes.
In fact there is a number of different bugs that lead to "impossible happened" reports:

Killed by fatal signal
 -- seen under Memcheck with the default --smc-check value (=stack). Means that Valgrind itself (not the client program) is causing a segfault. Could be related to self-modifying OpenGL code.

findSb: VG_(arena_free)() in wrong arena?
 -- seen under Memcheck and ThreadSanitizer so far, even with --smc-check=all. No ideas.

valgrind: m_mallocfree.c:226 (mk_plain_bszB): Assertion 'bszB != 0' failed.
 -- probably a heap corruption. Seen only under Memcheck with the default --smc-check value (=stack). Could be caused by OpenGL as well.

If the --smc-check stuff helps, only the VG_(arena_free) messages should appear on the bots as of r82470
Good news that --smc-check=all helped for at least a few cases. Can you re-enable some (10-20?) of the crashy tests to see if they remain stable?

If the default value of --smc-check is THAT crashy - can we try to create a reduced video-related test case (e.g. take some opensource OpenGL examples) and file an upstream bug?

> findSb: VG_(arena_free)() in wrong arena?
Could it actually be a wrong arena free? Can we add some in-client CHECKs or LD_PRELOAD malloc/free CHECKs to make sure the core libraries and chrome don't break the arena rules?
Or just enable some extra arena debug checks?
Cc: a deleted user huanr@chromium.org
Issue 79803 has been merged into this issue.
Cc: adamk@chromium.org
Issue 79831 has been merged into this issue.
#34 is an assert failure in V8 register allocation. I'll look into that on the V8 side.
Cc: vegorov%...@gtempaccount.com fschneider@chromium.org
I'm trying to reproduce the V8 assert from comment 34. On Linux I could not reproduce it so far. I built chrome normally and executed the ui_tests as described.

Do I need to build chrome in some specific way to run with valgrind?

Did the assert only ever occur on Mac OS? Is it reliably reproducable?

Next step will be to try on a Mac as soon as I get a chance.

Comment 47 by glider@google.com, Apr 27 2011
This is the command line I've executed to provoke the V8 assertion:

tools/valgrind/valgrind.sh  --tool=memcheck --gen-suppressions=all --leak-check=no  xcodebuild/Debug/ui_tests --ui-test-timeout=240000 --ui-test-action-timeout=120000 --ui-test-action-max-timeout=280000 --ui-test-sleep-timeout=120000 --ui-test-terminate-timeout=120000 --gtest_filter=*BearTheora:AutomationProxyTest.ActivateTab:PPAPITest.FLAKY_PaintAggregator 2>&1 | tee ui.log

BTW, that assertion was caught with Valgrind's --smc-check=stack, which means that Valgrind could execute the cached version of JITted code instead of the fresh one. If so, it probably doesn't make sense to reproduce the problem, because it is valid no more.
Comment 48 by glider@google.com, Apr 27 2011
And, yes, the problem is Mac-only.
Project Member Comment 49 by bugdroid1@chromium.org, May 5 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=84243

------------------------------------------------------------------------
r84243 | jochen@chromium.org | Thu May 05 07:18:39 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=84243&r2=84242&pathrev=84243

Disable PPAPITest.FileRef on Mac Valgrind as it crashes valgrind

BUG=51716
TEST=none
TBR=glider@chromium.org

Review URL: http://codereview.chromium.org/6929034
------------------------------------------------------------------------
The "bszB != 0" assertion is still violated sometimes, see
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20%28valgrind%29%284%29/builds/2673/steps/memory%20test%3A%20ui_1/logs/stdio :

[----------] 1 test from ResourceDispatcherTest
[ RUN      ] ResourceDispatcherTest.DoNotSniffHTMLFromImageGIF
Started Valgrind wrapper for this test, PID=17635
--17636-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/MacOS/Chromium:
--17636-- dSYM directory is missing; consider using --dsymutil=yes
--17636-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/13.0.757.0/Chromium Framework.framework/Chromium Framework:
--17636-- dSYM directory is missing; consider using --dsymutil=yes
[17636:2823:403796056393537:ERROR:json_pref_store.cc(89)] Error while loading JSON file: File doesn't exist.
[17636:2823:403798810483355:ERROR:json_pref_store.cc(89)] Error while loading JSON file: File doesn't exist.
UNKNOWN task message [id 3413, to mach_task_self(), reply 0x903]
--17650-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/13.0.757.0/Chromium Helper.app/Contents/MacOS/Chromium Helper:
--17650-- dSYM directory is missing; consider using --dsymutil=yes
--17650-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/13.0.757.0/Chromium Framework.framework/Chromium Framework:
--17650-- dSYM directory is missing; consider using --dsymutil=yes
--17650-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/13.0.757.0/Chromium Framework.framework/Internet Plug-Ins/ppGoogleNaClPluginChrome.plugin/Contents/MacOS/ppGoogleNaClPluginChrome:
--17650-- dSYM directory is missing; consider using --dsymutil=yes
--17650-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/13.0.757.0/Chromium Framework.framework/Libraries/libffmpegsumo.dylib:
--17650-- dSYM directory is missing; consider using --dsymutil=yes
UNKNOWN task message [id 3413, to mach_task_self(), reply 0x903]
--17652-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/13.0.757.0/Chromium Helper.app/Contents/MacOS/Chromium Helper:
--17652-- dSYM directory is missing; consider using --dsymutil=yes
--17652-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/13.0.757.0/Chromium Framework.framework/Chromium Framework:
--17652-- dSYM directory is missing; consider using --dsymutil=yes
--17652-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/13.0.757.0/Chromium Framework.framework/Internet Plug-Ins/ppGoogleNaClPluginChrome.plugin/Contents/MacOS/ppGoogleNaClPluginChrome:
--17652-- dSYM directory is missing; consider using --dsymutil=yes
--17652-- /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/13.0.757.0/Chromium Framework.framework/Libraries/libffmpegsumo.dylib:
--17652-- dSYM directory is missing; consider using --dsymutil=yes

valgrind: m_mallocfree.c:226 (mk_plain_bszB): Assertion 'bszB != 0' failed.
valgrind: This is probably caused by your program erroneously writing past the
end of a heap block and corrupting heap metadata.  If you fix any
invalid writes reported by Memcheck, this assertion failure will
probably go away.  Please try that before reporting this as a bug.

==17636==    at 0x38034E05: ???
==17636==    by 0x38034FC8: ???
==17636==    by 0x38037030: ???
==17636==    by 0x3803FEA8: ???
==17636==    by 0x38002996: ???
==17636==    by 0x3800365A: ???
==17636==    by 0x3807D6C3: ???
==17636==    by 0x38076878: ???

sched status:
  running_tid=1

SessionHistoryTest.BackForward has triggered this a few times lately, adding to the exclude list as well.

Most recent failure: http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20%28valgrind%29%282%29/builds/3694/steps/memory%20test%3A%20ui/logs/stdio

[ RUN      ] SessionHistoryTest.BasicBackForward
Started Valgrind wrapper for this test, PID=40068
--40069-- /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/MacOS/Chromium:
--40069-- dSYM directory is missing; consider using --dsymutil=yes
--40069-- /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework:
--40069-- dSYM directory is missing; consider using --dsymutil=yes
UNKNOWN task message [id 3413, to mach_task_self(), reply 0x903]
--40070-- /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Helper.app/Contents/MacOS/Chromium Helper:
--40070-- dSYM directory is missing; consider using --dsymutil=yes
--40070-- /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework:
--40070-- dSYM directory is missing; consider using --dsymutil=yes
--40070-- /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Internet Plug-Ins/ppGoogleNaClPluginChrome.plugin/Contents/MacOS/ppGoogleNaClPluginChrome:
--40070-- dSYM directory is missing; consider using --dsymutil=yes
--40070-- /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Libraries/libffmpegsumo.dylib:
--40070-- dSYM directory is missing; consider using --dsymutil=yes
[40069:25091:163255152484390:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163255258308679:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163260789608680:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163260790410742:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163264745220804:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163264745657567:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163269958636917:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163269959402479:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163274150611315:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163274152072826:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163280071702750:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
[40069:25091:163280072560730:WARNING:resource_dispatcher_host.cc(1590)] Request doesn't seem to have our data
--40069-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--40069-- si_code=1;  Faulting address: 0x3DF27A34;  sp: 0xf089dda0

valgrind: the 'impossible' happened:
   Killed by fatal signal
==40069==    at 0x38036AD8: ???
==40069==    by 0x3803FEA8: ???
==40069==    by 0x38002996: ???
==40069==    by 0x38003417: ???
==40069==    by 0x3807D6C3: ???
==40069==    by 0x38076878: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==40069==    at 0x1636E: malloc_zone_free (vg_replace_malloc.c:370)
==40069==    by 0x1555AF1B: mem_heap_free (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==40069==    by 0x1555AE57: regionFinalize (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==40069==    by 0x461537: _CFRelease (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==40069==    by 0x1555AE22: CGSReleaseRegion (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==40069==    by 0xE4086D: -[NSRegion dealloc] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==40069==    by 0xE4080C: -[_NSDisplayOperation dealloc] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==40069==    by 0x461389: CFRelease (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==40069==    by 0x3F03CC: __CFArrayReleaseValues (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==40069==    by 0x3F074C: _CFArrayReplaceValues (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==40069==    by 0x1A8A7DA: -[NSCFArray removeObjectAtIndex:] (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==40069==    by 0x1AA94E6: -[NSCFArray removeLastObject] (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==40069==    by 0xE4191D: -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==40069==    by 0xD81E7A: -[NSView displayIfNeeded] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==40069==    by 0xD81A28: -[NSWindow displayIfNeeded] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==40069==    by 0xD8184B: _handleWindowNeedsDisplay (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==40069==    by 0x45D771: __CFRunLoopDoObservers (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==40069==    by 0x45EACB: CFRunLoopRunSpecific (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==40069==    by 0x45FAA7: CFRunLoopRunInMode (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==40069==    by 0x2F3B2AB: RunCurrentEventLoopInMode (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==40069==    by 0x2F3B0C4: ReceiveNextEventCommon (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==40069==    by 0x2F3AF38: BlockUntilNextEventMatchingListInMode (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==40069==    by 0xD7F6D4: _DPSNextEvent (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==40069==    by 0xD7EF87: -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==40069==    by 0xD77F9E: -[NSApplication run] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==40069==    by 0xB494867: _ZN4base24MessagePumpNSApplication5DoRunEPNS_11MessagePump8DelegateE (in /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework)
==40069==    by 0xB494AE3: _ZN4base24MessagePumpCFRunLoopBase3RunEPNS_11MessagePump8DelegateE (in /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework)
==40069==    by 0xB4C8702: _ZN11MessageLoop11RunInternalEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework)
==40069==    by 0xB4C871E: _ZN11MessageLoop10RunHandlerEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework)
==40069==    by 0xB4C8787: _ZN11MessageLoop3RunEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework)
==40069==    by 0xAC56D76: _ZN12_GLOBAL__N_116RunUIMessageLoopEP14BrowserProcess (in /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework)
==40069==    by 0xAC5A03B: _Z11BrowserMainRK18MainFunctionParams (in /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework)
==40069==    by 0xAAADB71: _ZN12_GLOBAL__N_123RunNamedProcessTypeMainERKSsRK18MainFunctionParams (in /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework)
==40069==    by 0xAAAD613: ChromeMain (in /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/14.0.805.0/Chromium Framework.framework/Chromium Framework)
==40069==    by 0x25BD: main (in /b/build/slave/chromium-rel-mac-valgrind-ui-2/build/src/xcodebuild/Release/Chromium.app/Contents/MacOS/Chromium)

Project Member Comment 52 by bugdroid1@chromium.org, Jun 27 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=90639

------------------------------------------------------------------------
r90639 | cbentzel@chromium.org | Mon Jun 27 13:56:42 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=90639&r2=90638&pathrev=90639

Adding SessionHistoryTest.BasicBackForward to OSX exclusion list.

This hit the valgrind internal error warning a few times.

BUG=51716
TEST=None
TBR=glider@chromium.org

Review URL: http://codereview.chromium.org/7275007
------------------------------------------------------------------------
Project Member Comment 53 by bugdroid1@chromium.org, Jun 28 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=90767

------------------------------------------------------------------------
r90767 | cbentzel@chromium.org | Tue Jun 28 08:24:34 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=90767&r2=90766&pathrev=90767

Disable a few more ui tests on mac valgrind.

TBR=glider@chromium.org
BUG=51716,87766
TEST=None

Review URL: http://codereview.chromium.org/7230048
------------------------------------------------------------------------
The same assertion hit in AutomatedUITestBase.OpenNewTab :
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20%28valgrind%29%283%29/builds/4250/steps/memory%20test%3A%20ui/logs/stdio

--45391-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--45391-- si_code=1;  Faulting address: 0x3E8540C0;  sp: 0xfaadfd70

valgrind: the 'impossible' happened:
   Killed by fatal signal
==45391==    at 0x38036AC2: ???
==45391==    by 0x3803FEA8: ???
==45391==    by 0x38002996: ???
==45391==    by 0x38003417: ???
==45391==    by 0x3807D6C3: ???
==45391==    by 0x38076878: ???
==45391==    by 0x38076B82: ???

The previous tests executed by this bot were LocaleTestsZhTw.TestStart and AutomationProxyTest.GetBrowserWindow
Project Member Comment 55 by bugdroid1@chromium.org, Jul 27 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=94270

------------------------------------------------------------------------
r94270 | glider@chromium.org | Wed Jul 27 04:02:44 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=94270&r2=94269&pathrev=94270
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/memcheck/suppressions.txt?r1=94270&r2=94269&pathrev=94270

Delete suppression for issue 90640 (marked as duplicate of issue 65680)
Disable AutomatedUITestBase.OpenNewTab on the Mac UI Valgrind bot (issue 51716)

TBR=timurrrr
BUG=51716,65680
Review URL: http://codereview.chromium.org/7480043
------------------------------------------------------------------------
Project Member Comment 56 by bugdroid1@chromium.org, Jul 29 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=94646

------------------------------------------------------------------------
r94646 | jochen@chromium.org | Fri Jul 29 02:07:51 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=94646&r2=94645&pathrev=94646
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/memcheck/suppressions.txt?r1=94646&r2=94645&pathrev=94646

More valgrind suppression updates

Disable most (OutOfProcess)PPAPITests on Valgrind/MAC because they crash valgrind
Suppress another leak in ChromeAppCacheService initialization

BUG=90215,51716
TEST=none
TBR=glider

Review URL: http://codereview.chromium.org/7531024
------------------------------------------------------------------------
Project Member Comment 57 by bugdroid1@chromium.org, Jul 29 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=94658

------------------------------------------------------------------------
r94658 | jochen@chromium.org | Fri Jul 29 06:19:55 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=94658&r2=94657&pathrev=94658
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/memcheck/suppressions.txt?r1=94658&r2=94657&pathrev=94658
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/memcheck/suppressions_mac.txt?r1=94658&r2=94657&pathrev=94658

More memory updates

Suppress invalid access below sql::Connection::Execute
Leak in HttpCache::CreateEntry
Widen suppression for leak beneath BrowserRenderProcessHost::Send
Invalid read in RenderWidgetHostViewMac::GetCompositingSurface
Disable more tests segfaulting valgrind on mac

BUG=90976,90973,32273,80239,51716
TEST=none
TBR=glider

Review URL: http://codereview.chromium.org/7493078
------------------------------------------------------------------------
Project Member Comment 58 by bugdroid1@chromium.org, Aug 1 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=94886

------------------------------------------------------------------------
r94886 | jochen@chromium.org | Mon Aug 01 02:10:14 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=94886&r2=94885&pathrev=94886
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/memcheck/suppressions.txt?r1=94886&r2=94885&pathrev=94886
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/heapcheck/suppressions.txt?r1=94886&r2=94885&pathrev=94886

Disable tests crashing valgrind on mac
Invalid read on ParallelAuthenticator::Resolve
Suppress leak in DownloadManager::OnPathExistenceAvailable

BUG=51716,91179,91174
TEST=none
TBR=glider

Review URL: http://codereview.chromium.org/7544013
------------------------------------------------------------------------
Project Member Comment 59 by bugdroid1@chromium.org, Aug 1 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=94890

------------------------------------------------------------------------
r94890 | jochen@chromium.org | Mon Aug 01 03:58:11 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=94890&r2=94889&pathrev=94890
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/memcheck/suppressions.txt?r1=94890&r2=94889&pathrev=94890

More valgrind gardening

Widen suppression for leak in ResourceDispatcherHost callbacks
Suppress another stack trace under gfx::CanvasSkia::SizeStringInt
Disable tests crashing valgrind on Mac

BUG=90496,70327,51716
TEST=
TBR=glider

Review URL: http://codereview.chromium.org/7538018
------------------------------------------------------------------------
Project Member Comment 60 by bugdroid1@chromium.org, Aug 1 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=94891

------------------------------------------------------------------------
r94891 | jochen@chromium.org | Mon Aug 01 04:46:33 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=94891&r2=94890&pathrev=94891

Exclude more tests crashing valgrind

BUG=51716
TEST=none
TBR=glider

Review URL: http://codereview.chromium.org/7538019
------------------------------------------------------------------------
Cc: -kasperl@chromium.org
Project Member Comment 62 by bugdroid1@chromium.org, Aug 9 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=95999

------------------------------------------------------------------------
r95999 | dhollowa@chromium.org | Tue Aug 09 08:55:59 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=95999&r2=95998&pathrev=95999

Mac Valgrind failures with UI tests

Disables failing tests on Mac Valgrind bot.

BUG=51716 92177
TEST=Tests go green on Mac Valgrind bot
TBR=glider@chromium.org

Review URL: http://codereview.chromium.org/7602018
------------------------------------------------------------------------
Project Member Comment 63 by bugdroid1@chromium.org, Aug 12 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=96485

------------------------------------------------------------------------
r96485 | thestig@chromium.org | Thu Aug 11 17:03:00 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=96485&r2=96484&pathrev=96485

Valgrind Mac: Disable more failing tests.

BUG=51716
TEST=none
TBR=jhawkins
Review URL: http://codereview.chromium.org/7634012
------------------------------------------------------------------------
Project Member Comment 64 by bugdroid1@chromium.org, Aug 12 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=96608

------------------------------------------------------------------------
r96608 | thestig@chromium.org | Fri Aug 12 13:36:32 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=96608&r2=96607&pathrev=96608
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest-tsan.txt?r1=96608&r2=96607&pathrev=96608

Valgrind / TSAN: Exclude more tests that are timing out.

BUG=51716,92717
TEST=none
TBR=jhawkins
Review URL: http://codereview.chromium.org/7633028
------------------------------------------------------------------------
Labels: -Pri-1 Pri-0
We've come to a point where we run only 1 test per shard and it fails:
http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20%28valgrind%29%281%29/builds/4516/steps/memory%20test%3A%20ui_1/logs/stdio
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from HostRulesTest
[ RUN      ] HostRulesTest.TestMap
...
--75976-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--75976-- si_code=1;  Faulting address: 0x1F6A2060;  sp: 0xfad53dfc

valgrind: the 'impossible' happened:
   Killed by fatal signal
==75976==    at 0x3803F720: ???
==75976==    by 0x38003733: ???
==75976==    by 0x3807D6C3: ???
==75976==    by 0x38076878: ???
==75976==    by 0x38076B82: ???

sched status:
  running_tid=5


Thread 5: status = VgTs_Runnable
==75976==    at 0x17044: malloc_zone_realloc (vg_replace_malloc.c:529)
==75976==    by 0x457E05: CFPropertyListCreateFromStream (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==75976==    by 0x4C9F65: +[CFXPreferencesPropertyListSource createPlistFromFile:statInfo:] (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==75976==    by 0x4C9A01: -[CFXPreferencesPropertyListSource synchronize] (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==75976==    by 0x4CAC17: CFPreferencesSynchronize (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==75976==    by 0x16F6BB9D: _CSBackupSettingsIsPathExcluded (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==75976==    by 0x16F5E14B: CSBackupIsItemExcluded (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==75976==    by 0xBF1D7F8: pager_open_journal (in /b/build/slave/chromium-rel-mac-valgrind-ui-1/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/15.0.854.0/Chromium Framework.framework/Chromium Framework)
==75976==    by 0xBF1D8CB: pager_write (in /b/build/slave/chromium-rel-mac-valgrind-ui-1/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/15.0.854.0/Chromium Framework.framework/Chromium Framework)
==75976==    by 0xBF1DBCF: sqlite3PagerWrite (in /b/build/slave/chromium-rel-mac-valgrind-ui-1/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/15.0.854.0/Chromium Framework.framework/Chromium Framework)
==75976==    by 0xBF2D151: newDatabase (in /b/build/slave/chromium-rel-mac-valgrind-ui-1/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/15.0.854.0/Chromium Framework.framework/Chromium Framework)
==75976==    by 0xBF2D480: sqlite3BtreeBeginTrans (in /b/build/slave/chromium-rel-mac-valgrind-ui-1/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/15.0.854.0/Chromium Framework.framework/Chromium Framework)
==75976==    by 0xBF4507C: sqlite3VdbeExec (in /b/build/slave/chromium-rel-mac-valgrind-ui-1/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/15.0.854.0/Chromium Framework.framework/Chromium Framework)
==75976==    by 0xBF48CEA: sqlite3Step (in /b/build/slave/chromium-rel-mac-valgrind-ui-1/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/15.0.854.0/Chromium Framework.framework/Chromium Framework)
==75976==    by 0xBF3F13F: sqlite3_step (in /b/build/slave/chromium-rel-mac-valgrind-ui-1/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/15.0.854.0/Chromium Framework.framework/Chromium Framework)

...

http://build.chromium.org/p/chromium.memory/builders/Chromium%20Mac%20UI%20%28valgrind%29%284%29/builds/5017/steps/memory%20test%3A%20ui/logs/stdio
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from WorkerFileSystemTest
[ RUN      ] WorkerFileSystemTest.FileFromFileEntrySync
...
--61189-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--61189-- si_code=1;  Faulting address: 0x62207461;  sp: 0xf089dc34

valgrind: the 'impossible' happened:
   Killed by fatal signal
==61189==    at 0x3803F31A: ???
==61189==    by 0x38034F77: ???
==61189==    by 0x72742064: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==61189==    at 0x163FD: free (vg_replace_malloc.c:366)
==61189==    by 0x7DCA0D: inflateEnd (in /usr/lib/libz.1.2.3.dylib)
==61189==    by 0x1820FF35: png_read_destroy (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib)
==61189==    by 0x1820FC2A: _cg_png_destroy_read_struct (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib)
==61189==    by 0x3981586: getBandProcPNG (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO)
==61189==    by 0x39EF0B2: faultData_cb (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO)
==61189==    by 0x16878320: faultDataAcquireBytePointer (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==61189==    by 0x1667000A: CGAccessSessionGetBytePointer (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==61189==    by 0x1666F923: img_decode_read (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==61189==    by 0x1666F7B2: img_colormatch_read (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==61189==    by 0x1666F5D7: img_alphamerge_read (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==61189==    by 0x1666D0EC: img_data_lock (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==61189==    by 0x1666B178: CGSImageDataLock (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==61189==    by 0x1EF495E2: ripc_AcquireImage (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib)
==61189==    by 0x1EF323FB: ripc_DrawImages (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib)
==61189==    by 0x1669301C: CGContextDrawImages (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==61189==    by 0x364FC9D: _ZN11CUIRenderer19DrawWindowFrameDarkEPK10CUIContext (in /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI)
==61189==    by 0x366319D: _ZN11CUIRenderer4DrawE6CGRectP9CGContextPK14__CFDictionaryPS5_ (in /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI)
==61189==    by 0xE4AE4E: _NSDrawThemeBackground (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xE87B32: -[NSGrayFrame drawWindowBackgroundRegion:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xDB2CC8: -[NSFrameView drawThemeContentFill:inView:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xE6F7F5: -[NSGrayFrame drawRect:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xBA83BCC: -[BrowserFrameView drawRect:] (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/15.0.854.0/Chromium Framework.framework/Chromium Framework)
==61189==    by 0xE47BF7: -[NSView _drawRect:clip:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xE466EE: -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xE45044: -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xE44986: -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xE414AA: -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xD81E7A: -[NSView displayIfNeeded] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xD81A28: -[NSWindow displayIfNeeded] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xE3D602: -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xE3D05B: -[NSWindow orderWindow:relativeTo:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xE049E9: -[NSWindow makeKeyAndOrderFront:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==61189==    by 0xBA861D2: _ZN18BrowserWindowCocoa4ShowEv (in /b/build/slave/chromium-rel-mac-valgrind-ui-4/build/src/xcodebuild/Release/Chromium.app/Contents/Versions/15.0.854.0/Chromium Framework.framework/Chromium Framework)
Project Member Comment 66 by bugdroid1@chromium.org, Aug 15 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=96762

------------------------------------------------------------------------
r96762 | timurrrr@chromium.org | Mon Aug 15 05:06:08 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=96762&r2=96761&pathrev=96762

Exclude a couple of more UI tests failing on Valgrind/Mac
TBR=glider
BUG=51716
Review URL: http://codereview.chromium.org/7649014
------------------------------------------------------------------------
Project Member Comment 67 by bugdroid1@chromium.org, Aug 18 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=97295

------------------------------------------------------------------------
r97295 | timurrrr@chromium.org | Thu Aug 18 02:43:24 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=97295&r2=97294&pathrev=97295

Exclude a couple of more Mac UI test failing on SIGSEGV assertion
BUG=51716
TBR=glider
Review URL: http://codereview.chromium.org/7670062
------------------------------------------------------------------------
Project Member Comment 68 by bugdroid1@chromium.org, Aug 26 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=98481

------------------------------------------------------------------------
r98481 | oshima@google.com | Fri Aug 26 13:44:24 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=98481&r2=98480&pathrev=98481

Excluding test failing with 'impossible happened' error

TBR=glider@chromium.org
BUG=51716
TEST=none

Review URL: http://codereview.chromium.org/7765004
------------------------------------------------------------------------
Comment 69 by mal@google.com, Sep 8 2011
Labels: Stability-CodeYellow
Blocking: 95880
Project Member Comment 71 by bugdroid1@chromium.org, Sep 9 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=100379

------------------------------------------------------------------------
r100379 | glider@chromium.org | Fri Sep 09 02:23:49 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=100379&r2=100378&pathrev=100379

Enable AutomationProxyTest.* under Valgrind on Mac to see what happens.

BUG=51716,95880
TBR=timurrrr
Review URL: http://codereview.chromium.org/7861021
------------------------------------------------------------------------
Project Member Comment 72 by bugdroid1@chromium.org, Sep 9 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=100399

------------------------------------------------------------------------
r100399 | glider@chromium.org | Fri Sep 09 06:19:10 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=100399&r2=100398&pathrev=100399

Disable the ui_tests back not to confuse people with red bots on the weekend.

TBR=timurrrr
BUG=51716,95880
Review URL: http://codereview.chromium.org/7861022
------------------------------------------------------------------------
Cc: -bauerb@chromium.org
Cc: brettw@chromium.org
Issue 79784 has been merged into this issue.
Project Member Comment 75 by bugdroid1@chromium.org, Dec 7 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=113420

------------------------------------------------------------------------
r113420 | cbentzel@chromium.org | Wed Dec 07 10:47:39 PST 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=113420&r2=113419&pathrev=113420

Exclude all PPAPITest and OutOfProcessTest's on Mac Valgrind bots.

BUG=104535,75249,51716
TBR=timurrrr@chromium.org

Review URL: http://codereview.chromium.org/8853001
------------------------------------------------------------------------
This has started happening independent of the test being run.  It started on two builders.  Here are the details:

http://chromegw.corp.google.com/i/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%281%29/builds/3755/steps/memory%20test%3A%20unit_1/logs/stdio

http://chromegw.corp.google.com/i/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%281%29/builds/3755/steps/memory%20test%3A%20unit/logs/stdio

http://chromegw.corp.google.com/i/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%282%29/builds/3839/steps/memory%20test%3A%20unit_1/logs/stdio

http://chromegw.corp.google.com/i/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%282%29/builds/3839/steps/memory%20test%3A%20unit/logs/stdio

It started on or around build 3741:
http://chromegw.corp.google.com/i/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%281%29/builds/3741

The latest revision at the time was r115959.


bash /b/build/slave/chromium-dbg-mac-valgrind-1/build/src/xcodebuild/Release/../../../src/tools/valgrind/chrome_tests.sh --build_dir src/xcodebuild/Release --test unit --tool memcheck ""
Using valgrind binaries from /b/build/slave/chromium-dbg-mac-valgrind-1/build/src/xcodebuild/Release/../../../src/tools/valgrind/../../third_party/valgrind/mac
15:29:58 chrome_tests.py [INFO] running test unit
15:29:58 chrome_tests.py [INFO] Reading gtest exclude filter files:
15:29:58 chrome_tests.py [INFO]   "tools/valgrind/gtest_exclude/unit_tests.gtest-memcheck.txt" - not found
15:29:58 chrome_tests.py [INFO]   "tools/valgrind/gtest_exclude/unit_tests.gtest.txt" - OK
15:29:58 chrome_tests.py [INFO]   "tools/valgrind/gtest_exclude/unit_tests.gtest_mac.txt" - OK
15:29:58 chrome_tests.py [INFO]   "tools/valgrind/gtest_exclude/unit_tests.gtest-memcheck_mac.txt" - not found
15:29:58 valgrind_test.py [INFO] No real .dSYM for test_command.  Line numbers will not be shown.  Either tell xcode to generate .dSYM file, or use --generate_dsym option to this tool.
15:29:58 valgrind_test.py [INFO] starting execution...
15:29:58 common.py [INFO] export GTEST_DEATH_TEST_USE_FORK=1
15:29:58 common.py [INFO] export G_SLICE=always-malloc
15:29:58 common.py [INFO] export NSS_DISABLE_ARENA_FREE_LIST=1
15:29:58 common.py [INFO] export NSS_DISABLE_UNLOAD=1
15:29:58 common.py [INFO] running valgrind --tool=memcheck --num-callers=30 --gen-suppressions=all --demangle=no --leak-check=yes --show-possibly-lost=no --smc-check=all --suppressions=/b/build/slave/chromium-dbg-mac-valgrind-1/build/src/tools/valgrind/memcheck/suppressions.txt --suppressions=/b/build/slave/chromium-dbg-mac-valgrind-1/build/src/tools/valgrind/memcheck/suppressions_mac.txt --xml=yes --xml-file=/tmp/vg_logs_hsenmc/memcheck.%p src/xcodebuild/Release/unit_tests --gtest_print_time --gtest_filter=-BalloonControllerTest.FLAKY_ShowAndCloseTest:P2PTransportImplTest.FAILS_SendDataTcp:BalloonControllerTest.FAILS_SizesTest:ConnectionTesterTest.FLAKY_DeleteWhileInProgress:WebDropTargetTest.FAILS_URL:NSMenuItemAdditionsTest.TestMOnDifferentLayouts:P2PTransportImplTest.Create:P2PTransportImplTest.FLAKY_SendDataUdp:VisitedLinkRelayTest.Basics:ConnectionTesterTest.FLAKY_RunAllTests:WebDropTargetTest.FLAKY_Data:SignedSettingsTest.FLAKY_StorePolicyNoPolicyData:ConnectionTesterTest.FAILS_RunAllTests:PredictorTest.FAILS_MassiveConcurrentLookupTest:P2PTransportImplTest.FAILS_ConnectTcp:RenderViewTest.ImeComposition:FirefoxImporterTest.FLAKY_Firefox3NSS3Decryptor:BalloonControllerTest.FLAKY_SizesTest:FirefoxImporterTest.FAILS_Firefox3NSS3Decryptor:ConnectionTesterTest.DeleteWhileInProgress:ProcessInfoSnapshotMacTest.EffectiveVsRealUserIDTest:VisitedLinkEventsTest.FLAKY_Coalescense:BalloonControllerTest.SizesTest:P2PTransportImplTest.FLAKY_SendDataTcp:P2PTransportImplTest.FAILS_ConnectUdp:BalloonControllerTest.ShowAndCloseTest:ProcessWatcherTest.FLAKY_ImmediateTermination:P2PTransportImplTest.FAILS_Create:ProcessWatcherTest.ImmediateTermination:P2PTransportImplTest.ConnectUdp:RenderViewTest.FLAKY_ImeComposition:P2PTransportImplTest.FLAKY_ConnectUdp:RenderViewTest.FAILS_ImeComposition:P2PTransportImplTest.ConnectTcp:SignedSettingsTest.StorePolicyNoPolicyData:FileSystemURLRequestJobTest.*:ProcessInfoSnapshotMacTest.FLAKY_EffectiveVsRealUserIDTest:VisitedLinkRelayTest.FAILS_Basics:PredictorTest.FLAKY_MassiveConcurrentLookupTest:BalloonControllerTest.FAILS_ShowAndCloseTest:WebDropTargetTest.FLAKY_URL:VisitedLinkEventsTest.FAILS_Coalescense:BookmarkBarControllerTest.DeleteFromOffTheSideWhileItIsOpen:VisitedLinkEventsTest.Coalescense:MacSandboxTest.FLAKY_FileAccess:ProcessInfoSnapshotMacTest.FAILS_EffectiveVsRealUserIDTest:P2PTransportImplTest.FLAKY_ConnectTcp:P2PTransportImplTest.SendDataTcp:MacSandboxTest.FileAccess:P2PTransportImplTest.FLAKY_Create:FileSystemDirURLRequestJobTest.*:P2PTransportImplTest.FAILS_SendDataUdp:MacSandboxTest.FAILS_FileAccess:WebDropTargetTest.Data:BookmarkBarControllerTest.FAILS_DeleteFromOffTheSideWhileItIsOpen:PredictorTest.MassiveConcurrentLookupTest:FirefoxImporterTest.Firefox3NSS3Decryptor:NSMenuItemAdditionsTest.FLAKY_TestMOnDifferentLayouts:GeolocationWifiDataProviderCommonTest.*:BookmarkBarControllerTest.FLAKY_DeleteFromOffTheSideWhileItIsOpen:WebDropTargetTest.FAILS_Data:VisitedLinkRelayTest.FLAKY_Basics:ConnectionTesterTest.RunAllTests:IPCSyncChannelTest.*:P2PTransportImplTest.SendDataUdp:WebDropTargetTest.URL:ConnectionTesterTest.FAILS_DeleteWhileInProgress:ProcessWatcherTest.FAILS_ImmediateTermination:NSMenuItemAdditionsTest.FAILS_TestMOnDifferentLayouts:SignedSettingsTest.FAILS_StorePolicyNoPolicyData:FileSystemOperationWriteTest.*, timeout 10000 sec
15:29:58 common.py [INFO] started subprocess
--2105-- src/xcodebuild/Release/unit_tests:
--2105-- dSYM directory is missing; consider using --dsymutil=yes
--2105-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--2105-- si_code=1;  Faulting address: 0x726F7065;  sp: 0xf3bbcb24

valgrind: the 'impossible' happened:
   Killed by fatal signal
==2105==    at 0x3802BB4A: ???
==2105==    by 0x3802CCC7: ???
==2105==    by 0x6F666561: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==2105==    at 0xED0E8E2: _Znam (vg_replace_malloc.c:360)
==2105==    by 0x3E75: _ZN7testing8internal6String16ConstructNonNullEPKcm (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x11AE8: _ZN7testing8internal6StringC2EPKc (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x116E9: _ZN7testing8internal6StringaSEPKc (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x1A4B967: _ZN7testing8internal15UnitTestOptions17FilterMatchesTestERKNS0_6StringES4_ (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x1A52B51: _ZN7testing8internal12UnitTestImpl11FilterTestsENS1_18ReactionToShardingE (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x1A5231C: _ZN7testing8internal12UnitTestImpl11RunAllTestsEv (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x1A57CAE: _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x1A54E9A: _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x1A52263: _ZN7testing8UnitTest3RunEv (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x39D7019: _ZN4base9TestSuite3RunEv (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x3A0C3C8: _ZN17UnitTestTestSuite3RunEv (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x1AA8372: main (in src/xcodebuild/Release/unit_tests)

Thread 2: status = VgTs_WaitSys
==2105==    at 0xED221A2: semaphore_wait_trap (in /usr/lib/libSystem.B.dylib)
==2105==    by 0x229E78F: _ZN2v88internal15RuntimeProfiler27WaitForSomeIsolateToEnterJSEv (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x229E857: _ZN2v88internal26RuntimeProfilerRateLimiter18SuspendIfNecessaryEv (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x237B93A: _ZN2v88internal13SamplerThread3RunEv (in src/xcodebuild/Release/unit_tests)
==2105==    by 0x237B19E: _ZN2v88internalL11ThreadEntryEPv (in src/xcodebuild/Release/unit_tests)
==2105==    by 0xED53054: _pthread_start (in /usr/lib/libSystem.B.dylib)
==2105==    by 0xED52F11: thread_start (in /usr/lib/libSystem.B.dylib)

Wow, perfect reproducer. I'll take a look this week, hope to see that locally.
Cc: csharp@chromium.org
I've tried reproducing the problem last week, but didn't have any success neither locally nor on the bot.
The only option was to ssh to the bot and attach to the failing test where the following crash stack was observed:


Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x17302300
0xf584da60 in ?? ()
(gdb) bt
#0  0xf584da60 in ?? ()
#1  0xf3cbcf58 in ?? ()
#2  0x0168b589 in NTPLoginHandler::~NTPLoginHandler ()
Cannot access memory at address 0x3b8bc68d
(gdb) info threads
  2 process 39913 thread 0x2403  0x380c68e0 in ?? ()
* 1 process 39913 thread 0xb07  0xf584da60 in ?? ()
(gdb) thread 2
[Switching to thread 2 (process 39913 thread 0x2403)]
0x380c68e0 in ?? ()
(gdb) bt
#0  0x380c68e0 in ?? ()
#1  0x023971b4 in v8::internal::MacOSSemaphore::Wait ()
Previous frame inner to this frame (gdb could not unwind past this frame)

Up to http://chromegw.corp.google.com/i/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%281%29/builds/4101/steps/memory%20test%3A%20unit/logs/stdio the "impossible happened" crash occurred every time, but it then disappeared starting http://chromegw.corp.google.com/i/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%281%29/builds/4102/steps/memory%20test%3A%20unit/logs/stdio

The blamelist for build 4102 was r117642 by csharp@chromium.org.

Chris, can you comment on this? Could it be that the whole unit_tests binary crashed before your change and stopped doing so right after that? 
Comment 79 by csharp@google.com, Jan 18 2012
I'm afraid that I have no idea why my code caused this change. That change was to fix a bug I had introduced in r114083, which was submitted around mid-December so I don't see any relation from that code to this bug, sorry :(
Cc: scottbyer@chromium.org
FTR, yesterday I've landed a bugfix for Mach-O loader made by Scott Byer (https://bugs.kde.org/show_bug.cgi?id=289470)
This didn't fire on 10.5 and 10.6, but it looks scary.
The "impossible" reports are here again, starting at http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%282%29/builds/4383 and http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%281%29/builds/4265

Using valgrind binaries from /b/build/slave/chromium-dbg-mac-valgrind-2/build/src/xcodebuild/Release/../../../src/tools/valgrind/../../third_party/valgrind/mac
22:04:49 chrome_tests.py [INFO] running test unit
22:04:49 chrome_tests.py [INFO] Reading gtest exclude filter files:
22:04:49 chrome_tests.py [INFO]   "tools/valgrind/gtest_exclude/unit_tests.gtest-memcheck.txt" - not found
22:04:49 chrome_tests.py [INFO]   "tools/valgrind/gtest_exclude/unit_tests.gtest.txt" - OK
22:04:49 chrome_tests.py [INFO]   "tools/valgrind/gtest_exclude/unit_tests.gtest_mac.txt" - OK
22:04:49 chrome_tests.py [INFO]   "tools/valgrind/gtest_exclude/unit_tests.gtest-memcheck_mac.txt" - not found
22:04:49 valgrind_test.py [INFO] No real .dSYM for test_command.  Line numbers will not be shown.  Either tell xcode to generate .dSYM file, or use --generate_dsym option to this tool.
22:04:49 valgrind_test.py [INFO] starting execution...
22:04:49 common.py [INFO] export GTEST_DEATH_TEST_USE_FORK=1
22:04:49 common.py [INFO] export G_SLICE=always-malloc
22:04:49 common.py [INFO] export NSS_DISABLE_ARENA_FREE_LIST=1
22:04:49 common.py [INFO] export NSS_DISABLE_UNLOAD=1
22:04:49 common.py [INFO] running valgrind --tool=memcheck --num-callers=30 --gen-suppressions=all --demangle=no --leak-check=yes --show-possibly-lost=no --smc-check=all --suppressions=/b/build/slave/chromium-dbg-mac-valgrind-2/build/src/tools/valgrind/memcheck/suppressions.txt --suppressions=/b/build/slave/chromium-dbg-mac-valgrind-2/build/src/tools/valgrind/memcheck/suppressions_mac.txt --xml=yes --xml-file=/tmp/vg_logs_0OrM_Y/memcheck.%p src/xcodebuild/Release/unit_tests --gtest_print_time --gtest_filter=-BalloonControllerTest.FLAKY_ShowAndCloseTest:P2PTransportImplTest.FAILS_SendDataTcp:BalloonControllerTest.FAILS_SizesTest:ConnectionTesterTest.FLAKY_DeleteWhileInProgress:WebDropTargetTest.FAILS_URL:NSMenuItemAdditionsTest.TestMOnDifferentLayouts:BookmarkBarControllerTest.FLAKY_HideWhenShowBookmarkBarFalse:P2PTransportImplTest.Create:P2PTransportImplTest.FLAKY_SendDataUdp:VisitedLinkRelayTest.Basics:ConnectionTesterTest.FLAKY_RunAllTests:WebDropTargetTest.FLAKY_Data:BookmarkBarControllerTest.HideWhenShowBookmarkBarFalse:SignedSettingsTest.FLAKY_StorePolicyNoPolicyData:ConnectionTesterTest.FAILS_RunAllTests:PredictorTest.FAILS_MassiveConcurrentLookupTest:P2PTransportImplTest.FAILS_ConnectTcp:RenderViewTest.ImeComposition:FirefoxImporterTest.FLAKY_Firefox3NSS3Decryptor:BookmarkBarControllerTest.FAILS_HideWhenShowBookmarkBarFalse:FirefoxImporterTest.FAILS_Firefox3NSS3Decryptor:ConnectionTesterTest.DeleteWhileInProgress:ProcessInfoSnapshotMacTest.EffectiveVsRealUserIDTest:VisitedLinkEventsTest.FLAKY_Coalescense:BalloonControllerTest.SizesTest:P2PTransportImplTest.FLAKY_SendDataTcp:P2PTransportImplTest.FAILS_ConnectUdp:BalloonControllerTest.ShowAndCloseTest:ProcessWatcherTest.FLAKY_ImmediateTermination:P2PTransportImplTest.FAILS_Create:ProcessWatcherTest.ImmediateTermination:P2PTransportImplTest.ConnectUdp:RenderViewTest.FLAKY_ImeComposition:P2PTransportImplTest.FLAKY_ConnectUdp:RenderViewTest.FAILS_ImeComposition:P2PTransportImplTest.ConnectTcp:SignedSettingsTest.StorePolicyNoPolicyData:FileSystemURLRequestJobTest.*:ProcessInfoSnapshotMacTest.FLAKY_EffectiveVsRealUserIDTest:VisitedLinkRelayTest.FAILS_Basics:PredictorTest.FLAKY_MassiveConcurrentLookupTest:BalloonControllerTest.FAILS_ShowAndCloseTest:WebDropTargetTest.FLAKY_URL:VisitedLinkEventsTest.FAILS_Coalescense:BookmarkBarControllerTest.DeleteFromOffTheSideWhileItIsOpen:VisitedLinkEventsTest.Coalescense:BookmarkBarControllerTest.FLAKY_HideWhenShowBookmarkBarTrueButDisabled:BalloonControllerTest.FLAKY_SizesTest:MacSandboxTest.FLAKY_FileAccess:ProcessInfoSnapshotMacTest.FAILS_EffectiveVsRealUserIDTest:P2PTransportImplTest.FLAKY_ConnectTcp:P2PTransportImplTest.SendDataTcp:MacSandboxTest.FileAccess:P2PTransportImplTest.FLAKY_Create:FileSystemDirURLRequestJobTest.*:P2PTransportImplTest.FAILS_SendDataUdp:BookmarkBarControllerTest.FAILS_HideWhenShowBookmarkBarTrueButDisabled:MacSandboxTest.FAILS_FileAccess:WebDropTargetTest.Data:BookmarkBarControllerTest.FAILS_DeleteFromOffTheSideWhileItIsOpen:PredictorTest.MassiveConcurrentLookupTest:FirefoxImporterTest.Firefox3NSS3Decryptor:NSMenuItemAdditionsTest.FLAKY_TestMOnDifferentLayouts:BookmarkBarControllerTest.HideWhenShowBookmarkBarTrueButDisabled:BookmarkBarControllerTest.FLAKY_DeleteFromOffTheSideWhileItIsOpen:WebDropTargetTest.FAILS_Data:VisitedLinkRelayTest.FLAKY_Basics:GeolocationWifiDataProviderCommonTest.*:ConnectionTesterTest.RunAllTests:IPCSyncChannelTest.*:P2PTransportImplTest.SendDataUdp:WebDropTargetTest.URL:ConnectionTesterTest.FAILS_DeleteWhileInProgress:ProcessWatcherTest.FAILS_ImmediateTermination:NSMenuItemAdditionsTest.FAILS_TestMOnDifferentLayouts:SignedSettingsTest.FAILS_StorePolicyNoPolicyData:FileSystemOperationWriteTest.*, timeout 10000 sec
22:04:49 common.py [INFO] started subprocess
--42768-- src/xcodebuild/Release/unit_tests:
--42768-- dSYM directory is missing; consider using --dsymutil=yes
--42768-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--42768-- si_code=1;  Faulting address: 0x726F7065;  sp: 0xf3cbcb24

valgrind: the 'impossible' happened:
   Killed by fatal signal
==42768==    at 0x3802BB2A: ???
==42768==    by 0x3802CCA7: ???
==42768==    by 0x6F666561: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==42768==    at 0xF5698E2: _Znam (vg_replace_malloc.c:360)
==42768==    by 0x46C5: _ZN7testing8internal6String16ConstructNonNullEPKcm (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x12938: _ZN7testing8internal6StringC2EPKc (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x12539: _ZN7testing8internal6StringaSEPKc (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x1A80A37: _ZN7testing8internal15UnitTestOptions17FilterMatchesTestERKNS0_6StringES4_ (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x1A87C14: _ZN7testing8internal12UnitTestImpl11FilterTestsENS1_18ReactionToShardingE (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x1A873EC: _ZN7testing8internal12UnitTestImpl11RunAllTestsEv (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x1A8CD7E: _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x1A89F4A: _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x1A87333: _ZN7testing8UnitTest3RunEv (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x3C692D9: _ZN4base9TestSuite3RunEv (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x3CA6448: _ZN17UnitTestTestSuite3RunEv (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x1ADC5C2: main (in src/xcodebuild/Release/unit_tests)

Thread 2: status = VgTs_WaitSys
==42768==    at 0xF57D1A2: semaphore_wait_trap (in /usr/lib/libSystem.B.dylib)
==42768==    by 0x22E849F: _ZN2v88internal15RuntimeProfiler27WaitForSomeIsolateToEnterJSEv (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x22E8567: _ZN2v88internal26RuntimeProfilerRateLimiter18SuspendIfNecessaryEv (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x23C6CCA: _ZN2v88internal13SamplerThread3RunEv (in src/xcodebuild/Release/unit_tests)
==42768==    by 0x23C652E: _ZN2v88internalL11ThreadEntryEPv (in src/xcodebuild/Release/unit_tests)
==42768==    by 0xF5AE054: _pthread_start (in /usr/lib/libSystem.B.dylib)
==42768==    by 0xF5ADF11: thread_start (in /usr/lib/libSystem.B.dylib)

Both bots were triggered by the same blamelist: r118992 to r119010

I haven't noticed that before, but the top frames of the crash stack most probably denote a heap corruption.
I've experimented with Valgrind a bit and it seems that I can't corrupt the heap without triggering an "unaddressable" error.
However, if the error is suppressed, it won't appear in the log immediately, and Valgrind does not show the suppression counts upon a crash.

I'm going to make Valgrind print the name of every used suppression and turn this functionality on Mac bots by default. We'll see the names of potential heap corruption errors when the crash happens again.
Cc: zhaoqin@chromium.org
Alexander,

Please don't do it that rude as some Valgrind bots have thousands of matched suppressions -> that might dramatically increase the size of stdio logs and the load on the master-side log processing.

What you suggest [print matched suppressions on the fly] is basically a hack, right?
And it's possible to utilize the hack without commiting the hacked binaries into SVN - just use a different CHROME_VALGRIND pointing to your hacked binary :)
[assuming you can reliably reproduce the unit_tests crashes on the bot]

btw, nice idea looking at the used unaddr suppressions on the fly - looking forward for the progress!

[+Qin so he's aware of the Mac/unit_tests problems]
I've rolled a binary that prints the used suppressions to one of Mac bots (mini134-m1) and it turns out that none of the known errors are reported before the crash. To make sure, I've disabled the XML output and commented out all the suppressions in tools/valgrind/memcheck/suppressions{,_mac}.txt -- the crash report still contained nothing but the thread stacks mentioned above.

The next step to do is to increase the redzone size per Julian Seward's advice.
I've experimented with different redzone sizes, but none of them helped. Sometimes the crash was delayed and even disappeared, but there never were any relevant error reports.
Giving up for today and reverting the local changes on the bot.
FTR, the bot got fixed again.
http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%281%29/builds/4434 -- blamelist is r119681:r119685

http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Mac%20%28valgrind%29%282%29/builds/4533 -- blamelist is r119664:r119665
Some instance of this bug is reported by the mac_valgrind trybot running Mac OS 10.6:
http://build.chromium.org/p/tryserver.chromium/builders/mac_valgrind/builds/171/steps/memory%20test%3A%20unit/logs/stdio

[----------] 1 test from BookmarkAllTabsControllerTest
[ RUN      ] BookmarkAllTabsControllerTest.BookmarkAllTabs

Memcheck: the 'impossible' happened:
   create_MC_Chunk: shadow area is accessible
==34144==    at 0x3802C1A5: ???
==34144==    by 0x3802C20B: ???
==34144==    by 0x3802C23F: ???
==34144==    by 0x3800360E: ???
==34144==    by 0x38003B49: ???
==34144==    by 0x38004024: ???
==34144==    by 0x380719A7: ???
==34144==    by 0x380738E0: ???
==34144==    by 0x380987D8: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==34144==    at 0xFA2167D: malloc_zone_malloc (vg_replace_malloc.c:267)
==34144==    by 0x109E3922: _CFRuntimeCreateInstance (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==34144==    by 0x109E6104: __CFStringCreateImmutableFunnel3 (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==34144==    by 0x109EF50D: CFStringCreateWithBytes (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==34144==    by 0x12D55944: CGSColorProfileCreateWithColorProfileID (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==34144==    by 0x12D6DB91: _CGSWindowColorProfile (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==34144==    by 0x12D70184: CGSCreateWindowColorProfileDevice (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==34144==    by 0x12D70007: CGWindowColorTransformCreate (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==34144==    by 0x5CC6847F: __CGWindowContextDelegateCreate (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib)
==34144==    by 0x12D6EB08: CGWindowContextCreate (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==34144==    by 0x12E74D4C: createTopShadowWindow (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==34144==    by 0x12E723C5: MetalSheetProgress (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==34144==    by 0xFE81C2D: -[NSMoveHelper _stopAnimation] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==34144==    by 0xFE80B66: -[NSMoveHelper _doAnimation] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==34144==    by 0xFE7E3A1: -[NSMoveHelper(NSSheets) _moveParent:andOpenSheet:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==34144==    by 0xFE7DCF2: -[NSWindow(NSSheets) _orderFrontRelativeToWindow:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==34144==    by 0xFC9D6E9: -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==34144==    by 0xFE78CCA: -[NSApplication _orderFrontModalWindow:relativeToWindow:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==34144==    by 0xFE7869D: -[NSApplication _commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndSelector:contextInfo:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==34144==    by 0x1690133: -[BookmarkEditorBaseController runAsModalSheet] (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0xAE25A7: _ZN29BookmarkAllTabsControllerTest5SetUpEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1BE20AE: _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1BDD82A: _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1BD83B0: _ZN7testing4Test3RunEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1BD864D: _ZN7testing8TestInfo3RunEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1BD8943: _ZN7testing8TestCase3RunEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1BDB703: _ZN7testing8internal12UnitTestImpl11RunAllTestsEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1BE13AE: _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1BDE37A: _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1BDB4E3: _ZN7testing8UnitTest3RunEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x3F8F059: _ZN4base9TestSuite3RunEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x3FD08D8: _ZN17UnitTestTestSuite3RunEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1C35202: main (in src/xcodebuild/Debug/unit_tests)

Thread 2: status = VgTs_WaitSys
==34144==    at 0xFA5C382: kevent (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA5BF58: _dispatch_queue_invoke (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA5BCFD: _dispatch_worker_thread2 (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA5B780: _pthread_wqthread (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA5B5C5: start_wqthread (in /usr/lib/libSystem.B.dylib)

Thread 3: status = VgTs_WaitSys
==34144==    at 0xFA35B36: semaphore_wait_trap (in /usr/lib/libSystem.B.dylib)
==34144==    by 0x2488D2F: _ZN2v88internal15RuntimeProfiler27WaitForSomeIsolateToEnterJSEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x2488DF7: _ZN2v88internal26RuntimeProfilerRateLimiter18SuspendIfNecessaryEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x256A86A: _ZN2v88internal13SamplerThread3RunEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x2569FDE: _ZN2v88internalL11ThreadEntryEPv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0xFA63258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA630DD: thread_start (in /usr/lib/libSystem.B.dylib)

Thread 4: status = VgTs_WaitSys
==34144==    at 0xFA63AA2: __semwait_signal (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA653F7: pthread_cond_wait$UNIX2003 (in /usr/lib/libSystem.B.dylib)
==34144==    by 0x2098D9D: _ZN4base17ConditionVariable4WaitEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x20999D0: _ZN4base13WaitableEvent9TimedWaitERKNS_9TimeDeltaE (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x209981C: _ZN4base13WaitableEvent4WaitEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x20700FF: _ZN4base18MessagePumpDefault3RunEPNS_11MessagePump8DelegateE (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x2069421: _ZN11MessageLoop11RunInternalEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x2068DF0: _ZN11MessageLoop10RunHandlerEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x2068DA1: _ZN11MessageLoop3RunEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x20AD560: _ZN4base6Thread3RunEP11MessageLoop (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x20AD64A: _ZN4base6Thread10ThreadMainEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x20A6B1E: _ZN4base12_GLOBAL__N_110ThreadFuncEPv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0xFA63258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA630DD: thread_start (in /usr/lib/libSystem.B.dylib)

Thread 5: status = VgTs_WaitSys
==34144==    at 0xFA63AA2: __semwait_signal (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA653F7: pthread_cond_wait$UNIX2003 (in /usr/lib/libSystem.B.dylib)
==34144==    by 0x2098D9D: _ZN4base17ConditionVariable4WaitEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1E80747: _ZN7leveldb12_GLOBAL__N_111ChromiumEnv8BGThreadEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1E8021D: _ZN7leveldb12_GLOBAL__N_111ChromiumEnv15BGThreadWrapperEPv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x1E801F0: _ZN7leveldb12_GLOBAL__N_16Thread10ThreadMainEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x20A6B1E: _ZN4base12_GLOBAL__N_110ThreadFuncEPv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0xFA63258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA630DD: thread_start (in /usr/lib/libSystem.B.dylib)

Thread 8: status = VgTs_WaitSys
==34144==    at 0xFA63AA2: __semwait_signal (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA632B0: pthread_cond_timedwait$UNIX2003 (in /usr/lib/libSystem.B.dylib)
==34144==    by 0x2098F4D: _ZN4base17ConditionVariable9TimedWaitERKNS_9TimeDeltaE (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x20AF5B4: _ZN4base22PosixDynamicThreadPool11WaitForTaskEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x20AFAB9: _ZN4base12_GLOBAL__N_112WorkerThread10ThreadMainEv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0x20A6B1E: _ZN4base12_GLOBAL__N_110ThreadFuncEPv (in src/xcodebuild/Debug/unit_tests)
==34144==    by 0xFA63258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==34144==    by 0xFA630DD: thread_start (in /usr/lib/libSystem.B.dylib)


Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what OS and version you are using.  Thanks.

04:51:19 common.py [INFO] process ended, did not time out
04:51:19 common.py [INFO] collecting result code
04:51:19 common.py [ERROR] valgrind exited with non-zero result code 1
Project Member Comment 88 by bugdroid1@chromium.org, Jan 31 2012
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=119975

------------------------------------------------------------------------
r119975 | bradchen@google.com | Tue Jan 31 14:34:57 PST 2012

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/unit_tests.gtest_mac.txt?r1=119975&r2=119974&pathrev=119975

Disabling all unit tests on Mac due to Valgrind problems with unit tests.

BUG=51716
TEST=valgrind mac bots

Review URL: https://chromiumcodereview.appspot.com/9314011
------------------------------------------------------------------------
Project Member Comment 89 by bugdroid1@chromium.org, Feb 1 2012
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=120039

------------------------------------------------------------------------
r120039 | bradchen@google.com | Tue Jan 31 21:34:04 PST 2012

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/unit_tests.gtest_mac.txt?r1=120039&r2=120038&pathrev=120039
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/chrome_tests.py?r1=120039&r2=120038&pathrev=120039

Disable unit_tests for memcheck/Mac by checking in chrome_tests.py

Undo attempt to disable from unit_tests.gtest_mac.txt as it didn't solve the problem.

BUG=51716
TEST=Chromium Mac (Valgrind)(1) bot

Review URL: https://chromiumcodereview.appspot.com/9316020
------------------------------------------------------------------------
Project Member Comment 90 by bugdroid1@chromium.org, Feb 3 2012
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=120296

------------------------------------------------------------------------
r120296 | glider@chromium.org | Fri Feb 03 00:26:58 PST 2012

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/tools/build/masters/master.chromium.memory.fyi/master.cfg?r1=120296&r2=120295&pathrev=120296

CrOS: disable the tests that do not support Aura
Mac: do not run unit_tests on the bots

BUG=112575,51716
Review URL: https://chromiumcodereview.appspot.com/9323027
------------------------------------------------------------------------
Project Member Comment 91 by bugdroid1@chromium.org, Feb 22 2012
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=123074

------------------------------------------------------------------------
r123074 | rnk@chromium.org | Wed Feb 22 11:08:33 PST 2012

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/ui_tests.gtest_mac.txt?r1=123074&r2=123073&pathrev=123074

Exclude AudioUILayoutTest.* on Mac valgrind.

Currently not a single ui_test works on Mac Valgrind, but these new ones
don't have an exclusion yet.  I'm filing this against the "impossible
happened" bug even though I don't see that message in the log because I
consider it to be the meta-bug for "ui_tests don't work on Mac
Valgrind."

TBR=shadi@chromium.org
BUG=51716
TEST=waterfall.sh

Review URL: https://chromiumcodereview.appspot.com/9429060
------------------------------------------------------------------------
Project Member Comment 92 by bugdroid1@chromium.org, Feb 23 2012
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=123182

------------------------------------------------------------------------
r123182 | rnk@chromium.org | Wed Feb 22 18:38:47 PST 2012

Changed paths:
 A http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/test_shell_tests.gtest_mac.txt?r1=123182&r2=123181&pathrev=123182

Exclude ResourceFetcherTests.ResourceFetcherTimeout.

It's hitting the "impossible happened" assertion on Mac Valgrind.

TBR=glider@chromium.org
BUG=51716
TEST=

Review URL: https://chromiumcodereview.appspot.com/9454003
------------------------------------------------------------------------
Another 'impossible' happened on Webkit Mac.

http://build.chromium.org/p/chromium.memory.fyi/builders/Webkit%20Mac%20%28valgrind%29/builds/18388/steps/memory%20test%3A%20test_shell/logs/stdio

[----------] 1 test from ResourceFetcherTests
[ RUN      ] ResourceFetcherTests.ResourceFetcherDeletedInCallback
UNKNOWN task message [id 3413, to mach_task_self(), reply 0x903]
--87019-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--87019-- si_code=1;  Faulting address: 0x34830000;  sp: 0xf192ec90

valgrind: the 'impossible' happened:
   Killed by fatal signal
==87019==    at 0x380399A3: ???
==87019==    by 0x38039EE8: ???
Project Member Comment 94 by bugdroid1@chromium.org, Feb 24 2012
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=123380

------------------------------------------------------------------------
r123380 | oshima@chromium.org | Thu Feb 23 16:16:11 PST 2012

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/test_shell_tests.gtest_mac.txt?r1=123380&r2=123379&pathrev=123380

Exclude the test failing due to 'impossible' issue.

TBR=glider@chromium.org
BUG=51716
TEST=none

Review URL: https://chromiumcodereview.appspot.com/9457001
------------------------------------------------------------------------
Another webkit test started failing due to "impossible happened".


[ RUN      ] PluginTest.DeleteFrameDuringEvent
--30479-- /b/build/slave/webkit-rel-mac-valgrind/build/src/xcodebuild/Release/plugins/npapi_test_plugin.plugin/Contents/MacOS/npapi_test_plugin:
--30479-- dSYM directory is missing; consider using --dsymutil=yes
--30479-- /b/build/slave/webkit-rel-mac-valgrind/build/src/xcodebuild/Release/plugins/npapi_test_plugin.plugin/Contents/MacOS/npapi_test_plugin:
--30479-- dSYM directory is missing; consider using --dsymutil=yes

Memcheck: the 'impossible' happened:
   create_MC_Chunk: shadow area is accessible
==30479==    at 0x3802C1A5: ???
==30479==    by 0x3802C20B: ???
==30479==    by 0x3802C23F: ???
==30479==    by 0x3800360E: ???
==30479==    by 0x38003B49: ???
==30479==    by 0x38004024: ???
==30479==    by 0x380719A7: ???
==30479==    by 0x380738E0: ???
==30479==    by 0x380987D8: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==30479==    at 0x68BA67D: malloc_zone_malloc (vg_replace_malloc.c:267)
==30479==    by 0x7653922: _CFRuntimeCreateInstance (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==30479==    by 0x7675CA4: __CFDataInit (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==30479==    by 0xA4A8B52: createTagData (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync)
==30479==    by 0xA4AA511: create (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync)
==30479==    by 0xA4AAD14: ColorSyncProfileCreate (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync)
==30479==    by 0x1F41BC26: CMSValidateProfile (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib)
==30479==    by 0x9876B47: CGCMSInterfaceValidateProfile (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==30479==    by 0x9876B27: CGCMSUtilsValidateProfile (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==30479==    by 0x9877FA0: CGColorSpaceCreateWithICCData (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==30479==    by 0x98E4B13: create_color_space_with_path (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==30479==    by 0x9875CFE: CGColorSpaceCreateWithIndex (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==30479==    by 0x9877952: CGSColorProfileCreateWithColorProfileID (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==30479==    by 0x988FB91: _CGSWindowColorProfile (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==30479==    by 0x988FAA6: CGSCopyWindowColorSpace (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics)
==30479==    by 0x9015CE6: _ZN10WindowData16UpdateColorSpaceEh (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x900F707: _ZN10WindowData18FinishConstructionEmymPK4RectPhjP15OpaqueWindowPtrP16OpaqueControlRef (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x900EEB2: _ZN10WindowData10InitializeEP14OpaqueEventRef (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x900EC44: _ZN14AppleWindowDef10InitializeEP14OpaqueEventRef (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x8FF831C: _ZN8HIObject24HandleClassHIObjectEventEP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x8FF81B4: _ZN8HIObject9EventHookEP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x8FF7C2E: _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x8FF6EF5: _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x8FF6D54: SendEventToEventTargetWithOptions (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x8FF27E0: _ZN8HIObject6CreateEPK10__CFStringP14OpaqueEventRefPPS_ (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x8FF2686: HIObjectCreate (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x9009DE0: _ZL15NewWindowCommonPP10WindowDatamyPK13WindowDefSpecPK4RectPKhhP15OpaqueWindowPtrljPtb (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x9054B39: _ZL23CreateNewWindowInternalPK13WindowDefSpecmyPK4RectPP15OpaqueWindowPtr (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x1ABAFC5: _ZN6webkit5npapi25CarbonPluginWindowTracker28CreateDummyWindowForDelegateEPv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1AD48E0: _ZN6webkit5npapi21WebPluginDelegateImpl18PlatformInitializeEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1AD3AD9: _ZN6webkit5npapi21WebPluginDelegateImpl10InitializeERK4GURLRKSt6vectorISsSaISsEES9_PNS0_9WebPluginEb (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1AD8A23: _ZN6webkit5npapi13WebPluginImpl10initializeEPN6WebKit18WebPluginContainerE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1AD8B9A: _ZThn4_N6webkit5npapi13WebPluginImpl10initializeEPN6WebKit18WebPluginContainerE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xBE2A77: _ZN6WebKit21FrameLoaderClientImpl12createPluginERKN7WebCore7IntSizeEPNS1_17HTMLPlugInElementERKNS1_4KURLERKN3WTF6VectorINSA_6StringELm0EEESF_RKSC_b (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1441F8A: _ZN7WebCore14SubframeLoader10loadPluginEPNS_22HTMLPlugInImageElementERKNS_4KURLERKN3WTF6StringERKNS6_6VectorIS7_Lm0EEESD_b (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1441D49: _ZN7WebCore14SubframeLoader13requestPluginEPNS_22HTMLPlugInImageElementERKNS_4KURLERKN3WTF6StringERKNS6_6VectorIS7_Lm0EEESD_b (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x144217A: _ZN7WebCore14SubframeLoader13requestObjectEPNS_22HTMLPlugInImageElementERKN3WTF6StringERKNS3_12AtomicStringES6_RKNS3_6VectorIS4_Lm0EEESD_ (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xE4C243: _ZN7WebCore16HTMLEmbedElement12updateWidgetENS_20PluginCreationOptionE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x14AB536: _ZN7WebCore9FrameView12updateWidgetEPNS_20RenderEmbeddedObjectE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x14AB67C: _ZN7WebCore9FrameView13updateWidgetsEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x14A81DD: _ZN7WebCore9FrameView22performPostLayoutTasksEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x14A7D48: _ZN7WebCore9FrameView6layoutEb (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xC69A3D: _ZN7WebCore8Document13implicitCloseEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1422513: _ZN7WebCore11FrameLoader22checkCallImplicitCloseEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x14222C5: _ZN7WebCore11FrameLoader14checkCompletedEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1421639: _ZN7WebCore11FrameLoader15finishedParsingEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xC7095A: _ZN7WebCore8Document15finishedParsingEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xEF9EF1: _ZN7WebCore15HTMLTreeBuilder8finishedEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xEE06FD: _ZN7WebCore18HTMLDocumentParser3endEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xEDFE89: _ZN7WebCore18HTMLDocumentParser33attemptToRunDeferredScriptsAndEndEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xEDFDCF: _ZN7WebCore18HTMLDocumentParser20prepareToStopParsingEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xEE0734: _ZN7WebCore18HTMLDocumentParser12attemptToEndEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xEE0769: _ZN7WebCore18HTMLDocumentParser6finishEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x14197B3: _ZN7WebCore14DocumentWriter3endEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1411670: _ZN7WebCore14DocumentLoader15finishedLoadingEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1434A62: _ZN7WebCore18MainResourceLoader16didFinishLoadingEd (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1440CEB: _ZN7WebCore14ResourceLoader16didFinishLoadingEPNS_14ResourceHandleEd (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1075CAA: _ZN7WebCore22ResourceHandleInternal16didFinishLoadingEPN6WebKit12WebURLLoaderEd (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1B42B6E: _ZN11webkit_glue16WebURLLoaderImpl7Context18OnCompletedRequestERKN3net16URLRequestStatusERKSsRKN4base9TimeTicksE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1B7BFAF: _ZN12_GLOBAL__N_112RequestProxy22NotifyCompletedRequestERKN3net16URLRequestStatusERKSsRKN4base9TimeTicksE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1B7C2F4: _ZN4base8internal15RunnableAdapterIMN12_GLOBAL__N_112RequestProxyEFvRKN3net16URLRequestStatusERKSsRKNS_9TimeTicksEEE3RunEPS3_S7_S9_SC_ (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1B7C288: _ZN4base8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMN12_GLOBAL__N_112RequestProxyEFvRKN3net16URLRequestStatusERKSsRKNS_9TimeTicksEEEEFvRKPS4_S8_SA_SD_EE8MakeItSoESG_SJ_S8_SA_SD_ (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x1B7C22E: _ZN4base8internal7InvokerILi4ENS0_9BindStateINS0_15RunnableAdapterIMN12_GLOBAL__N_112RequestProxyEFvRKN3net16URLRequestStatusERKSsRKNS_9TimeTicksEEEEFvPS5_S9_SB_SE_EFvSI_S7_SsSC_EEESJ_E3RunEPNS0_13BindStateBaseE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x97437: _ZNK4base8CallbackIFvvEE3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DAD02: _ZN11MessageLoop7RunTaskERKN4base11PendingTaskE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DAEE8: _ZN11MessageLoop21DeferOrRunPendingTaskERKN4base11PendingTaskE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DAFD6: _ZN11MessageLoop6DoWorkEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5B1ADF: _ZN4base24MessagePumpCFRunLoopBase7RunWorkEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5B1750: _ZN4base24MessagePumpCFRunLoopBase13RunWorkSourceEPv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x768F42A: __CFRunLoopDoSources0 (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==30479==    by 0x768CEEE: __CFRunLoopRun (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==30479==    by 0x768C3C3: CFRunLoopRunSpecific (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==30479==    by 0x768C1F0: CFRunLoopRunInMode (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==30479==    by 0x9024E03: RunCurrentEventLoopInMode (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x9024BB8: ReceiveNextEventCommon (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x9024A3D: BlockUntilNextEventMatchingListInMode (in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox)
==30479==    by 0x6916594: _DPSNextEvent (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==30479==    by 0x6915DD5: -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==30479==    by 0x68D81F2: -[NSApplication run] (in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==30479==    by 0x5B213D: _ZN4base24MessagePumpNSApplication5DoRunEPNS_11MessagePump8DelegateE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5B19FB: _ZN4base24MessagePumpCFRunLoopBase3RunEPNS_11MessagePump8DelegateE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA985: _ZN11MessageLoop11RunInternalEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA3D0: _ZN11MessageLoop10RunHandlerEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA381: _ZN11MessageLoop3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x27B72C: _ZN9TestShell16WaitTestFinishedEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x26819E: _ZN38PluginTest_DeleteFrameDuringEvent_Test8TestBodyEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5855FE: _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5826EA: _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x57DAD4: _ZN7testing4Test3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x57DCFD: _ZN7testing8TestInfo3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x57DFF3: _ZN7testing8TestCase3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x580E23: _ZN7testing8internal12UnitTestImpl11RunAllTestsEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5851CE: _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5831DA: _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x580BF0: _ZN7testing8UnitTest3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x287FA2: _ZN4base9TestSuite3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x268C38: main (in src/xcodebuild/Release/test_shell_tests)

Thread 2: status = VgTs_WaitSys
==30479==    at 0x8A6E382: kevent (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A6DF58: _dispatch_queue_invoke (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A6DCFD: _dispatch_worker_thread2 (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A6D780: _pthread_wqthread (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A6D5C5: start_wqthread (in /usr/lib/libSystem.B.dylib)

Thread 3: status = VgTs_WaitSys
==30479==    at 0x8A6E382: kevent (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x618731: event_base_loop (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5AFD59: _ZN4base19MessagePumpLibevent3RunEPNS_11MessagePump8DelegateE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA985: _ZN11MessageLoop11RunInternalEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA3D0: _ZN11MessageLoop10RunHandlerEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA381: _ZN11MessageLoop3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x609310: _ZN4base6Thread3RunEP11MessageLoop (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x6093D4: _ZN4base6Thread10ThreadMainEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x60803E: _ZN4base12_GLOBAL__N_110ThreadFuncEPv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x8A75258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A750DD: thread_start (in /usr/lib/libSystem.B.dylib)

Thread 4: status = VgTs_WaitSys
==30479==    at 0x8A47B36: semaphore_wait_trap (in /usr/lib/libSystem.B.dylib)
==30479==    by 0xA4632B: _ZN2v88internal26RuntimeProfilerRateLimiter18SuspendIfNecessaryEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xB181F8: _ZN2v88internal13SamplerThread3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0xB17C34: _ZN2v88internalL11ThreadEntryEPv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x8A75258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A750DD: thread_start (in /usr/lib/libSystem.B.dylib)

Thread 5: status = VgTs_WaitSys
==30479==    at 0x8A75AA2: __semwait_signal (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A773F7: pthread_cond_wait$UNIX2003 (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x602F27: _ZN4base17ConditionVariable4WaitEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x60394F: _ZN4base13WaitableEvent9TimedWaitERKNS_9TimeDeltaE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x6037CD: _ZN4base13WaitableEvent4WaitEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5E19ED: _ZN4base18MessagePumpDefault3RunEPNS_11MessagePump8DelegateE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA985: _ZN11MessageLoop11RunInternalEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA3D0: _ZN11MessageLoop10RunHandlerEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA381: _ZN11MessageLoop3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x609310: _ZN4base6Thread3RunEP11MessageLoop (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x6093D4: _ZN4base6Thread10ThreadMainEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x60803E: _ZN4base12_GLOBAL__N_110ThreadFuncEPv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x8A75258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A750DD: thread_start (in /usr/lib/libSystem.B.dylib)

Thread 6: status = VgTs_WaitSys
==30479==    at 0x8A75AA2: __semwait_signal (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x7901534: +[NSThread sleepUntilDate:] (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==30479==    by 0x27B513: -[WatchDogTarget run:] (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x78D94C3: -[NSThread main] (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==30479==    by 0x78D9473: __NSThread__main__ (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==30479==    by 0x8A75258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A750DD: thread_start (in /usr/lib/libSystem.B.dylib)

Thread 7: status = VgTs_WaitSys
==30479==    at 0x8A6E382: kevent (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x618731: event_base_loop (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5AFE7C: _ZN4base19MessagePumpLibevent3RunEPNS_11MessagePump8DelegateE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA985: _ZN11MessageLoop11RunInternalEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA3D0: _ZN11MessageLoop10RunHandlerEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA381: _ZN11MessageLoop3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x609310: _ZN4base6Thread3RunEP11MessageLoop (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x6093D4: _ZN4base6Thread10ThreadMainEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x60803E: _ZN4base12_GLOBAL__N_110ThreadFuncEPv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x8A75258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A750DD: thread_start (in /usr/lib/libSystem.B.dylib)

Thread 8: status = VgTs_WaitSys
==30479==    at 0x8A47AFA: mach_msg_trap (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x768D2DE: __CFRunLoopRun (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==30479==    by 0x768C3C3: CFRunLoopRunSpecific (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==30479==    by 0x768C1F0: CFRunLoopRunInMode (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==30479==    by 0x79131B2: -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==30479==    by 0x5B1EAE: _ZN4base20MessagePumpNSRunLoop5DoRunEPNS_11MessagePump8DelegateE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5B19FB: _ZN4base24MessagePumpCFRunLoopBase3RunEPNS_11MessagePump8DelegateE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA985: _ZN11MessageLoop11RunInternalEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA3D0: _ZN11MessageLoop10RunHandlerEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA381: _ZN11MessageLoop3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x609310: _ZN4base6Thread3RunEP11MessageLoop (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x6093D4: _ZN4base6Thread10ThreadMainEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x60803E: _ZN4base12_GLOBAL__N_110ThreadFuncEPv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x8A75258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A750DD: thread_start (in /usr/lib/libSystem.B.dylib)

Thread 9: status = VgTs_WaitSys
==30479==    at 0x8A75AA2: __semwait_signal (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A773F7: pthread_cond_wait$UNIX2003 (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x602F27: _ZN4base17ConditionVariable4WaitEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x60394F: _ZN4base13WaitableEvent9TimedWaitERKNS_9TimeDeltaE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x6037CD: _ZN4base13WaitableEvent4WaitEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5E19ED: _ZN4base18MessagePumpDefault3RunEPNS_11MessagePump8DelegateE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA985: _ZN11MessageLoop11RunInternalEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA3D0: _ZN11MessageLoop10RunHandlerEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x5DA381: _ZN11MessageLoop3RunEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x609310: _ZN4base6Thread3RunEP11MessageLoop (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x6093D4: _ZN4base6Thread10ThreadMainEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x60803E: _ZN4base12_GLOBAL__N_110ThreadFuncEPv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x8A75258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A750DD: thread_start (in /usr/lib/libSystem.B.dylib)

Thread 10: status = VgTs_WaitSys
==30479==    at 0x8A75AA2: __semwait_signal (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A752B0: pthread_cond_timedwait$UNIX2003 (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x6030ED: _ZN4base17ConditionVariable9TimedWaitERKNS_9TimeDeltaE (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x60AD9E: _ZN4base22PosixDynamicThreadPool11WaitForTaskEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x60B2A8: _ZN4base12_GLOBAL__N_112WorkerThread10ThreadMainEv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x60803E: _ZN4base12_GLOBAL__N_110ThreadFuncEPv (in src/xcodebuild/Release/test_shell_tests)
==30479==    by 0x8A75258: _pthread_start (in /usr/lib/libSystem.B.dylib)
==30479==    by 0x8A750DD: thread_start (in /usr/lib/libSystem.B.dylib)

Project Member Comment 96 by bugdroid1@chromium.org, May 29 2012
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=139390

------------------------------------------------------------------------
r139390 | oshima@chromium.org | Tue May 29 15:07:35 PDT 2012

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/test_shell_tests.gtest_mac.txt?r1=139390&r2=139389&pathrev=139390

Exclude PluginTest.DeleteFrameDuringEvent on mac webkit valgrind

TBR=glider@chromium.org
BUG=51716
TEST=none

Review URL: https://chromiumcodereview.appspot.com/10446069
------------------------------------------------------------------------
Project Member Comment 97 by bugdroid1@chromium.org, May 30 2012
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=139551

------------------------------------------------------------------------
r139551 | oshima@chromium.org | Wed May 30 09:30:14 PDT 2012

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/test_shell_tests.gtest_mac.txt?r1=139551&r2=139550&pathrev=139551

Excluding failing test due to "impossible happened" on mac webkit valgrid

TBR=bradchen@chromium.org,glider@chromium.org
BUG=51716
TEST=none
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/10448077
------------------------------------------------------------------------
Project Member Comment 98 by bugdroid1@chromium.org, Mar 10 2013
Blocking: -chromium:95880 chromium:95880
Labels: -Stability-Valgrind -Area-Build Build Performance-Valgrind
Project Member Comment 99 by bugdroid1@chromium.org, Apr 1 2013
Labels: -Performance-Valgrind Stability-Valgrind
Comment 100 by jam@chromium.org, May 2 2013
Status: WontFix
per  bug 126514  test_shell_tests is gone. these tests are now running as either content_browsertests or content_unittests. if they fail there under heapcheck, new bugs should be filed.
Status: Assigned
Err, no - this bug is not only about test_shell_tests.
Well, this bug is about Valgrind having been broken since 10.5 (it's now
broken for a different reason). I'll revisit this bug to make sure there's
nothing more we can do about that.

Sent from phone
Comment 103 by kcc@chromium.org, May 6 2013
Owner: ----
Status: WontFix
Summary: (OS X) valgrind: the 'impossible' happened: Killed by fatal signal (was: valgrind: the 'impossible' happened: Killed by fatal signal)
I officially declare that we do not support Valgrind on OS X any more.
If anyone wants to continue using it, [s]he will need to find another owner. Sorry.
Project Member Comment 104 by bugdroid1@chromium.org, Jun 18 2014
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e8fee8a14a298db29cd8c0d7294d947aa3849234

commit e8fee8a14a298db29cd8c0d7294d947aa3849234
Author: oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Wed Jun 18 18:40:04 2014

Disable tests that valgrind crashes on them

BUG=365715,51716
TBR=glider@chromium.org

Review URL: https://codereview.chromium.org/334343003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278131 0039d316-1c4b-4281-b951-d872f2087c98


Project Member Comment 105 by bugdroid1@chromium.org, Jun 18 2014
------------------------------------------------------------------
r278131 | oshima@chromium.org | 2014-06-18T18:40:04.649215Z

Changed paths:
   M http://src.chromium.org/viewvc/chrome/trunk/src/tools/valgrind/gtest_exclude/content_unittests.gtest_mac.txt?r1=278131&r2=278130&pathrev=278131

Disable tests that valgrind crashes on them

BUG=365715,51716
TBR=glider@chromium.org

Review URL: https://codereview.chromium.org/334343003
-----------------------------------------------------------------
Sign in to add a comment