Bug 193848 - Make sure WTF::generateObjectIdentifier() internal counter does not get duplicated
Summary: Make sure WTF::generateObjectIdentifier() internal counter does not get dupli...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-01-25 15:18 PST by Chris Dumez
Modified: 2019-01-29 09:51 PST (History)
7 users (show)

See Also:


Attachments
Patch (29.17 KB, patch)
2019-01-25 15:22 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (29.08 KB, patch)
2019-01-29 08:58 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (29.08 KB, patch)
2019-01-29 09:14 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2019-01-25 15:18:16 PST
Make sure WTF::generateObjectIdentifier() internal counter does not get duplicated at each call site. This can lead to hard to debug duplicate identifiers such as the one in Bug 193761.
Comment 1 Chris Dumez 2019-01-25 15:22:45 PST
Created attachment 360173 [details]
Patch
Comment 2 Chris Dumez 2019-01-28 16:27:26 PST
ping review?
Comment 3 youenn fablet 2019-01-28 17:12:46 PST
I guess a unit test could be written. Not sure whether worth it.
Comment 4 WebKit Commit Bot 2019-01-28 20:02:28 PST
Comment on attachment 360173 [details]
Patch

Rejecting attachment 360173 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'apply-attachment', '--no-update', '--non-interactive', 360173, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Logging in as commit-queue@webkit.org...
Fetching: https://bugs.webkit.org/attachment.cgi?id=360173&action=edit
Fetching: https://bugs.webkit.org/show_bug.cgi?id=193848&ctype=xml&excludefield=attachmentdata
Processing 1 patch from 1 bug.
Processing patch 360173 from bug 193848.
Fetching: https://bugs.webkit.org/attachment.cgi?id=360173
Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Youenn Fablet']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Parsed 25 diffs from patch file(s).
patching file Source/WTF/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/WebCore/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/WebKit/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/WTF/WTF.xcodeproj/project.pbxproj
Hunk #1 succeeded at 83 (offset -3 lines).
Hunk #2 succeeded at 415 (offset -3 lines).
Hunk #3 succeeded at 1035 (offset 4 lines).
Hunk #4 FAILED at 1555.
1 out of 4 hunks FAILED -- saving rejects to file Source/WTF/WTF.xcodeproj/project.pbxproj.rej
patching file Source/WTF/wtf/CMakeLists.txt
patching file Source/WTF/wtf/ObjectIdentifier.cpp
patching file Source/WTF/wtf/ObjectIdentifier.h
patching file Source/WebCore/dom/Document.cpp
Hunk #1 succeeded at 536 (offset 1 line).
patching file Source/WebCore/dom/MessageChannel.cpp
patching file Source/WebCore/dom/ScriptExecutionContext.cpp
patching file Source/WebCore/history/HistoryItem.cpp
patching file Source/WebCore/loader/DocumentLoader.cpp
patching file Source/WebCore/page/DOMWindow.cpp
patching file Source/WebCore/platform/Process.cpp
patching file Source/WebCore/workers/service/ServiceWorkerJobData.cpp
patching file Source/WebCore/workers/service/server/RegistrationDatabase.cpp
Hunk #1 succeeded at 400 (offset 1 line).
patching file Source/WebCore/workers/service/server/SWServer.cpp
patching file Source/WebCore/workers/service/server/SWServerRegistration.cpp
patching file Source/WebCore/workers/service/server/SWServerToContextConnection.cpp
patching file Source/WebKit/Platform/IPC/Connection.cpp
patching file Source/WebKit/UIProcess/ChildProcessProxy.h
patching file Source/WebKit/UIProcess/UserContent/WebUserContentControllerProxy.cpp
patching file Source/WebKit/UIProcess/WebBackForwardList.cpp
patching file Source/WebKit/UIProcess/WebProcessPool.cpp
Hunk #1 succeeded at 260 (offset 2 lines).
patching file Source/WebKit/WebProcess/MediaStream/UserMediaPermissionRequestManager.cpp

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Youenn Fablet']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: https://webkit-queues.webkit.org/results/10932595
Comment 5 Chris Dumez 2019-01-29 08:58:51 PST
Created attachment 360463 [details]
Patch
Comment 6 Chris Dumez 2019-01-29 09:14:19 PST
Created attachment 360465 [details]
Patch
Comment 7 WebKit Commit Bot 2019-01-29 09:50:59 PST
Comment on attachment 360465 [details]
Patch

Clearing flags on attachment: 360465

Committed r240661: <https://trac.webkit.org/changeset/240661>
Comment 8 WebKit Commit Bot 2019-01-29 09:51:00 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2019-01-29 09:51:28 PST
<rdar://problem/47635445>