32bit Intel on MacOSX 10.7 doesn't work (target application crashes) #11

Closed
albertz opened this Issue Sep 7, 2011 · 8 comments

Comments

Projects
None yet
3 participants
@albertz
Contributor

albertz commented Sep 7, 2011

This is on any Intel 32 bit application, when I use mach_inject (also compiled for Intel 32bit).

One example:

Crashed Thread:  5

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000040000

External Modification Warnings:
Thread creation by external task.

VM Regions Near 0x40000:
    __LINKEDIT             000000000002f000-000000000003d000 [   56K] r--/rwx SM=COW  /Applications/Last.fm.app/Contents/MacOS/libMoose.1.dylib
--> __TEXT                 000000000003d000-000000000008f000 [  328K] r-x/rwx SM=COW  /Applications/Last.fm.app/Contents/MacOS/libLastFmTools.1.dylib
    __DATA                 000000000008f000-00000000000a6000 [   92K] rw-/rwx SM=COW  /Applications/Last.fm.app/Contents/MacOS/libLastFmTools.1.dylib

...

Thread 5 Crashed:
0   ???                             0x01ff8014 0 + 33521684
1   libsystem_c.dylib               0x9a21f6de thread_start + 34

Thread 5 crashed with X86 Thread State (32-bit):
  eax: 0x00ffc000  ebx: 0xb0207000  ecx: 0xacc34a40  edx: 0x00000000
  edi: 0x0601002f  esi: 0x9a21bd98  ebp: 0xb0206fc8  esp: 0xb0206f9c
   ss: 0x00000023  efl: 0x00010246  eip: 0x01ff8014   cs: 0x0000001b
   ds: 0x00000023   es: 0x00000023   fs: 0x00000023   gs: 0x0000000f
  cr2: 0x00040000
Logical CPU: 4


Binary Images:
    0x1000 -     0xb2ea +Last.reporter (??? - ???) /Applications/Last.fm.app/Contents/MacOS/Last.reporter
   0x13000 -    0x28977 +libMoose.1.dylib (??? - ???) /Applications/Last.fm.app/Contents/MacOS/libMoose.1.dylib
   0x3d000 -    0x8ed88 +libLastFmTools.1.dylib (??? - ???) /Applications/Last.fm.app/Contents/MacOS/libLastFmTools.1.dylib
   0xd2000 -   0x12183b +QtXml (4.3.4 - compatibility 4.3.0) /Applications/Last.fm.app/Contents/Frameworks/QtXml.framework/Versions/4/QtXml
  0x143000 -   0x75b22f +QtGui (4.3.4 - compatibility 4.3.0) /Applications/Last.fm.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
  0x98f000 -   0xa1c668 +QtNetwork (4.3.4 - compatibility 4.3.0) /Applications/Last.fm.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork
  0xa4a000 -   0xb98483 +QtCore (4.3.4 - compatibility 4.3.0) /Applications/Last.fm.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore
  0xc11000 -   0xc388ad +QtSql (4.3.4 - compatibility 4.3.0) /Applications/Last.fm.app/Contents/Frameworks/QtSql.framework/Versions/4/QtSql
  0xf1e000 -   0xf244e3 +libqgif.dylib (??? - ???) /Applications/Last.fm.app/Contents/MacOS/imageformats/libqgif.dylib
  0xfad000 -   0xfce27b +libqjpeg.dylib (??? - ???) /Applications/Last.fm.app/Contents/MacOS/imageformats/libqjpeg.dylib
  0xfd3000 -   0xfd825f +libqsvg.dylib (??? - ???) /Applications/Last.fm.app/Contents/MacOS/imageformats/libqsvg.dylib
 0x2700000 -  0x2746b6f +libqmng.dylib (??? - ???) /Applications/Last.fm.app/Contents/MacOS/imageformats/libqmng.dylib
 0x274d000 -  0x2797fff +QtSvg (4.6.2 - compatibility 4.6.0) <49C12DC3-0114-895E-2135-7F0DD4EF3DC2> /Library/Frameworks/QtSvg.framework/Versions/4/QtSvg
 0x33b0000 -  0x33f8397 +libqtiff.dylib (??? - ???) /Applications/Last.fm.app/Contents/MacOS/imageformats/libqtiff.dylib
 0x37ec000 -  0x37faffb  libSimplifiedChineseConverter.dylib (54.0.0 - compatibility 1.0.0) <D3F1CC34-55EB-3D33-A7C2-025D5C8025D0> /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib
 0x4fdd000 -  0x4feffff  libTraditionalChineseConverter.dylib (54.0.0 - compatibility 1.0.0) <ADEB72F9-0048-3C87-AD9B-71AA57D523E9> /System/Library/CoreServices/Encodings/libTraditionalChineseConverter.dylib
 0x5d2d000 -  0x6658fef +QtGui (4.6.2 - compatibility 4.6.0) <D7F089D0-FCE0-5A44-ADB2-FB0F285DC7FC> /Library/Frameworks/QtGui.framework/Versions/4/QtGui
 0x68d8000 -  0x6b18ffb +QtCore (4.6.2 - compatibility 4.6.0) <8B80055C-50C1-6B1E-AB7F-5BE3C7B851DE> /Library/Frameworks/QtCore.framework/Versions/4/QtCore
