Changeset 249273 in webkit
- Timestamp:
- Aug 29, 2019, 8:25:32 AM (7 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
wtf/cocoa/MachSendRight.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r249092 r249273 1 2019-08-29 Chris Dumez <cdumez@apple.com> 2 3 Crash when mach_port_deallocate() returns KERN_INVALID_NAME 4 https://bugs.webkit.org/show_bug.cgi?id=201248 5 <rdar://problem/54813890> 6 7 Reviewed by Alex Christensen. 8 9 * wtf/cocoa/MachSendRight.cpp: 10 (WTF::deallocateSendRightSafely): 11 1 12 2019-08-25 Fujii Hironori <Hironori.Fujii@sony.com> 2 13 -
trunk/Source/WTF/wtf/cocoa/MachSendRight.cpp
r237099 r249273 31 31 #include <utility> 32 32 33 #define LOG_CHANNEL_PREFIX Log 34 33 35 namespace WTF { 36 37 #if RELEASE_LOG_DISABLED 38 WTFLogChannel LogProcess = { WTFLogChannelState::On, "Process", WTFLogLevel::Error }; 39 #else 40 WTFLogChannel LogProcess = { WTFLogChannelState::On, "Process", WTFLogLevel::Error, LOG_CHANNEL_WEBKIT_SUBSYSTEM, OS_LOG_DEFAULT }; 41 #endif 34 42 35 43 static void retainSendRight(mach_port_t port) … … 66 74 return; 67 75 68 LOG_ERROR("mach_port_deallocate error for port %d: %s (%#x)", port, mach_error_string(kr), kr);69 if (kr == KERN_INVALID_RIGHT )76 RELEASE_LOG_ERROR(Process, "mach_port_deallocate error for port %d: %{private}s (%#x)", port, mach_error_string(kr), kr); 77 if (kr == KERN_INVALID_RIGHT || kr == KERN_INVALID_NAME) 70 78 CRASH(); 71 79 }
Note:
See TracChangeset
for help on using the changeset viewer.