xcode


Why is xcode/lldb/x86 not executing this correctly?


Swift program runs well. In generated code for swift_rt_swift_release, you find:
SystemSensor`swift_rt_swift_release:
-> 0x100002c22 <+18>: leaq 0x91573f(%rip), %rax ; _swift_release
0x100002c29 <+25>: movq (%rsp), %rdi
0x100002c2d <+29>: callq *(%rax)
I can set a breakpoint at the leaq instruction and use si to step and it works peachy. However, if I run the program for a bit, hit a breakpoint in the source and then single-step through the source, eventually the indirect callq will break on an invalid address.
The leaq instruction >should< be doing nothing more than adding the value of rip (of the next instruction) to 0x91573f. My math says that's 0x0000000100918368. Yet,
(lldb) reg wri rip 0x100002c22
(lldb) si
(lldb) reg read
General Purpose Registers:
rax = 0x00000000cc918368
...
And, it seems like this is a permanent change: if I set rax to the correct value and continue, it will break (with invalid address) at the same place with the same bad value.
This is quite reproducible. Oddly, the difference between the correct and the incorrect values of rax is 0x0000000034000000
I'm at a loss, here. Any ideas?
macbook pro/macos 10.12.4/xcode 8.3.2

Related Links

Xcode 3/4 Compatibility when referencing static libraries
Table View edit add rows with modal view Xcode 4.2
How to generate a default record in an entity (Core Data)?
why viewWillAppear does not get called?
Is there a difference between using properties declared in a class extension and associated storage?
XCode: “Generating dSYM file” step is repeated on every application run
change color tabbar icons iOS 5
Ignore all warnings in a specific file using LLVM/Clang
Xcode/iOS5: Show UIDatePicker when UITextField is pressed (+ hide default keyboard)
NSButton - Gray rectangle whenever the custom button is clicked
how to parse json multi dimenstional array in titanium or xcode
CoreData in one single separate thread
Can I get the iOS 5 SDK on Xcode 3.2.6?
How can I install Xcode 4.1 when 4.2 is already out and everywhere?
How to use UIPickerview in xcode 4.2 storyboard?
I want convert from string to date

Categories

HOME
macos-sierra
plesk
schema.org
long-integer
key
tcsh
bing-search
biztalk-2010
linker
native-base
lda
rangy
documentum
orc
grocery-crud
texas-instruments
global-variables
vmware-workstation
l20n
jaspersoft-studio
salt-cloud
bluemix-mobile-services
bosun
amazon-sns
substring
function-points
ipa
xdebug
basic-authentication
substance
es6-modules
infopath2010
opnet
caesar-cipher
knights-tour
spring-rabbitmq
formsauthenticationticket
forms-authentication
strapi
gitolite
linq.js
praat
suds
jacoco-maven-plugin
get-event-store
contactless-smartcard
elasticsearch-aggregation
httphandler
jqgrid-asp.net
apache-toree
django-static-precompiler
gestures
winston
glassfish-4.1
kendo-editor
ltrace
hmmlearn
ternary-operator
portal
ipywidgets
zynq
carmen
seccomp
android-sdcard
perforce-integrate
verisign
univocity
ambiguity
blockquote
erlog
innerhtml
qt5.4
oracle-adf-mobile
spring-social-linkedin
mute
google-code-prettify
ckeditor.net
linkbutton
system-information
first-class
opends
mediacontroller
css-friendly
libxslt
urchin
version-control-migration
remote-working

Resources

Encrypt Message