freaking1 / crashpad

Automatically exported from code.google.com/p/crashpad
0 stars 0 forks source link

ExceptionPorts tests fail on Mac OS X 10.8 #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
These tests are fine on all other OS versions.

mark@ten-eight-vm bash$ out/Debug/crashpad_util_test 
--gtest_filter=ExceptionPorts.\*
Running main() from gmock_main.cc
Note: Google Test filter = ExceptionPorts.*
[==========] Running 13 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 13 tests from ExceptionPorts
[ RUN      ] ExceptionPorts.TaskExceptionPorts_SetInProcess_NoCrash
[991:37951:20150311,002901.485874:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002901.487394:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002901.487444:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[992:37953:20150311,002901.487714:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[992:37953:20150311,002901.489163:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[992:37954:20150311,002901.489303:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:310: other_thread
[992:37953:20150311,002901.489758:FATAL scoped_forbid_return.cc:23] attempt to 
exit scope forbidden
../../util/test/multiprocess_posix.cc:120: Failure
Failed
Child terminated by signal 6 (Abort trap: 6), expected exit with code 0
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetInProcess_NoCrash (298 ms)
[ RUN      ] ExceptionPorts.TaskExceptionPorts_SetInProcess_MainThreadCrash
[991:37951:20150311,002901.783484:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002901.783640:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002901.783748:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[994:38194:20150311,002901.783977:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[994:38194:20150311,002901.784250:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetInProcess_MainThreadCrash (2 
ms)
[ RUN      ] ExceptionPorts.TaskExceptionPorts_SetInProcess_OtherThreadCrash
[991:37951:20150311,002901.785380:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002901.785567:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002901.785698:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[995:38196:20150311,002901.786132:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[995:38196:20150311,002901.786407:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[995:38198:20150311,002901.786632:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:310: other_thread
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetInProcess_OtherThreadCrash (3 
ms)
[ RUN      ] ExceptionPorts.TaskAndThreadExceptionPorts_SetInProcess_NoCrash
[991:37951:20150311,002901.787718:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002901.787905:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002901.788007:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[996:38201:20150311,002901.788244:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[996:38201:20150311,002901.788504:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[996:38202:20150311,002901.788757:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:310: other_thread
[996:38201:20150311,002901.789086:FATAL scoped_forbid_return.cc:23] attempt to 
exit scope forbidden
../../util/test/multiprocess_posix.cc:120: Failure
Failed
Child terminated by signal 6 (Abort trap: 6), expected exit with code 0
[  FAILED  ] ExceptionPorts.TaskAndThreadExceptionPorts_SetInProcess_NoCrash 
(277 ms)
[ RUN      ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetInProcess_MainThreadCrash
[991:37951:20150311,002902.065846:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002902.066423:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002902.066834:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[997:38416:20150311,002902.067022:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[997:38416:20150311,002902.067302:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[  FAILED  ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetInProcess_MainThreadCrash (3 ms)
[ RUN      ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetInProcess_OtherThreadCrash
[991:37951:20150311,002902.068590:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002902.068749:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002902.068921:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[998:38418:20150311,002902.069361:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[998:38418:20150311,002902.069943:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[998:38419:20150311,002902.070382:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:310: other_thread
[  FAILED  ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetInProcess_OtherThreadCrash (2 ms)
[ RUN      ] ExceptionPorts.TaskExceptionPorts_SetOutOfProcess_NoCrash
[991:37951:20150311,002902.071597:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002902.071737:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002902.071784:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[999:38420:20150311,002902.072048:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[999:38420:20150311,002902.072388:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[999:38421:20150311,002902.072655:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:310: other_thread
[999:38420:20150311,002902.072985:FATAL scoped_forbid_return.cc:23] attempt to 
exit scope forbidden
../../util/test/multiprocess_posix.cc:120: Failure
Failed
Child terminated by signal 6 (Abort trap: 6), expected exit with code 0
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetOutOfProcess_NoCrash (313 ms)
[ RUN      ] ExceptionPorts.TaskExceptionPorts_SetOutOfProcess_MainThreadCrash
[991:37951:20150311,002902.385595:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002902.385923:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002902.386128:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[1000:38643:20150311,002902.386394:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[1000:38643:20150311,002902.386664:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[1000:38644:20150311,002902.386949:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetOutOfProcess_MainThreadCrash 
(3 ms)
[ RUN      ] ExceptionPorts.TaskExceptionPorts_SetOutOfProcess_OtherThreadCrash
[991:37951:20150311,002902.388007:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002902.388508:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002902.388990:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[1001:38645:20150311,002902.389327:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[1001:38645:20150311,002902.389737:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[1001:38646:20150311,002902.390027:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:310: other_thread
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetOutOfProcess_OtherThreadCrash 
(3 ms)
[ RUN      ] ExceptionPorts.TaskAndThreadExceptionPorts_SetOutOfProcess_NoCrash
[991:37951:20150311,002902.391275:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002902.391868:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002902.391988:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[1002:38647:20150311,002902.392306:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[1002:38647:20150311,002902.392606:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[1002:38648:20150311,002902.392824:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:310: other_thread
[1002:38647:20150311,002902.393200:FATAL scoped_forbid_return.cc:23] attempt to 
exit scope forbidden
../../util/test/multiprocess_posix.cc:120: Failure
Failed
Child terminated by signal 6 (Abort trap: 6), expected exit with code 0
[  FAILED  ] ExceptionPorts.TaskAndThreadExceptionPorts_SetOutOfProcess_NoCrash 
(313 ms)
[ RUN      ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetOutOfProcess_MainThreadCrash
[991:37951:20150311,002902.704320:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002902.704537:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002902.705015:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[1003:38874:20150311,002902.705661:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[1003:38874:20150311,002902.706179:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[  FAILED  ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetOutOfProcess_MainThreadCrash (3 
ms)
[ RUN      ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetOutOfProcess_OtherThreadCrash
[991:37951:20150311,002902.707647:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:416: task
[991:37951:20150311,002902.707836:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:424: main_thread
[991:37951:20150311,002902.707877:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:429: other_thread
[1004:38876:20150311,002902.718144:ERROR exception_ports.cc:96] 
task_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:252: task
[1004:38876:20150311,002902.718292:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:257: main_thread
[1004:38877:20150311,002902.718397:ERROR exception_ports.cc:96] 
thread_get_exception_ports: (os/kern) invalid argument (4)
../../util/mach/exception_ports_test.cc:84: Failure
Value of: exception_ports.GetExceptionPorts( ExcMaskAll() | EXC_MASK_CRASH, 
&handlers)
  Actual: false
Expected: true
Google Test trace:
../../util/mach/exception_ports_test.cc:310: other_thread
[  FAILED  ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetOutOfProcess_OtherThreadCrash (11 
ms)
[ RUN      ] ExceptionPorts.HostExceptionPorts
[991:37951:20150311,002902.718843:ERROR exception_ports.cc:96] 
host_get_exception_ports: (os/kern) invalid argument (4)
[991:37951:20150311,002902.718858:ERROR exception_ports.cc:96] 
host_get_exception_ports: (os/kern) invalid argument (4)
[       OK ] ExceptionPorts.HostExceptionPorts (0 ms)
[----------] 13 tests from ExceptionPorts (1234 ms total)

[----------] Global test environment tear-down
[==========] 13 tests from 1 test case ran. (1234 ms total)
[  PASSED  ] 1 test.
[  FAILED  ] 12 tests, listed below:
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetInProcess_NoCrash
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetInProcess_MainThreadCrash
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetInProcess_OtherThreadCrash
[  FAILED  ] ExceptionPorts.TaskAndThreadExceptionPorts_SetInProcess_NoCrash
[  FAILED  ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetInProcess_MainThreadCrash
[  FAILED  ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetInProcess_OtherThreadCrash
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetOutOfProcess_NoCrash
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetOutOfProcess_MainThreadCrash
[  FAILED  ] ExceptionPorts.TaskExceptionPorts_SetOutOfProcess_OtherThreadCrash
[  FAILED  ] ExceptionPorts.TaskAndThreadExceptionPorts_SetOutOfProcess_NoCrash
[  FAILED  ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetOutOfProcess_MainThreadCrash
[  FAILED  ] 
ExceptionPorts.TaskAndThreadExceptionPorts_SetOutOfProcess_OtherThreadCrash

12 FAILED TESTS
mark@ten-eight-vm bash$

Original issue reported on code.google.com by mark@chromium.org on 11 Mar 2015 at 4:31

GoogleCodeExporter commented 9 years ago
This bug isn’t actually occurring. I was accidentally testing on 10.8 using a 
build that targeted Mac OS X 10.9 and later. The test passes when using a build 
that targets Mac OS X 10.8 or an earlier deployment target.

The problem was that ExcMaskAll() was including EXC_MASK_GUARD because it 
believed that it would never see a system older than 10.9 at runtime. 
EXC_MASK_GUARD was introduced in 10.9, and when run on a 10.8 system, 
{host,task,thread}_{get,set}_exception_ports would fail with 
KERN_INVALID_ARGUMENT upon encountering this unknown bit set in mask.

Original comment by mark@chromium.org on 11 Mar 2015 at 1:14