Interpreting sample(1) output on bundle
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=jDiLFs/qPWlSnX/CW/+zS6/d8clX2sS3r71LU0V+snU=; b=BRUHHi7Y2JQczOEJV2wM5thufa5r6w8rITNp4/jY8VSDHinraUjcxMT1N51XKWc8Lb KKcVM+iOhyy6/gnbIu6RcLt1jt6G+JpgYHdRR2qxOhe2NMZ5rwamcWwTyJIEmwBwy7WG lr2MbyrDWQiimO8dXUFywPX9z/u0Vyt7/m67M= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=T4dupP8nkf4YZfJkgwmDN5qNpHkzLA2F3zLaMAD2fUhTMG0uemNcTxTs9ALZ00vcL5 qnnCZkvt7u4shazzUTqDfo+UiQECCyJjbHABi3RRw5MqlJnZVFKHapGPVClUrOAsRSQG NLnv7Ojj8keOvnCuBgMD3tPBYl5c4HNR+3kdY= Hey list, I'm debugging a hang reported by several users of a preference pane bundle. I asked one user to sample(1) System Preferences to get a stack trace: ... snip ... 4415 -[NSApplication sendAction:to:from:] 4415 0x1000132ae 4415 0x100012ba8 4415 0x100012e25 4415 _CF_forwarding_prep_0 ... snip ... Full output: http://pastebin.org/192055. The hang occurs after clicking a button, so this stack trace makes sense. I disassembled the bundle using otool -tv, but have been unable to correlate the first address (0x1000132ae) with an address in the disassembled code. My tactic to locate the correct address was to take the low 12 bits of the address [1], in this case 0x2ae, and search the bundle's disassembled code for this address suffix, where the immediately preceding instruction must be a call instruction: 0xxxx2a9 call 0xfeedface 0xxxx2ae ... But yet this pattern did not occur in the otool output. Could someone suggest what I might be doing wrong? Thanks! David [1] I used this tactic based on empirical evidence that dynamic libraries/bundles are always loaded at a page offset, so that the low 12 bits of the address of an instruction in the sample(1) output should be equal to low 12 bits of the same instruction in the otool output. Is this correct? _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Dave Keck