clang 3.0: Segmentation fault when building MacPorts port mongodb

Number:rdar://9926858 Date Originated:09-Aug-2011 10:54 PM
Status:Closed Resolved:09-Mar-2012 02:16 PM
Product:Developer Tools Product Version:3.0
Classification:Serious Bug Reproducible:Always

When attempting to build the MacPorts 2.0.1 mongodb 1.8.2 port (, clang fails with segmentation fault.

Steps to Reproduce:

From the Terminal:

sudo port install mongodb

Expected Results:

mongodb builds without errors.

Actual Results:

mongodb build fails with segmentation fault.


Tested with:

Apple clang version 3.0 (tags/Apple/clang-211.3) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.0.0
Thread model: posix


The issue was first reported to the MacPorts project ( who suggested filing a radar.

See attached log file for build details.


Fixed as of Xcode 4.3.

By verwymeren at March 19, 2012, 6:56 p.m. (reply...)

You might get better results filing a bug with the LLVM project (

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!