• 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
Re: Crash due to unaligned hostent.h_addr dereference?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash due to unaligned hostent.h_addr dereference?


  • Subject: Re: Crash due to unaligned hostent.h_addr dereference?
  • From: Sean McBride <email@hidden>
  • Date: Wed, 18 Sep 2013 12:46:10 -0400
  • Organization: Rogue Research Inc.

On Mon, 16 Sep 2013 16:55:14 -0400, Jeffrey Walton said:

>On Mon, Sep 16, 2013 at 12:57 PM, Sean McBride <email@hidden>
>wrote:
>> On Mon, 16 Sep 2013 01:38:03 -0400, Jeffrey Walton said:
>>
>>>I'm experiencing a crash due to unaligned hostent.h_addr dereference.
>>>Its a typedef, so its equivalent to
>>>
>>>    char** ptr = hostent.h_addr;
>>>
>>>The problem is, ptr = 0x60c00000a7df, so a dereference of ptr leads to a
>>>crash.
>>>
>>>I thought this issue was recently talked about on this list, but I
>>>can't find the emails (or was it CFE Dev?). I searched the archives
>>>back a couple of months, but I have not been able to locate it.
>>>
>>>Can anyone recall the title of that topic?
>>
>> This?
>> <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-September/024523.html>
>Thanks again Sean. I looked though the thread, but did not see how you
>re-aligned the dirent. Could you share?

I just filed <rdar://12388003> and moved on.  Since they split -fcatch-undefined-behavior into more granular options, I just stopped using -fsanitize=alignment entirely, the other options have found enough bugs to keep me busy.

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



 _______________________________________________
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


References: 
 >Crash due to unaligned hostent.h_addr dereference? (From: Jeffrey Walton <email@hidden>)
 >Re: Crash due to unaligned hostent.h_addr dereference? (From: Sean McBride <email@hidden>)
 >Re: Crash due to unaligned hostent.h_addr dereference? (From: Jeffrey Walton <email@hidden>)

  • Prev by Date: Storyboard's in Interface Builder in XCode 4.6.3
  • Next by Date: Xcode 5.0
  • Previous by thread: Re: Crash due to unaligned hostent.h_addr dereference?
  • Next by thread: Unable to silence deprecated function warnings
  • Index(es):
    • Date
    • Thread