0x8fe5e000 - 0x8fe909c7  dyld (195.5 - ???) <134323A7-49DC-3A9D-ACFD-32FAD0FD6BA2> /usr/lib/dyld
0x90075000 - 0x900a3ffb  com.apple.DictionaryServices (1.2 - 158) <C614930F-520D-3F77-AD0D-0E16FBCB98CE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x90147000 - 0x90148fff  com.apple.TrustEvaluationAgent (2.0 - 1) <EABDA7EE-A98F-35B8-9E3E-7075BA651C68> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x90151000 - 0x90220ffb  com.apple.ImageIO.framework (3.1.0 - 3.1.0) <A482C10A-C474-39DC-AB3C-EADBCF3A433B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x90221000 - 0x90382ffb  com.apple.QuartzCore (1.7 - 269.0) <221FF6A0-9C2C-3977-BC2A-A84C392BA49B> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x903ae000 - 0x90500ffb  com.apple.audio.toolbox.AudioToolbox (1.7 - 1.7) <5767C518-343D-36DB-8D59-C72986161AEC> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x90501000 - 0x90508ff5  libsystem_dnssd.dylib (??? - ???) <B3217FA8-A7D6-3C90-ABFC-2E54AEF33547> /usr/lib/system/libsystem_dnssd.dylib
0x90671000 - 0x9070cff3  com.apple.ink.framework (1.3.2 - 110) <9F6F37F9-999E-30C5-93D0-E48D4B5E20CD> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x90729000 - 0x907ffa5b  libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <A0EDB351-4B9D-3AA2-9D1A-0C22204FCCD3> /usr/lib/libobjc.A.dylib
0x90800000 - 0x90825ff9  libJPEG.dylib (??? - ???) <5872B388-D6CC-3DD4-A2F3-8BB464E83D14> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x909bc000 - 0x909cafff  com.apple.opengl (1.7.4 - 1.7.4) <C6DE3D3A-CC1F-3F55-B8DD-2637FA40058F> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x909cb000 - 0x909e0fff  com.apple.speech.synthesis.framework (4.0.74 - 4.0.74) <92AADDB0-BADF-3B00-8941-B8390EDC931B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x909e1000 - 0x90af0ff7  libsqlite3.dylib (9.6.0 - compatibility 9.0.0) <01987A45-9270-30FD-8A67-5E53DB637909> /usr/lib/libsqlite3.dylib
0x90e5b000 - 0x90e7dffe  com.apple.framework.familycontrols (3.0 - 300) <AE51B604-D32D-32F7-AEDC-B1C4EB7191C6> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
0x90e7e000 - 0x90e86ff3  liblaunch.dylib (392.18.0 - compatibility 1.0.0) <CD470A1E-0147-3CB1-B44D-0B61F9061826> /usr/lib/system/liblaunch.dylib
0x911bd000 - 0x912b5ff7  libFontParser.dylib (??? - ???) <C428D41A-8635-3423-A2F0-8BA9819F212B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x912b6000 - 0x912cbff7  com.apple.ImageCapture (7.0 - 7.0) <116BC0CA-428E-396F-85DF-52793034D2A0> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x912cc000 - 0x912f4ff7  libxslt.1.dylib (3.24.0 - compatibility 3.0.0) <FCAC685A-724F-3FE7-8416-146108DF75FB> /usr/lib/libxslt.1.dylib
0x91522000 - 0x9155effa  libGLImage.dylib (??? - ???) <7A150184-E3F7-3773-917A-A5E24B9241FA> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x9161d000 - 0x9163fff1  com.apple.PerformanceAnalysis (1.10 - 10) <45B10D4C-9B3B-37A6-982D-687A6F9EEA28> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
0x9168f000 - 0x91843ff3  libicucore.A.dylib (46.1.0 - compatibility 1.0.0) <6270318A-CA9A-376C-AD6D-64A9B4B4A26E> /usr/lib/libicucore.A.dylib
0x9189e000 - 0x918e7ff7  libGLU.dylib (??? - ???) <3524C956-C8B2-3E8B-805D-9E25E5481A58> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x918e8000 - 0x918f3ffb  com.apple.speech.recognition.framework (4.0.19 - 4.0.19) <17C11291-5B27-3BE2-8614-7A806745EE8A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x918f4000 - 0x91911fff  libresolv.9.dylib (46.0.0 - compatibility 1.0.0) <95AE43ED-6C52-3B39-89B6-54C81C62F1FF> /usr/lib/libresolv.9.dylib
0x91912000 - 0x91915ffd  libCoreVMClient.dylib (??? - ???) <1438A7D5-A622-3623-A49F-45F881B1D947> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x91942000 - 0x91943ff0  libunc.dylib (24.0.0 - compatibility 1.0.0) <BCD277D0-4271-3E96-A4A2-85669DBEE2E2> /usr/lib/system/libunc.dylib
0x91988000 - 0x91a99ff7  libJP2.dylib (??? - ???) <E938C201-C508-3E3D-B9A9-81FE52349E1B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91a9a000 - 0x91b24ffb  com.apple.SearchKit (1.4.0 - 1.4.0) <C8567435-9CD1-35EE-AE05-304D28858C42> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x91b25000 - 0x91b85ff3  com.apple.Symbolication (1.2 - 87) <2F9206D6-BE64-3C21-B593-43B8C60A7A9E> /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
0x91c05000 - 0x91eb6ff7  com.apple.security (7.0 - 55010) <28168576-1B8C-3FE8-9356-DE79390A480A> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x91eb7000 - 0x91ec2ff3  libCSync.A.dylib (600.0.0 - compatibility 64.0.0) <11726E50-E6FC-3AB0-8750-DDDCCF2B8534> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x91ec3000 - 0x921c3fff  com.apple.CoreServices.CarbonCore (960.13 - 960.13) <E098AC3A-E795-3C28-BA92-EED51C461A6F> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x921c4000 - 0x92503ff3  com.apple.HIToolbox (1.7 - ???) <A9583F07-218D-35CD-B29C-C65E6D008836> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x92582000 - 0x925b0fe7  libSystem.B.dylib (159.0.0 - compatibility 1.0.0) <FA9B75F7-B989-3DD3-97FD-373EB95C5BA8> /usr/lib/libSystem.B.dylib
0x925bc000 - 0x925c0ff3  libsystem_network.dylib (??? - ???) <E1455F3E-549B-3D50-A38B-17B394F3C7F6> /usr/lib/system/libsystem_network.dylib
0x925c1000 - 0x925d5ff7  com.apple.CFOpenDirectory (10.7 - 144) <665CDF77-F0C9-3AFF-8CF8-64257268B7DD> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x925d6000 - 0x925d7ff7  libquarantine.dylib (36.0.0 - compatibility 1.0.0) <70782AEC-8933-3EB4-91CA-E44C0E768C90> /usr/lib/system/libquarantine.dylib
0x925d8000 - 0x925eeffe  libxpc.dylib (77.16.0 - compatibility 1.0.0) <2EAF3E13-19FA-3EF2-88D6-64ACBC3A6ADB> /usr/lib/system/libxpc.dylib
0x925ef000 - 0x925f7fff  com.apple.DiskArbitration (2.4 - 2.4) <E574D5E7-7297-33B5-8B91-1E6346D5F917> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x925f8000 - 0x9268cff7  com.apple.LaunchServices (480.19 - 480.19) <A68C0688-4ED1-35F1-BF44-F5B1917084A0> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x9268d000 - 0x928feffb  com.apple.CoreImage (7.77 - 1.0.1) <DF1D9EB7-5879-3EA2-8CF5-80004DAC18BC> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage
0x928ff000 - 0x92901ff9  com.apple.securityhi (4.0 - 1) <BD367302-73C3-32F4-8080-E389AE89E434> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x9290e000 - 0x92928fff  com.apple.Kerberos (1.0 - 1) <25E5A286-876D-3A8E-A12F-52D184559E8C> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x92ae9000 - 0x92af1ff5  libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <A1BFC320-616A-30AA-A41E-29D7904FC4C7> /usr/lib/system/libcopyfile.dylib
0x92b01000 - 0x92b2cfff  com.apple.GSS (2.1 - 2.0) <129F4AB0-41AC-3713-A7BC-921769B0E12D> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x92b2d000 - 0x92b2fff7  libdyld.dylib (195.5.0 - compatibility 1.0.0) <637660EA-8D12-3B79-B644-041FEADC9C33> /usr/lib/system/libdyld.dylib
0x92e5a000 - 0x92ebaffb  com.apple.audio.CoreAudio (4.0.0 - 4.0.0) <6026C895-3DC6-3785-A7BB-2F2B9E292D95> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x930f4000 - 0x931e4ff1  libiconv.2.dylib (7.0.0 - compatibility 7.0.0) <9E5F86A3-8405-3774-9E0C-3A074273C96D> /usr/lib/libiconv.2.dylib
0x931e5000 - 0x93215ff7  libsystem_info.dylib (??? - ???) <C385F5A9-458A-3B49-9CC7-EA81DC5F9141> /usr/lib/system/libsystem_info.dylib
0x93217000 - 0x93279ff3  libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <266CE9B3-526A-3C41-BA58-7AE66A3B15FD> /usr/lib/libstdc++.6.dylib
0x93324000 - 0x933b0ff7  com.apple.CoreText (4.0.0 - ???) <2ADB0C1E-FE27-371C-8EC3-69D5CFEA2BE7> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x933b3000 - 0x933bdff2  com.apple.audio.SoundManager (3.9.4 - 3.9.4) <D23C4761-6492-3974-B4D2-495082B8B7A6> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x933be000 - 0x933daff5  com.apple.GenerationalStorage (1.0 - 124) <0BC29510-6C26-3445-88B7-21502CAFF372> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
0x933db000 - 0x935b1fef  com.apple.CoreFoundation (6.7 - 635) <4EE0D62E-5342-3A9F-A740-DA1D5AEBB1B0> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x935b2000 - 0x93695ff7  libcrypto.0.9.8.dylib (0.9.8 - compatibility 0.9.8) <6E631200-1E22-37B9-85D1-EC40520891AB> /usr/lib/libcrypto.0.9.8.dylib
0x93718000 - 0x9371cfff  libGIF.dylib (??? - ???) <F6094267-AB0E-38FC-8201-510AA4BDC974> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x9371d000 - 0x93721fff  com.apple.CommonPanels (1.2.5 - 94) <3A988595-DE53-34ED-9367-C9A737E2AF38> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x93728000 - 0x93729fff  libDiagnosticMessagesClient.dylib (??? - ???) <DB3889C2-2FC2-3087-A2A2-4C319455E35C> /usr/lib/libDiagnosticMessagesClient.dylib
0x9372a000 - 0x9376aff7  libauto.dylib (??? - ???) <36E7FE7F-27DF-3301-80AA-DD61FBF722F4> /usr/lib/libauto.dylib
0x9376b000 - 0x93853fff  libxml2.2.dylib (10.3.0 - compatibility 10.0.0) <ED3F5E83-8C76-3D46-B2FF-0D5BDF8970C5> /usr/lib/libxml2.2.dylib
0x93854000 - 0x93914ff3  com.apple.ColorSync (4.7.0 - 4.7.0) <50767823-56BA-373D-BC5A-37B17B659838> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x93d7a000 - 0x93f13ff7  com.apple.CoreData (103 - 358.4) <EB07F3A5-6301-3DA4-96FC-F8381D148C69> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x93f3a000 - 0x93fdefff  com.apple.QD (3.12 - ???) <68CBE425-43BA-3E6D-8668-A4A67396E20D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x9465e000 - 0x946ccfff  com.apple.Heimdal (2.1 - 2.0) <5BA5BFA4-0B05-3B00-AF06-C3D0D60F36BC> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
0x94a35000 - 0x94a4efff  libPng.dylib (??? - ???) <2C47E152-240A-36A7-87A8-3856EDFF2FE8> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x94a4f000 - 0x94a5afff  libkxld.dylib (??? - ???) <088640F2-429D-3368-AEDA-3C308C4EB80C> /usr/lib/system/libkxld.dylib
0x94ac5000 - 0x94aeeffe  com.apple.opencl (1.50.62 - 1.50.62) <52059AB5-8E0D-356E-98AA-71A4777CBE57> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x94bdd000 - 0x94cfdfec  com.apple.vImage (5.0 - 5.0) <173F6343-07EE-39F7-A159-DD3837E473DE> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x94cfe000 - 0x94cffffd  libCVMSPluginSupport.dylib (??? - ???) <8057030D-B290-3A8B-9828-3A1BD123B124> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
0x94d00000 - 0x94d00ff2  com.apple.CoreServices (53 - 53) <C513E133-B0E0-3C35-A7CB-DBC35A7EF571> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x94d12000 - 0x94e3bff9  com.apple.CFNetwork (520.0.13 - 520.0.13) <B21DE9ED-1D99-39C0-9E24-77D2A48FBFEF> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x9586a000 - 0x95901ff3  com.apple.securityfoundation (5.0 - 55005) <F5A98CC2-11C6-34F3-8F72-75B642627630> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x95902000 - 0x95913fff  libbsm.0.dylib (??? - ???) <54ACF696-87C6-3652-808A-17BE7275C230> /usr/lib/libbsm.0.dylib
0x95920000 - 0x95970ff4  libTIFF.dylib (??? - ???) <25796A90-ABD2-3A3A-800C-1056D343A71F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x95971000 - 0x95a31fff  com.apple.CoreServices.OSServices (478.25.1 - 478.25.1) <7971F047-D9EF-3D9C-A65F-E5A8C6CECF06> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x95a3d000 - 0x95ac4fff  com.apple.print.framework.PrintCore (7.0 - 366) <D037D344-7463-3620-AE8F-8D0D3EA5CE8E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x9617a000 - 0x96207fe7  libvMisc.dylib (325.3.0 - compatibility 1.0.0) <A44ADE1B-AB2C-3585-8C9D-D85B526E66C0> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x96245000 - 0x9624affd  libGFXShared.dylib (??? - ???) <7C55BE22-CDB5-3192-B7F0-96EA754A20AC> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x964a0000 - 0x964a6ffd  com.apple.CommerceCore (1.0 - 17) <71641C17-1CA7-3AC9-974E-AAC9EB641035> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore
0x9657b000 - 0x9657eff9  libCGXType.A.dylib (600.0.0 - compatibility 64.0.0) <B9344DE6-B84D-352C-95AD-EF73A68B8A10> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x9657f000 - 0x96a5bff6  libBLAS.dylib (??? - ???) <327C1517-2B63-3D8C-8D8E-CB4EBA2A9C36> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x96a68000 - 0x96a9cff3  libTrueTypeScaler.dylib (??? - ???) <FF162272-243C-321C-B152-AD81B3171C54> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib
0x96aa6000 - 0x96ab9ff9  com.apple.MultitouchSupport.framework (220.62 - 220.62) <5BD8730D-43A4-3040-9EA3-0BDA52A392A9> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x96aba000 - 0x96abdff7  libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <7F6C14CC-0169-3F1B-B89C-372F67F1F3B5> /usr/lib/system/libcompiler_rt.dylib
0x96b13000 - 0x9717865b  com.apple.CoreGraphics (1.600.0 - ???) <DD3B7ADA-0F19-371E-BB87-F3C08464134A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x97179000 - 0x9717aff5  libremovefile.dylib (21.0.0 - compatibility 1.0.0) <9A1E12B7-F822-3544-8E1D-A6DC81E1F2E6> /usr/lib/system/libremovefile.dylib
0x9717b000 - 0x9717fff7  com.apple.OpenDirectory (10.7 - 144) <A117580D-FD86-381E-82FD-B1A040045031> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x971c3000 - 0x971c3ffe  libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <7F0E8EE2-9E8F-366F-9988-E2F119DB9A82> /usr/lib/system/libkeymgr.dylib
0x97242000 - 0x97246ffd  IOSurface (??? - ???) <97E875C2-9F1A-3FBA-B80C-594892A02621> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x97282000 - 0x97282fff  com.apple.audio.units.AudioUnit (1.7 - 1.7) <75E38B34-1DE2-337A-A09F-0F7E91C02ABB> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x97283000 - 0x972e8ff7  libvDSP.dylib (325.3.0 - compatibility 1.0.0) <1C4B66EB-3186-31BE-B93F-878E49334C49> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x97328000 - 0x97336fff  libdispatch.dylib (187.5.0 - compatibility 1.0.0) <1883C8E2-D180-3EA0-8BEF-325F2FEDACD1> /usr/lib/system/libdispatch.dylib
0x97337000 - 0x97344fff  libGL.dylib (??? - ???) <C1C549FC-FF7F-3012-9DF5-5255217B4AEA> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x9753d000 - 0x9757bfff  libRIP.A.dylib (600.0.0 - compatibility 64.0.0) <0AE59D4F-FFA7-3539-8B86-AD8993894AA0> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x9757c000 - 0x9757effb  libRadiance.dylib (??? - ???) <5112B7CE-BAAF-3E98-94E4-676BCB92867F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x9757f000 - 0x975e3fff  com.apple.framework.IOKit (2.0 - ???) <B5888D02-8C36-3404-A37E-7457D950D629> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x97640000 - 0x97690fff  libFontRegistry.dylib (??? - ???) <BC35B8F5-7CCA-3A04-A278-FA3306B2C4F8> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x977f8000 - 0x97836fff  com.apple.NavigationServices (3.6 - 192) <CB7AE807-9292-3EBA-A5F5-D7DCEE28A5B7> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x97877000 - 0x978defff  libc++.1.dylib (19.0.0 - compatibility 1.0.0) <3AFF3CE8-14AE-300F-8F63-8B7FB9D4DA96> /usr/lib/libc++.1.dylib
0x978df000 - 0x978fefff  com.apple.RemoteViewServices (1.0 - 1) <D9810485-6A62-3758-96F5-48950AF250F1> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
0x978ff000 - 0x9797affb  com.apple.ApplicationServices.ATS (5.0 - ???) <8DF22F1E-7600-3ADA-BFC1-F6FA79914171> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x97987000 - 0x9798efff  libnotify.dylib (80.0.0 - compatibility 1.0.0) <B3B3875D-311D-31A7-A09F-D1BC56795E00> /usr/lib/system/libnotify.dylib
0x979dd000 - 0x979ddfff  com.apple.vecLib (3.7 - vecLib 3.7) <A01CD788-26FB-320F-8617-5A7DF0F9031E> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x979de000 - 0x97a25fff  com.apple.SystemConfiguration (1.11 - 1.11) <A7769080-2A4F-36AF-9484-08A936690307> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x97a26000 - 0x97a7fff3  com.apple.coreui (0.3 - 162) <BD3FBC84-234A-38E0-AA29-DE0424D3FD16> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x97aa5000 - 0x97aa6fff  libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <B04592B1-0924-3422-82FF-976B339DF567> /usr/lib/system/libsystem_blocks.dylib
0x97f19000 - 0x97f24ffc  com.apple.NetAuth (1.0 - 3.0) <C07853C0-AF32-3633-9CEF-2480860C12C5> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x97f5a000 - 0x98065ffb  com.apple.DesktopServices (1.6.0 - 1.6.0) <66E2BD3A-958A-3F46-8DA0-C0F2358013B0> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x98efb000 - 0x98f18ff3  com.apple.openscripting (1.3.3 - ???) <31A51238-0CA1-38C7-9F0E-8A6676EE3241> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x98f19000 - 0x98f95fff  libType1Scaler.dylib (??? - ???) <DFBB3B4F-31F4-3ED0-B57C-713493CA2756> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libType1Scaler.dylib
0x98f96000 - 0x98f9affa  libcache.dylib (47.0.0 - compatibility 1.0.0) <98A82BC5-0DD9-3212-9CAE-35A77278EEB6> /usr/lib/system/libcache.dylib
0x98f9b000 - 0x99010fff  com.apple.Metadata (10.7.0 - 627.9) <1EF7D615-3DF4-3F5D-88CE-6BDFA120FE32> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x99011000 - 0x99012ff7  libsystem_sandbox.dylib (??? - ???) <BC0A04E9-4F28-3BC8-AA7B-63C3451E9212> /usr/lib/system/libsystem_sandbox.dylib
0x9941a000 - 0x9942afff  com.apple.LangAnalysis (1.7.0 - 1.7.0) <6D6F0C9D-2EEA-3578-AF3D-E2A09BCECAF3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x99c17000 - 0x99c1fff3  libunwind.dylib (30.0.0 - compatibility 1.0.0) <E8DA8CEC-12D6-3C8D-B2E2-5D567C8F3CB5> /usr/lib/system/libunwind.dylib
0x9a02d000 - 0x9a070ffd  libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <4BA1F5F1-F0A2-3FEB-BB62-F514DCBB3725> /usr/lib/system/libcommonCrypto.dylib
0x9a071000 - 0x9a0dbff3  com.apple.CoreSymbolication (2.1 - 67) <38FD2396-C987-3E7F-93EF-7D8ECAF542AF> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
0x9a152000 - 0x9a152fff  libdnsinfo.dylib (395.6.0 - compatibility 1.0.0) <959E5139-EB23-3529-8881-2BCB5724D1A9> /usr/lib/system/libdnsinfo.dylib
0x9a154000 - 0x9a15dff3  com.apple.CommonAuth (2.1 - 2.0) <94EA2555-212C-3704-8307-FCEE5D6D32C5> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
0x9a1a0000 - 0x9a1a6ffb  com.apple.print.framework.Print (7.0 - 247) <1140BB03-0720-308F-8D92-F71B347D63D6> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x9a1bf000 - 0x9a28afff  libsystem_c.dylib (763.11.0 - compatibility 1.0.0) <44AA09FD-3A8F-3DCF-AD98-BC9071CA7376> /usr/lib/system/libsystem_c.dylib
0x9a28b000 - 0x9a2c1ff7  com.apple.AE (527.6 - 527.6) <77999151-94E3-37CD-A49E-7A9F9084F886> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x9a2c2000 - 0x9a2fefff  libcups.2.dylib (2.9.0 - compatibility 2.0.0) <8CB51735-ABE4-37AD-9019-845BB768955F> /usr/lib/libcups.2.dylib
0x9a2ff000 - 0x9a602ff7  com.apple.Foundation (6.7 - 833.1) <94BFFEDD-0676-368D-B4C6-8784E1DA4306> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x9a655000 - 0x9a655fff  com.apple.Accelerate.vecLib (3.7 - vecLib 3.7) <CB952B04-595A-332B-992B-7671815750FD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x9a656000 - 0x9a659ffb  com.apple.help (1.3.2 - 42) <DDCEBA10-5CDE-3ED2-A52F-5CD5A0632CA2> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x9a65a000 - 0x9a65afff  com.apple.Carbon (153 - 153) <6FF98F0F-2CDE-3888-A304-4ED447D24CE3> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x9a65b000 - 0x9a6bdffb  com.apple.datadetectorscore (3.0 - 179.3) <18117942-9D6F-3283-B8B0-03C7550CA2EB> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
0x9aaf9000 - 0x9ab1cfff  com.apple.CoreVideo (1.7 - 70.0) <0CBE6F3B-34C7-3C6B-9BB1-826F9905ECC1> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x9ab1d000 - 0x9af72fff  FaceCoreLight (1.4.2 - compatibility 1.0.0) <53AC5DCE-D04B-3DC3-808D-AA1CAD4D0924> /System/Library/PrivateFrameworks/FaceCoreLight.framework/Versions/A/FaceCoreLight
0x9afaa000 - 0x9afc8ff7  libsystem_kernel.dylib (1699.22.73 - compatibility 1.0.0) <D32C2E9C-8184-3FAF-8694-99FC619FC71B> /usr/lib/system/libsystem_kernel.dylib
0x9afc9000 - 0x9affffff  com.apple.DebugSymbols (2.1 - 85) <FAD78A3A-48DF-3D27-9726-1D31D3B889DA> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
0x9b000000 - 0x9b05dffb  com.apple.htmlrendering (76 - 1.1.4) <743C2943-40BC-36FB-A45C-3421A394F081> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x9b1be000 - 0x9b1c5ffd  com.apple.NetFS (4.0 - 4.0) <D0D59145-D211-3E7C-9062-35A2833FA99B> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x9b1c6000 - 0x9b1c9ffc  libpam.2.dylib (3.0.0 - compatibility 3.0.0) <6FFDBD60-5EC6-3EFA-996B-EE030443C16C> /usr/lib/libpam.2.dylib
0x9b1ce000 - 0x9b1dcfff  libz.1.dylib (1.2.5 - compatibility 1.0.0) <E73A4025-835C-3F73-9853-B08606E892DB> /usr/lib/libz.1.dylib
0x9b1dd000 - 0x9b1ddff0  com.apple.ApplicationServices (41 - 41) <BED33E1D-C95C-3654-9A3A-0CB3607F9F10> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x9b1de000 - 0x9b1e3ff7  libmacho.dylib (800.0.0 - compatibility 1.0.0) <56A34E97-518E-307E-8218-C5D43A33EE34> /usr/lib/system/libmacho.dylib
0x9b242000 - 0x9b245ff7  libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <69357047-7BE0-3360-A36D-000F55E39336> /usr/lib/system/libmathCommon.A.dylib
0x9b246000 - 0x9b29efff  com.apple.HIServices (1.9 - ???) <058E00E0-F1B4-395F-813E-C49C0C5F3BA9> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x9b2cb000 - 0x9b2cbfff  com.apple.Accelerate (1.7 - Accelerate 1.7) <881C1C85-2DEC-38DE-BC97-7804BC907282> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x9b585000 - 0x9c00affe  com.apple.AppKit (6.7 - 1138) <1CEDE402-32DD-3C10-B3B3-8C3DDBE8335D> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x9c08c000 - 0x9c48eff6  libLAPACK.dylib (??? - ???) <00BE0221-8564-3F87-9F6B-8A910CF2F141> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x9c48f000 - 0x9c498fff  libc++abi.dylib (14.0.0 - compatibility 1.0.0) <FEB5330E-AD5D-37A0-8AB2-0820F311A2C8> /usr/lib/libc++abi.dylib
0x9c499000 - 0x9c4a9ff7  libCRFSuite.dylib (??? - ???) <CE616EF3-756A-355A-95AD-3472A876BEB9> /usr/lib/libCRFSuite.dylib
0x9c4aa000 - 0x9c4fbff9  com.apple.ScalableUserInterface (1.0 - 1) <C3FA7E40-0213-3ABC-A006-2CB00B6A7EAB> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/ScalableUserInterface.framework/Versions/A/ScalableUserInterface
0x9c4fc000 - 0x9c524ff0  com.apple.CoreServicesInternal (113.7 - 113.7) <F5724FAC-8BB8-3F0F-B8BC-36F2CA75A23D> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
0x9c650000 - 0x9c651fff  liblangid.dylib (??? - ???) <C8C204E9-1785-3785-BBD7-22D59493B98B> /usr/lib/liblangid.dylib
0xba900000 - 0xba91bffd  libJapaneseConverter.dylib (54.0.0 - compatibility 1.0.0) <5635DF40-8D8E-3B8C-B075-7B3FC0F184A4> /System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
0xbab00000 - 0xbab21ff6  libKoreanConverter.dylib (54.0.0 - compatibility 1.0.0) <17226124-8E8A-34EB-A2C4-D4A0469CF45B> /System/Library/CoreServices/Encodings/libKoreanConverter.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 3
    thread_create: 1
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 7156251
    thread_create: 105
    thread_set_state: 15498

