Skip to content

Instantly share code, notes, and snippets.

@rhardih
Last active October 25, 2017 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhardih/939ebfdc6b10acf732b62a805bd7ea93 to your computer and use it in GitHub Desktop.
Save rhardih/939ebfdc6b10acf732b62a805bd7ea93 to your computer and use it in GitHub Desktop.
valgrind callgrind Unrecognised instruction on macOS 10.12.6
valgrind --tool=callgrind ./oclinf
==69261== Callgrind, a call-graph generating cache profiler
==69261== Copyright (C) 2002-2017, and GNU GPL'd, by Josef Weidendorfer et al.
==69261== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==69261== Command: ./oclinf
==69261==
==69261== For interactive control, run 'callgrind_control -h'.
--69261-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option
--69261-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 2 times)
--69261-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 4 times)
UNKNOWN workq_ops option 128
==69261== valgrind: Unrecognised instruction at address 0x1038b1b50.
==69261== at 0x1038B1B50: _dispatch_kq_init (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038AF8FB: _dispatch_client_callout (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038AF8B8: dispatch_once_f (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038B1A90: _dispatch_kq_update (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038B30CD: _dispatch_kevent_resume (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038B303D: _dispatch_source_kevent_resume (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038B2E85: _dispatch_source_kevent_register (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038C2651: _dispatch_queue_resume_finalize_activation (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x103C023C0: _notify_lib_init (in /usr/lib/system/libsystem_notify.dylib)
==69261== by 0x103C029AB: notify_register_dispatch (in /usr/lib/system/libsystem_notify.dylib)
==69261== by 0x1075A78F7: __IOAccelMemoryInfoRegisterAPICollectionBlock_block_invoke (in /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator)
==69261== by 0x1038AF8FB: _dispatch_client_callout (in /usr/lib/system/libdispatch.dylib)
==69261== Your program just tried to execute an instruction that Valgrind
==69261== did not recognise. There are two possible reasons for this.
==69261== 1. Your program has a bug and erroneously jumped to a non-code
==69261== location. If you are running Memcheck and you just saw a
==69261== warning about a bad jump, it's probably your program's fault.
==69261== 2. The instruction is legitimate but Valgrind doesn't handle it,
==69261== i.e. it's Valgrind's fault. If you think this is the case or
==69261== you are not sure, please let us know and we'll try to fix it.
==69261== Either way, Valgrind will now raise a SIGILL signal which will
==69261== probably kill your program.
==69261==
==69261== Process terminating with default action of signal 4 (SIGILL)
==69261== Illegal opcode at address 0x1038B1B50
==69261== at 0x1038B1B50: _dispatch_kq_init (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038AF8FB: _dispatch_client_callout (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038AF8B8: dispatch_once_f (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038B1A90: _dispatch_kq_update (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038B30CD: _dispatch_kevent_resume (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038B303D: _dispatch_source_kevent_resume (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038B2E85: _dispatch_source_kevent_register (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x1038C2651: _dispatch_queue_resume_finalize_activation (in /usr/lib/system/libdispatch.dylib)
==69261== by 0x103C023C0: _notify_lib_init (in /usr/lib/system/libsystem_notify.dylib)
==69261== by 0x103C029AB: notify_register_dispatch (in /usr/lib/system/libsystem_notify.dylib)
==69261== by 0x1075A78F7: __IOAccelMemoryInfoRegisterAPICollectionBlock_block_invoke (in /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator)
==69261== by 0x1038AF8FB: _dispatch_client_callout (in /usr/lib/system/libdispatch.dylib)
==69261==
==69261== Events : Ir
==69261== Collected : 92592938
==69261==
==69261== I refs: 92,592,938
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment