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
gcc optimizer bug with Boost ?
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
gcc optimizer bug with Boost ?
Subject
:
gcc optimizer bug with Boost ?
From: Andrew Kimpton <
email@hidden
>
Date: Tue, 3 Feb 2004 17:01:58 -0800
I'm having a problem with boost shared_ptr's and some code built using XCode 1.1. A member variable (a pointer) inside the boost:: sp_counted_base_impl seems to be getting corrupted with optimization set to -01 or higher.
Strangely the same code called from a different executable built separately but with -03 works fine. Equally adding some debug printf()s to the boost headers causes the problem to go away which seems to indicate that perhaps there's a race condition or similar (the boost code is boost 1.30.2 and has the thread macros defined, the same problem appears to exist with boost 1.30.0 too).
I'd like to try and track down who's 'stomping' on the pointer - but I can't seem to quite work out how to set a watchpoint on the variable, especially since the boost headers use a lot of inline template code which seems to confuse gdb/Xcode debugger a lot (can't step inside functions, functions don't show up correctly on the stack crawl etc).
Is anyone else using boost and experience similar crashes ? Any hints on how to track down the offending code to take it apart and see if it's truly a compiler problem or a bug in my own code ?
Andrew 8-)
P.S. Simple examples work fine, it seems to take a little 'stress' to show this problem.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
Prev by Date:
Re: Code collapse/expand
Next by Date:
Re: open dialog deselects
Previous by thread:
Re: editing XML files
Next by thread:
Re: gcc optimizer bug with Boost ?
Index(es):
Date
Thread