VM Region Summary:
ReadOnly portion of Libraries: Total=153.0M resident=103.6M(68%) swapped_out_or_unallocated=49.4M(32%)
Writable regions: Total=123.8M written=2760K(2%) resident=42.2M(34%) swapped_out=16K(0%) unallocated=81.6M(66%)

REGION TYPE                      VIRTUAL
===========                      =======
ATS (font support)                 33.0M
CG backing stores                  8564K
CG raster data                       64K
CG shared images                   3416K
CoreGraphics                          8K
CoreServices                       2876K
MALLOC                             54.7M
MALLOC guard page                    48K
Memory tag=243                        4K
Stack                              66.0M
VM_ALLOCATE                        16.1M
__CI_BITMAP                          80K
__DATA                             9016K
__DATA/__OBJC                       124K
__IMAGE                            1256K
__IMPORT                             68K
__LINKEDIT                         46.8M
__OBJC                             1408K
__PAGEZERO                            4K
__TEXT                            106.2M
__UNICODE                           544K
mapped file                       314.6M
shared memory                       308K
shared pmap                        10.4M
===========                      =======
TOTAL                             674.9M

Model: MacBookPro8,2, BootROM MBP81.0047.B0E, 4 processors, Intel Core i7, 2 GHz, 8 GB, SMC 1.69f1
Graphics: AMD Radeon HD 6490M, AMD Radeon HD 6490M, PCIe, 256 MB
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x04CB, 0x202020202020202020202020202020202020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x04CB, 0x202020202020202020202020202020202020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.100.98.75.10)
Bluetooth: Version 2.5.0f17, 2 service, 12 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: Hitachi HTS545050B9A302, 500,11 GB
Serial ATA Device: MATSHITADVD-R   UJ-898
USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfa100000 / 3
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0246, 0xfa120000 / 5
USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000 / 8
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa200000 / 2
USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfd100000 / 2
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3
@albertz

