• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Incorrect values in debugger when Address Sanitization is on
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Incorrect values in debugger when Address Sanitization is on


  • Subject: Incorrect values in debugger when Address Sanitization is on
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 13 Jan 2016 11:01:35 -0800

I just had a weird problem in the debugger where it was showing nonsensical values for some variables. I was able to convince myself that the actual variables had correct values, by adding a printf call:

body is at 0x7fff5fbfd090
(lldb) p &body
(cbforest::slice *) $0 = 0x00007fff5fbfcad0

Turning off Address Sanitization made the problem go away. Looks as though it was causing incorrect info in the dSYM file.

(This is a 64-bit Mac OS target, a mix of Obj-C and C++. The function where the problem occurs is C++. The variables having the trouble all appear to be small structs. Xcode 7.2 7C68.)

I can file a bug report, but I don’t think it’ll help much since (a) this is a pretty big project, ~50kloc, and (b) I’ve never seen this happen before so it’s probably specific to some particular thing I’m doing and would be difficult to isolate.

Has anyone else seen this?

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Incorrect values in debugger when Address Sanitization is on
      • From: Jim Ingham <email@hidden>
  • Prev by Date: Re: Can't show previous git revision
  • Next by Date: Re: Incorrect values in debugger when Address Sanitization is on
  • Previous by thread: Re: Can't show previous git revision
  • Next by thread: Re: Incorrect values in debugger when Address Sanitization is on
  • Index(es):
    • Date
    • Thread