This comment has been minimized.

Show comment Hide comment
@albertz

albertz Sep 7, 2011

Contributor

injectEntry from mach_inject_bundle_stub gets called correctly. I added a fprintf(stderr,...) to be sure and got the output:
07.09.11 15:24:50,909 [0x0-0x2d6ad68].fm.last.Last.fm: mach_inject_bundle: entered in injectEntry, codeOffset: 15732736, param: 0xffc000, paramSize: 42

I guess the codeOffset is wrong. I also have a fprintf in the pthread_entry function but it doesn't get there.

Contributor

albertz commented Sep 7, 2011

injectEntry from mach_inject_bundle_stub gets called correctly. I added a fprintf(stderr,...) to be sure and got the output:
07.09.11 15:24:50,909 [0x0-0x2d6ad68].fm.last.Last.fm: mach_inject_bundle: entered in injectEntry, codeOffset: 15732736, param: 0xffc000, paramSize: 42

I guess the codeOffset is wrong. I also have a fprintf in the pthread_entry function but it doesn't get there.

@albertz

This comment has been minimized.

Show comment Hide comment
@albertz

albertz Sep 7, 2011

Contributor

In mach_inject, if I change

#if defined(__x86_64__)
        imageOffset = 0; // RIP-relative addressing
#else
        ASSERT_CAST( void*, remoteCode );
        imageOffset = ((void*) remoteCode) - image;
#endif

just to


then it all works fine!

Is RIP-relative addressing also used in 32bit?

Contributor

albertz commented Sep 7, 2011

In mach_inject, if I change

#if defined(__x86_64__)
        imageOffset = 0; // RIP-relative addressing
#else
        ASSERT_CAST( void*, remoteCode );
        imageOffset = ((void*) remoteCode) - image;
#endif

just to


then it all works fine!

Is RIP-relative addressing also used in 32bit?

@rentzsch

This comment has been minimized.

Show comment Hide comment
@rentzsch

rentzsch Sep 7, 2011

Owner

Interesting, perhaps RIP is an issue nowadays. What OS version, Lion?

Owner

rentzsch commented Sep 7, 2011

Interesting, perhaps RIP is an issue nowadays. What OS version, Lion?

@albertz

This comment has been minimized.

Show comment Hide comment
@albertz

albertz Sep 7, 2011

Contributor

Yes, that's Lion.

Shouldn't the adress be always relative in the case the function is the same image? In the case of the mach_inject_bundle_stub, that should always be the case. So I wonder it has even worked before (on 32bit).

Contributor

albertz commented Sep 7, 2011

Yes, that's Lion.

Shouldn't the adress be always relative in the case the function is the same image? In the case of the mach_inject_bundle_stub, that should always be the case. So I wonder it has even worked before (on 32bit).

@rentzsch

This comment has been minimized.

Show comment Hide comment
@rentzsch

rentzsch Sep 7, 2011

Owner

Can you try on 10.6? Sounds like somethings changed and it would be good to know for sure.

Owner

rentzsch commented Sep 7, 2011

Can you try on 10.6? Sounds like somethings changed and it would be good to know for sure.

@albertz

This comment has been minimized.

Show comment Hide comment
@albertz

albertz Sep 7, 2011

Contributor

I don't have 10.6 anymore.

Contributor

albertz commented Sep 7, 2011

I don't have 10.6 anymore.

rentzsch added a commit that referenced this issue Sep 22, 2011

Merge pull request #15 from albertz/mach_star
---

see bug #11

Im not sure if you want to merge this already. But this is what works on 10.7, so maybe it is better to have this in right now (with this comment or some other comment) and add some further code later on if there are problems for other people.
@rentzsch

This comment has been minimized.

Show comment Hide comment
@rentzsch

rentzsch Sep 22, 2011

Owner

OK I pulled this. I'll see if it breaks anything when I catch a break in my work.

Owner

rentzsch commented Sep 22, 2011

OK I pulled this. I'll see if it breaks anything when I catch a break in my work.

@rentzsch rentzsch closed this Sep 22, 2011

@turly

This comment has been minimized.

Show comment Hide comment
@turly

turly Jun 24, 2013

Over the weekend I updated FinderPop to use the latest version of mach_star (for which much thanks!) and got crashes on PowerPC 10.4.11 - for that setup, at least, imageOffset needs to be calculated as it originally was:
imageOffset = ((void*) remoteCode) - image;

turly commented Jun 24, 2013

Over the weekend I updated FinderPop to use the latest version of mach_star (for which much thanks!) and got crashes on PowerPC 10.4.11 - for that setup, at least, imageOffset needs to be calculated as it originally was:
imageOffset = ((void*) remoteCode) - image;

mkrautz pushed a commit to mumble-voip/mach_override that referenced this issue Feb 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment